summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/worker_setTimeoutWith0.js
diff options
context:
space:
mode:
Diffstat (limited to 'dom/workers/test/worker_setTimeoutWith0.js')
-rw-r--r--dom/workers/test/worker_setTimeoutWith0.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/dom/workers/test/worker_setTimeoutWith0.js b/dom/workers/test/worker_setTimeoutWith0.js
new file mode 100644
index 0000000000..2d8e5e6c22
--- /dev/null
+++ b/dom/workers/test/worker_setTimeoutWith0.js
@@ -0,0 +1,3 @@
+var x = 0;
+setTimeout("x++; '\x00'; x++;");
+setTimeout("postMessage(x);");