summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-07-13 23:06:35 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:42 -0400
commit92ca89f5f791656b593596e0ce992cf1e1e42b41 (patch)
tree501c4cafea17203b64f5d14743e5ec03e0237452 /js/src/tests/ecma_6
parent22dba02b7bcab4d6dfe6b326ecc0a746e5a87191 (diff)
downloadUXP-92ca89f5f791656b593596e0ce992cf1e1e42b41.tar
UXP-92ca89f5f791656b593596e0ce992cf1e1e42b41.tar.gz
UXP-92ca89f5f791656b593596e0ce992cf1e1e42b41.tar.lz
UXP-92ca89f5f791656b593596e0ce992cf1e1e42b41.tar.xz
UXP-92ca89f5f791656b593596e0ce992cf1e1e42b41.zip
1357483 - Stop changing the end position of parenthesized expression ParseNodes.
Diffstat (limited to 'js/src/tests/ecma_6')
-rw-r--r--js/src/tests/ecma_6/Class/parenExprToString.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/Class/parenExprToString.js b/js/src/tests/ecma_6/Class/parenExprToString.js
new file mode 100644
index 000000000..a93972ce9
--- /dev/null
+++ b/js/src/tests/ecma_6/Class/parenExprToString.js
@@ -0,0 +1,8 @@
+// Test that parenthesized class expressions don't get their toString offsets
+// messed up.
+
+assertEq((class {}).toString(), "class {}");
+assertEq(((class {})).toString(), "class {}");
+
+if (typeof reportCompare === "function")
+ reportCompare(0, 0, "OK");