diff options
Diffstat (limited to 'js/src/tests/non262/class/parenExprToString.js')
-rw-r--r-- | js/src/tests/non262/class/parenExprToString.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tests/non262/class/parenExprToString.js b/js/src/tests/non262/class/parenExprToString.js new file mode 100644 index 0000000000..a93972ce92 --- /dev/null +++ b/js/src/tests/non262/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"); |