summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/expressions/constant-folded-labeled-statement.js
blob: 245693b50de2afa50b6cbf31807577e170693714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
var BUGNUMBER = 1499448;
var summary = "Constant folder should fold labeled statements";

print(BUGNUMBER + ": " + summary);

if (typeof disassemble === "function") {
    var code = disassemble(() => { x: 2+2; });

    if (typeof reportCompare === "function")
        reportCompare(true, /Int8 4/.test(code));
}

if (typeof reportCompare === "function")
    reportCompare(true, true);