summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/mapped-freeze.js
blob: e60cb242339f8f49d7c1cd8618b704277b9f4d08 (plain)
1
2
3
4
5
6
7
8
function f(a) {
  Object.freeze(arguments);
  a = 1;
  return arguments[0];
}

assertEq(f(10), 10);
assertEq(f("hello"), "hello");