diff options
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/simple-worker.js')
-rw-r--r-- | devtools/client/debugger/test/mochitest/examples/simple-worker.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/simple-worker.js b/devtools/client/debugger/test/mochitest/examples/simple-worker.js new file mode 100644 index 0000000000..d04230a9db --- /dev/null +++ b/devtools/client/debugger/test/mochitest/examples/simple-worker.js @@ -0,0 +1,11 @@ +var count = 0; +function timer() { + var n = ++count; + console.log("WORKER SAYS HELLO! " + n); +} + +setInterval(timer, 1000); + +self.onmessage = () => { + console.log("hi"); +}; |