summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/class-static.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/reflect-parse/class-static.js')
-rw-r--r--js/src/tests/non262/reflect-parse/class-static.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/tests/non262/reflect-parse/class-static.js b/js/src/tests/non262/reflect-parse/class-static.js
new file mode 100644
index 0000000000..e770b2dfc6
--- /dev/null
+++ b/js/src/tests/non262/reflect-parse/class-static.js
@@ -0,0 +1,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); \ No newline at end of file