summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js')
-rw-r--r--js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js b/js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js
new file mode 100644
index 0000000000..0b4f69396a
--- /dev/null
+++ b/js/src/tests/test262/language/statements/variable/arguments-fn-non-strict.js
@@ -0,0 +1,16 @@
+// Copyright (c) 2018 Mike Pennisi. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+es5id: 12.2.1-12
+esid: sec-variable-statement
+description: >
+ arguments as local var identifier is allowed within a function declaration
+flags: [noStrict]
+---*/
+
+function f() {
+ var arguments;
+}
+
+reportCompare(0, 0);