Skip to content

Instantly share code, notes, and snippets.

@hbielenia
Created February 9, 2023 19:02
Show Gist options
  • Save hbielenia/6dc79ded33f461dcf971002cd077b554 to your computer and use it in GitHub Desktop.
Save hbielenia/6dc79ded33f461dcf971002cd077b554 to your computer and use it in GitHub Desktop.
Example of supposed use of Bluebird's Promise that errors out in Node 18
import * as Promise from 'bluebird';
Promise.config({
longStackTraces: true,
});
function main() {
let p = new Promise(function () {
console.log('Hello world!');
});
p.then();
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment