blob: ae7fbe879c54a83da379a9327aef46b92c73bf3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Annex B.3.3.1 disallows Annex B lexical function behavior when redeclaring a
// parameter.
(function(f) {
if (true) function f() { }
assertEq(f, 123);
}(123));
(function(f) {
{ function f() { } }
assertEq(f, 123);
}(123));
(function(f = 123) {
assertEq(f, 123);
{ function f() { } }
assertEq(f, 123);
}());
if (typeof reportCompare === "function")
reportCompare(true, true);
|