summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/class-static.js
blob: e770b2dfc696330f7b9b4ec582f56891ab361cab (plain)
1
2
3
4
5
6
7
8
// |reftest| skip-if(!xulRuntime.shell)
// Classes
function testClassStaticBlock() {

    assertExpr("(class C { static { 2; } })", classExpr(ident("C"), null, [staticClassBlock(blockStmt([exprStmt(lit(2))]))]));
}

runtest(testClassStaticBlock);