summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testAtomize.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testAtomize.js')
-rw-r--r--js/src/jit-test/tests/basic/testAtomize.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testAtomize.js b/js/src/jit-test/tests/basic/testAtomize.js
new file mode 100644
index 0000000000..16076eb6be
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testAtomize.js
@@ -0,0 +1,10 @@
+function testAtomize() {
+ x = {};
+ for (var i = 0; i < 65536; ++i)
+ x[String.fromCharCode(i)] = 1;
+ var z = 0;
+ for (var p in x)
+ ++z;
+ return z;
+}
+assertEq(testAtomize(), 65536)