summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/classes.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/xdr/classes.js')
-rw-r--r--js/src/jit-test/tests/xdr/classes.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/xdr/classes.js b/js/src/jit-test/tests/xdr/classes.js
new file mode 100644
index 000000000..a5dc527f1
--- /dev/null
+++ b/js/src/jit-test/tests/xdr/classes.js
@@ -0,0 +1,7 @@
+load(libdir + 'bytecode-cache.js');
+
+var test = "new class extends class { } { constructor() { super(); } }()";
+evalWithCache(test, { assertEqBytecode : true });
+
+var test = "new class { method() { super.toString(); } }().method()";
+evalWithCache(test, { assertEqBytecode : true });