summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/scopes-worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/scopes-worker.js')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/scopes-worker.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/scopes-worker.js b/devtools/client/debugger/test/mochitest/examples/scopes-worker.js
new file mode 100644
index 0000000000..83d7c331bd
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/scopes-worker.js
@@ -0,0 +1,13 @@
+function f() {
+ var var_array = ["mango","pamplemousse","pineapple"];
+ var var_tarray = new Uint8Array([42,43,44]);
+ var var_set = new Set(["papaya","banana"]);
+ var var_map = new Map([[1,"one"],[2,"two"]]);
+ var var_weakmap = new WeakMap();
+ var key = { foo: "foo" }, value = { bar: "bar" };
+ var_weakmap.set(key, value);
+ var var_weakset = new WeakSet();
+ var_weakset.add(key);
+ return 0;
+}
+f();