comparison: js/src/jit-test/tests/arguments/genexpr-5.js
js/src/jit-test/tests/arguments/genexpr-5.js
- changeset 2
- 7e26c7da4463
equal
deleted
inserted
replaced
|
1 // 'arguments' binding can be closed over and outlives the function activation. |
|
2 |
|
3 function f() { |
|
4 return (arguments for (x of [1])); |
|
5 } |
|
6 |
|
7 var args = f("ponies").next(); |
|
8 assertEq(args[0], "ponies"); |