aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bun.js/bindings/JSBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/JSBuffer.cpp b/src/bun.js/bindings/JSBuffer.cpp
index 19d0f7b92..aec9e82b1 100644
--- a/src/bun.js/bindings/JSBuffer.cpp
+++ b/src/bun.js/bindings/JSBuffer.cpp
@@ -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);