From 7f8be29f25a6fce5f2ead5cd5d53e937b4f4fcbd Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Sat, 28 Jan 2023 04:06:35 -0800 Subject: [PATCH] [buffer] Use jsDynamicCast --- src/bun.js/bindings/JSBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bun.js/bindings/JSBuffer.cpp b/src/bun.js/bindings/JSBuffer.cpp index 19d0f7b923..aec9e82b19 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(thisValue); + auto thisObject = JSC::jsDynamicCast(thisValue); if (UNLIKELY(!thisObject)) return throwThisTypeError(lexicalGlobalObject, throwScope, "Buffer", operationName);