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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -