diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/jit-test/tests/arguments/mapped-freeze.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arguments/mapped-freeze.js b/js/src/jit-test/tests/arguments/mapped-freeze.js new file mode 100644 index 0000000000..e60cb24233 --- /dev/null +++ b/js/src/jit-test/tests/arguments/mapped-freeze.js @@ -0,0 +1,8 @@ +function f(a) { + Object.freeze(arguments); + a = 1; + return arguments[0]; +} + +assertEq(f(10), 10); +assertEq(f("hello"), "hello"); |