Source code

Revision control

Copy as Markdown

Other Tools

let caught = false;
try {
dumpStencil("export var z;", { module : true, lineNumber: 0 });
} catch (e) {
caught = true;
assertEq(e.message.includes("Module cannot be compiled with lineNumber == 0"), true);
}
assertEq(caught, true);