summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/class/parenExprToString.js
blob: a93972ce92b4fe3c023c6e99bb47cb1ae54ff861 (plain)
1
2
3
4
5
6
7
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");