Loading SES fails if globalThis.process
is shimmed
#1917
Labels
bug
Something isn't working
kriskowal-review-2024-01
Issues that kriskowal wants to bring to the attention of the team for review as of January, 2024
ses
Describe the bug
Console taming assumes that if
globalThis.process
exists, then we're in node, and get to use someprocess
APIs like.on()
.exit()
etc.endo/packages/ses/src/error/tame-console.js
Lines 97 to 126 in 2179108
If
globalThis.process
is shimmed with something like{env: {FOO: 'bar'}}
, then loading SES fails withglobalThis.process.on
is not a function.Expected behavior
Console taming should more fully feature test the Node features it expects
Platform environment
Browser
Screenshots
The text was updated successfully, but these errors were encountered: