undo suggestion

This commit is contained in:
snwy
2024-12-05 17:00:12 -08:00
parent 8e85cf4ae9
commit 503154c1b3

View File

@@ -148,8 +148,8 @@ template<> JSC::EncodedJSValue JSC_HOST_CALL_ATTRIBUTES JSEventEmitterDOMConstru
if constexpr (IsExceptionOr<decltype(object)>) {
RETURN_IF_EXCEPTION(throwScope, {});
}
Structure* structure = getDOMStructure<JSEventEmitter>(vm, globalObject)
JSEventEmitter* instance
Structure* structure = JSEventEmitter::createStructure(vm, lexicalGlobalObject, jsValue);
JSEventEmitter* instance
= JSEventEmitter::create(structure, reinterpret_cast<Zig::GlobalObject*>(lexicalGlobalObject), object.copyRef());
RETURN_IF_EXCEPTION(throwScope, {});
RELEASE_AND_RETURN(throwScope, JSValue::encode(instance));