From 2c0fd28e72f53875a1280bbc77c2bdaa407db9ee Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Fri, 2 Dec 2022 09:05:11 -0800 Subject: [node:event] Add `captureRejectionSymbol` --- src/bun.js/modules/EventsModule.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bun.js/modules/EventsModule.h') 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(WebCore::JSEventEmitter::getConstructor( -- cgit v1.2.3