aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/modules/EventsModule.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-02 09:05:11 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-02 09:05:11 -0800
commit2c0fd28e72f53875a1280bbc77c2bdaa407db9ee (patch)
tree09e7be6a50481474b4e3de1df8d6e80bfef56b90 /src/bun.js/modules/EventsModule.h
parentb8586b33dad8ab66ebd5d1aa4d5a0df305266e7f (diff)
downloadbun-2c0fd28e72f53875a1280bbc77c2bdaa407db9ee.tar.gz
bun-2c0fd28e72f53875a1280bbc77c2bdaa407db9ee.tar.zst
bun-2c0fd28e72f53875a1280bbc77c2bdaa407db9ee.zip
[node:event] Add `captureRejectionSymbol`
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(