diff options
author | 2023-01-28 04:06:35 -0800 | |
---|---|---|
committer | 2023-01-28 04:06:35 -0800 | |
commit | 7f8be29f25a6fce5f2ead5cd5d53e937b4f4fcbd (patch) | |
tree | 3ec2e1ad3e3dba677cfcaf2370255b4c162e82a4 | |
parent | 7db4b90837b3515134b79733bb8fdd541a1b836b (diff) | |
download | bun-7f8be29f25a6fce5f2ead5cd5d53e937b4f4fcbd.tar.gz bun-7f8be29f25a6fce5f2ead5cd5d53e937b4f4fcbd.tar.zst bun-7f8be29f25a6fce5f2ead5cd5d53e937b4f4fcbd.zip |
[buffer] Use jsDynamicCast
-rw-r--r-- | src/bun.js/bindings/JSBuffer.cpp | 2 |
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); |