taylorhakes/promise-polyfill

console.log does not print in promise.then in browser

Closed this issue · 1 comments

Hello,
Promise.resolve(5).then(x => console.log("val:" + x))

The simple code above prints "val:5" in Chrome if we use the native Promise.
When I use the promise-polyfill it does not print!

I am using browserify, and the issue is not happening in node (it prints there)

Am i missing something simple, or what is it?

Sorry I was in debug mode, that was the reason.