summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/classes.js
blob: a5dc527f1cf71f6b193cc366e8d0b5b31b65e688 (plain)
1
2
3
4
5
6
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 });