| Tests that expressions have thrown objects. |
| |
| setTimeout(throwError, 0); undefined |
| undefined |
| foo.js:12 Uncaught Error: error_text |
| at throwError (foo.js:12) |
| throwError @ foo.js:12 |
| setTimeout (async) |
| (anonymous) @ VM:1 |
| throwError(); |
| foo.js:12 Uncaught Error: error_text |
| at throwError (foo.js:12) |
| at <anonymous>:1:1 |
| throwError @ foo.js:12 |
| (anonymous) @ VM:1 |
| setTimeout(throwObject, 0); undefined |
| undefined |
| foo.js:17 Uncaught {a: 42} |
| throwObject @ foo.js:17 |
| setTimeout (async) |
| (anonymous) @ VM:1 |
| throwObject(); |
| foo.js:17 Uncaught {a: 42} |
| throwObject @ foo.js:17 |
| (anonymous) @ VM:1 |
| setTimeout(throwNumber, 0); undefined |
| undefined |
| foo.js:22 Uncaught 42 |
| throwNumber @ foo.js:22 |
| setTimeout (async) |
| (anonymous) @ VM:1 |
| throwNumber(); |
| foo.js:22 Uncaught 42 |
| throwNumber @ foo.js:22 |
| (anonymous) @ VM:1 |
| setTimeout(rejectWithError, 0); undefined |
| undefined |
| foo.js:27 Uncaught (in promise) Error: promise_error |
| at rejectWithError (foo.js:27) |
| rejectWithError @ foo.js:27 |
| setTimeout (async) |
| (anonymous) @ VM:1 |
| rejectWithError(); |
| undefined |
| foo.js:27 Uncaught (in promise) Error: promise_error |
| at rejectWithError (foo.js:27) |
| at <anonymous>:1:1 |
| rejectWithError @ foo.js:27 |
| (anonymous) @ VM:1 |
| setTimeout(rejectWithObject, 0); undefined |
| undefined |
| foo.js:32 Uncaught (in promise) {b: 42} |
| rejectWithObject @ foo.js:32 |
| setTimeout (async) |
| (anonymous) @ VM:1 |
| rejectWithObject(); |
| undefined |
| foo.js:32 Uncaught (in promise) {b: 42} |
| rejectWithObject @ foo.js:32 |
| (anonymous) @ VM:1 |
| |