blob: e53746bcb049c8bab53747f5ed59c55a8d075cba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// |jit-test| skip-if: !('oomTest' in this)
function parseModule(source) {
offThreadCompileModuleToStencil(source);
var stencil = finishOffThreadStencil();
return instantiateModuleStencil(stencil);
}
function loadFile(lfVarx) {
oomTest(function() {
parseModule(lfVarx);
});
}
loadFile(`
expect = new class prototype extends Object {
a43 = function () {}
}
`);
|