mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
undo suggestion
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user