diff options
-rw-r--r-- | src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp b/src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp index 0d11b9350..53220536d 100644 --- a/src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp +++ b/src/bun.js/bindings/webcore/JSEventEmitterCustom.cpp @@ -34,7 +34,7 @@ std::unique_ptr<JSEventEmitterWrapper> jsEventEmitterCast(VM& vm, JSC::JSGlobalO value = WebCore::toJSNewlyCreated(lexicalGlobalObject, globalObject, EventEmitter::create(*globalObject->scriptExecutionContext())); object->putDirect(vm, emitterTag, value); } - auto* target = jsDynamicCast<JSEventEmitter*>(value); + auto* target = jsCast<JSEventEmitter*>(value); return makeUnique<JSEventEmitterWrapper>(target->wrapped(), *target); } |