summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/reporting-errors/004.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/workers/semantics/reporting-errors/004.js')
-rw-r--r--testing/web-platform/tests/workers/semantics/reporting-errors/004.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/web-platform/tests/workers/semantics/reporting-errors/004.js b/testing/web-platform/tests/workers/semantics/reporting-errors/004.js
new file mode 100644
index 0000000000..a68d2ab01d
--- /dev/null
+++ b/testing/web-platform/tests/workers/semantics/reporting-errors/004.js
@@ -0,0 +1,6 @@
+var i = 0;
+onconnect = function (e) {
+ i++;
+ setTimeout(function() { e.ports[0].postMessage(i); }, 250);
+ y(); // will "report the error"
+}