comparison: js/src/jit-test/tests/arrow-functions/const-1.js
js/src/jit-test/tests/arrow-functions/const-1.js
- changeset 0
- 6474c204b198
equal
deleted
inserted
replaced
|
1 // Arguments with default parameters can shadow const locals. |
|
2 |
|
3 "use strict"; |
|
4 |
|
5 function f() { |
|
6 const x = 1; |
|
7 return (x = 0) => x; |
|
8 } |
|
9 |
|
10 var g = f(); |
|
11 assertEq(g(), 0); |