A friend asked me to look at some of their Typescript code, and at the very top of their application is... this.

global.Promise = /* ... */;

I've ellipsized the right hand side because it's not public. I can say though it's not a polyfill, and it's
also the code is meant to run under nodejs v18+

:neodog_scream_angry:

0

If you have a fediverse account, you can quote this note from your own instance. Search https://spookygirl.boo/notes/a6cp5tzupwi6n9s3 on your instance and quote it. (Note that quoting is not supported in Mastodon.)