aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/modules/EventsModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/modules/EventsModule.h')
-rw-r--r--src/bun.js/modules/EventsModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bun.js/modules/EventsModule.h b/src/bun.js/modules/EventsModule.h
index 00966b858..7d53ff838 100644
--- a/src/bun.js/modules/EventsModule.h
+++ b/src/bun.js/modules/EventsModule.h
@@ -32,6 +32,10 @@ inline void generateEventsSourceCode(JSC::JSGlobalObject *lexicalGlobalObject,
exportValues.append(JSC::JSFunction::create(
vm, lexicalGlobalObject, 0, MAKE_STATIC_STRING_IMPL("on"),
Events_functionOn, ImplementationVisibility::Public));
+ exportNames.append(
+ JSC::Identifier::fromString(vm, "captureRejectionSymbol"_s));
+ exportValues.append(Symbol::create(
+ vm, vm.symbolRegistry().symbolForKey("nodejs.rejection"_s)));
JSFunction *eventEmitterModuleCJS =
jsCast<JSFunction *>(WebCore::JSEventEmitter::getConstructor(