mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
node: fix Buffer.from(arrayBuffer) (#17267)
This commit is contained in:
@@ -2281,7 +2281,7 @@ JSC_DEFINE_HOST_FUNCTION(Zig::jsFunctionInherits, (JSC::JSGlobalObject * globalO
|
||||
switch (id) {
|
||||
${jsclasses
|
||||
.map(v => v[0])
|
||||
.map((v, i) => ` case ${i}: return JSValue::encode(jsBoolean(cell->inherits<WebCore::JS${v}>()));`)
|
||||
.map((v, i) => ` case ${i}: return JSValue::encode(jsBoolean(jsDynamicCast<WebCore::JS${v}*>(cell) != nullptr));`)
|
||||
.join("\n")}
|
||||
}
|
||||
return JSValue::encode(jsBoolean(false));
|
||||
|
||||
Reference in New Issue
Block a user