javascript - Promise.reject().catch(console.log) got an `Illegal invocation` on my Android 5.1 phone -
i've try on chrome before , works well, on android 5.1 phone got illegal invocation
in browsers, console.log doesn't being invoked in global context. can 1 of these:
promise.reject().then(function (error) { console.log(error); });
or
promise.reject().then(console.log.bind(console));
Comments
Post a Comment