Bug 650526 - Follow up to Bug 648102, changes to JS_BufferIsCompilableUnit. r=gal
This commit is contained in:
@@ -670,7 +670,7 @@ ProcessFile(JSContext *cx,
|
|||||||
}
|
}
|
||||||
bufp += strlen(bufp);
|
bufp += strlen(bufp);
|
||||||
lineno++;
|
lineno++;
|
||||||
} while (!JS_BufferIsCompilableUnit(cx, obj, buffer, strlen(buffer)));
|
} while (!JS_BufferIsCompilableUnit(cx, JS_FALSE, obj, buffer, strlen(buffer)));
|
||||||
|
|
||||||
/* Clear any pending exception from previous failed compiles. */
|
/* Clear any pending exception from previous failed compiles. */
|
||||||
JS_ClearPendingException(cx);
|
JS_ClearPendingException(cx);
|
||||||
|
|||||||
@@ -1094,7 +1094,7 @@ ProcessFile(JSContext *cx, JSObject *obj, const char *filename, FILE *file,
|
|||||||
}
|
}
|
||||||
bufp += strlen(bufp);
|
bufp += strlen(bufp);
|
||||||
lineno++;
|
lineno++;
|
||||||
} while (!JS_BufferIsCompilableUnit(cx, obj, buffer, strlen(buffer)));
|
} while (!JS_BufferIsCompilableUnit(cx, JS_FALSE, obj, buffer, strlen(buffer)));
|
||||||
|
|
||||||
DoBeginRequest(cx);
|
DoBeginRequest(cx);
|
||||||
/* Clear any pending exception from previous failed compiles. */
|
/* Clear any pending exception from previous failed compiles. */
|
||||||
|
|||||||
Reference in New Issue
Block a user