summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/misc/unicode-identifier-82f1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_5/misc/unicode-identifier-82f1.js')
-rw-r--r--js/src/tests/ecma_5/misc/unicode-identifier-82f1.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/ecma_5/misc/unicode-identifier-82f1.js b/js/src/tests/ecma_5/misc/unicode-identifier-82f1.js
new file mode 100644
index 000000000..313832cc3
--- /dev/null
+++ b/js/src/tests/ecma_5/misc/unicode-identifier-82f1.js
@@ -0,0 +1,16 @@
+/*
+ * Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/
+ */
+
+var o = {}
+try {
+ eval('o.\\u82f1 = 42;');
+}
+catch (e) {
+ assertEq('should not fail', true);
+}
+assertEq(o['\u82f1'], 42);
+
+if (typeof reportCompare == 'function')
+ reportCompare(true, true);