Created
February 9, 2023 19:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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