Source code
Revision control
Copy as Markdown
Other Tools
// |jit-test| skip-if: helperThreadCount() === 0
// Any copyright is dedicated to the Public Domain.
// Ensure off-thread parse works for ergonomic brand checks.
load(libdir + 'asserts.js');
offThreadCompileToStencil(`
class A {
#x
static hx(o) { return #x in o; }
};
throw "Yay"`);
assertThrowsValue(() => {
var stencil = finishOffThreadStencil();
evalStencil(stencil);
}, 'Yay');