Skip to content

Commit 7dd8e08

Browse files
committed
Allowing error bubbling from standalone code
1 parent c2c0ef8 commit 7dd8e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function hzCompile(source, mod = false, standalone = false, spa
1313
});
1414
if (standalone) {
1515
const header = fs.readFileSync(join(__dirname, "header.js"), 'utf8');
16-
output.code = header + "hzDisp.exec(function(hzUserLib){return hzUserLib.hookCoroutine(function*(){" + output.code + "});});";
16+
output.code = header + "hzDisp.exec(function(hzUserLib){return hzUserLib.hookCoroutine(function*(){" + output.code + "});}, null, null, true);";
1717
} else if (mod) {
1818
output.code = "module.exports = function(hzUserLib){return hzUserLib.hookCoroutine(function*(){" + output.code + "});};";
1919
}

0 commit comments

Comments
 (0)