diff options
Diffstat (limited to 'testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.js')
-rw-r--r-- | testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.js b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.js new file mode 100644 index 0000000000..4ec4a3b8c7 --- /dev/null +++ b/testing/web-platform/tests/workers/interfaces/WorkerUtils/importScripts/010.js @@ -0,0 +1,11 @@ +// prevent recursion +if ('beenThere' in self) { + throw 'undefined stringified to the empty string'; +} +beenThere = true; +try { + importScripts(undefined); + postMessage(got); +} catch(ex) { + postMessage(String(ex)); +}
\ No newline at end of file |