njs_output(opts, vm, ret);
+ if (!opts->interactive && ret == NJS_ERROR) {
+ return NJS_ERROR;
+ }
+
for ( ;; ) {
if (!njs_vm_pending(vm)) {
break;
if (ret == NJS_ERROR) {
njs_output(opts, vm, ret);
+
+ if (!opts->interactive) {
+ return NJS_ERROR;
+ }
}
}
"Error: Not a directory*"}
}
+njs_run {"-c" "setTimeout(() => {console.log('A'.repeat(1024))}, 0); ref"} \
+"^Thrown:
+ReferenceError: \"ref\" is not defined in string:1
+ at main \\\(native\\\)\n$"
+
+njs_run {"-c" "setTimeout(() => {ref}, 0); setTimeout(() => {console.log('A'.repeat(1024))}, 0)"} \
+"^Thrown:
+ReferenceError: \"ref\" is not defined in string:1
+ at anonymous \\\(native\\\)
+ at main \\\(native\\\)\n$"
+
# Modules
njs_run {"-p" "test/module/libs" "./test/module/normal.js"} \