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

Fix commit 78dc9470 - 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 0e823444
No related branches found
No related tags found
No related merge requests found
......@@ -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