summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js
blob: f0adedf7d84e89cef83e8cce50617907d74858fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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));


if (typeof reportCompare === "function")
  reportCompare(true, true);