mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
1357483 - Stop changing the end position of parenthesized expression ParseNodes.
This commit is contained in:
parent
ab85510c20
commit
bbb2447fb0
2 changed files with 8 additions and 1 deletions
8
js/src/tests/ecma_6/Class/parenExprToString.js
Normal file
8
js/src/tests/ecma_6/Class/parenExprToString.js
Normal file
|
|
@ -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");
|
||||
Loading…
Add table
Add a link
Reference in a new issue