summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/misc/redeclare-var-non-writable-property.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/misc/redeclare-var-non-writable-property.js')
-rw-r--r--js/src/tests/non262/misc/redeclare-var-non-writable-property.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/non262/misc/redeclare-var-non-writable-property.js b/js/src/tests/non262/misc/redeclare-var-non-writable-property.js
new file mode 100644
index 0000000000..f21289d853
--- /dev/null
+++ b/js/src/tests/non262/misc/redeclare-var-non-writable-property.js
@@ -0,0 +1,24 @@
+/*
+ * Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/
+ */
+
+//-----------------------------------------------------------------------------
+var BUGNUMBER = 539488;
+var summary =
+ '|var| statements for existing, read-only/permanent properties should not ' +
+ 'be errors';
+
+print(BUGNUMBER + ": " + summary);
+
+/**************
+ * BEGIN TEST *
+ **************/
+
+var undefined;
+
+/******************************************************************************/
+
+reportCompare(true, true);
+
+print("All tests passed!");