diff options
Diffstat (limited to 'js/src/jit-test/tests/symbol/typeof.js')
-rw-r--r-- | js/src/jit-test/tests/symbol/typeof.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/symbol/typeof.js b/js/src/jit-test/tests/symbol/typeof.js new file mode 100644 index 000000000..d2c7d51cf --- /dev/null +++ b/js/src/jit-test/tests/symbol/typeof.js @@ -0,0 +1,9 @@ +var a = [0, 0, 0, 0, 0, Symbol(), Symbol()]; +var b = []; +function f(i, v) { + b[i] = typeof v; +} +for (var i = 0; i < a.length; i++) + f(i, a[i]); +assertEq(b[b.length - 2], "symbol"); +assertEq(b[b.length - 1], "symbol"); |