mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
[buffer] Use jsDynamicCast
This commit is contained in:
@@ -153,7 +153,7 @@ public:
|
||||
return JSC::JSValue::encode(JSC::jsUndefined());
|
||||
}
|
||||
|
||||
auto thisObject = JSC::jsCast<JSC::JSUint8Array*>(thisValue);
|
||||
auto thisObject = JSC::jsDynamicCast<JSC::JSUint8Array*>(thisValue);
|
||||
if (UNLIKELY(!thisObject))
|
||||
return throwThisTypeError(lexicalGlobalObject, throwScope, "Buffer", operationName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user