ref: 7573f4238e582ec4a5fb04faf6fd913d90722352
parent: 299d6c71c689ceb737b57c229f53334af1627fb1
author: Tor Andersson <[email protected]>
date: Wed Feb 5 00:18:25 EST 2014
Abort main.c with return status if a script fails. Needed for test suites.
--- a/main.c
+++ b/main.c
@@ -51,7 +51,8 @@
if (argc > 1) {
for (i = 1; i < argc; ++i) {
- js_dofile(J, argv[i]);
+ if (js_dofile(J, argv[i]))
+ return 1;
js_gc(J, 0);
}
} else {