Skip to content
Snippets Groups Projects
Commit c185d884 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix commit 78b2682e - wasn't complete

For some reason, I committed test code that commented-out the actual call
to js_IsTerminated() which avoided the unnecessary error log message. I guess
I was testing to confirm the change actually worked. <shrug>
parent 1bf6346b
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment