diff --git a/src/sbbs3/js_global.c b/src/sbbs3/js_global.c index e50393ce4e58f78362457264726df441128fa6ca..bb220cb7863cc17edf9379ee0e250e4d9f891366 100644 --- a/src/sbbs3/js_global.c +++ b/src/sbbs3/js_global.c @@ -729,7 +729,7 @@ js_require(JSContext *cx, uintN argc, jsval *arglist) if (!JS_IsExceptionPending(cx)) { if (!JS_HasProperty(cx, exec_obj, property, &found) || !found) { - if (TRUE) { //!js_IsTerminated(cx, exec_obj)) { + if (js_IsTerminated(cx, exec_obj)) { JSVALUE_TO_MSTRING(cx, argv[fnarg], filename, NULL); JS_ReportError(cx,"symbol '%s' not defined by script '%s'", property, filename); }