diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-09 01:48:29 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:30 -0400 |
commit | d27591806950034d8d3763a13db6f2c201311991 (patch) | |
tree | ea9b9ec96274ab9d3f0fd48670dc9b1876fdd889 /js/src/tests | |
parent | d200a2b02e50b33511ff2ea26a2968301f06b170 (diff) | |
download | UXP-d27591806950034d8d3763a13db6f2c201311991.tar UXP-d27591806950034d8d3763a13db6f2c201311991.tar.gz UXP-d27591806950034d8d3763a13db6f2c201311991.tar.lz UXP-d27591806950034d8d3763a13db6f2c201311991.tar.xz UXP-d27591806950034d8d3763a13db6f2c201311991.zip |
1339137 - Don't do Annex B lexical function behavior when redeclaring a parameter name in a function with parameter expressions.
Diffstat (limited to 'js/src/tests')
-rw-r--r-- | js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js b/js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js index f0adedf7d..ae7fbe879 100644 --- a/js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js +++ b/js/src/tests/ecma_6/LexicalEnvironment/block-scoped-functions-annex-b-parameter.js @@ -11,6 +11,11 @@ assertEq(f, 123); }(123)); +(function(f = 123) { + assertEq(f, 123); + { function f() { } } + assertEq(f, 123); +}()); if (typeof reportCompare === "function") reportCompare(true, true); |