diff options
Diffstat (limited to 'testing/web-platform/tests/workers/constructors/Worker/AbstractWorker.onerror.js')
-rw-r--r-- | testing/web-platform/tests/workers/constructors/Worker/AbstractWorker.onerror.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/constructors/Worker/AbstractWorker.onerror.js b/testing/web-platform/tests/workers/constructors/Worker/AbstractWorker.onerror.js new file mode 100644 index 0000000000..1594decd37 --- /dev/null +++ b/testing/web-platform/tests/workers/constructors/Worker/AbstractWorker.onerror.js @@ -0,0 +1,5 @@ +// Throw a runtime error, the UA must report the error for that script. +// https://html.spec.whatwg.org/#runtime-script-errors-2 +for (;;) + throw new Error("error from onerror.js"); +postMessage(1); // shouldn't do anything since the script doesn't compile |