jooking / closure-library

Automatically exported from code.google.com/p/closure-library
Apache License 2.0
0 stars 1 forks source link

goog.async.throwException is not throwing anything #640

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the JavasScript console
2. execute: goog.async.throwException(new Error('test'))

What is the expected output? What do you see instead?

Excepted output in console: "Uncaught Error: test"
Instead nothing happens.

What version of the product are you using? On what operating system?

Chrome Version 34.0.1847.116
Firefox 26.0

Both on OS X 10.9.2

Please provide any additional information below.

This is related to Issue 632.

goog.Promise is also not throwing unhandled errors. It should, as goog.Promise 
calls goog.async.throwException by default on unhandled rejected promises. 
However nothing happens, as described above.

Original issue reported on code.google.com by alo.and on 21 Apr 2014 at 10:00