I am testing to rewrite som XMLHttpRequest
-code with HTML5 Promise
.
I did a mistake and the code in thePromise.then(failingCode)
failed. This give a call to the reject
function used when setting up the Promise
.
I had to search a while to catch the error since I did not get any Call stack and no line number where the error occured.
That is of course very inconvenient.
How should I handle this? Should I send a bug report to the Google Chrome developers? Or, is it my own fault?