diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/non262/lexical-environment/block-scoped-functions-annex-b-arguments.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/tests/non262/lexical-environment/block-scoped-functions-annex-b-arguments.js b/js/src/tests/non262/lexical-environment/block-scoped-functions-annex-b-arguments.js new file mode 100644 index 0000000000..efc263b66f --- /dev/null +++ b/js/src/tests/non262/lexical-environment/block-scoped-functions-annex-b-arguments.js @@ -0,0 +1,10 @@ +// Test that Annex B function interaction with 'arguments'. + +(function() { + assertEq(typeof arguments, "object"); + { function arguments() {} } + assertEq(typeof arguments, "function"); +})(); + +if (typeof reportCompare === "function") + reportCompare(0, 0); |