Bug 424991 - JS_GetScopeChain and JS_NewScriptObject should CHECK_REQUEST(cx) (r=crowder)

This commit is contained in:
Jason Orendorff 2008-08-19 14:30:21 -05:00
parent 92e923268b
commit 841369f9bb

View File

@ -1768,6 +1768,7 @@ JS_GetScopeChain(JSContext *cx)
{
JSStackFrame *fp;
CHECK_REQUEST(cx);
fp = cx->fp;
if (!fp) {
/*
@ -4699,6 +4700,7 @@ JS_NewScriptObject(JSContext *cx, JSScript *script)
JSTempValueRooter tvr;
JSObject *obj;
CHECK_REQUEST(cx);
if (!script)
return js_NewObject(cx, &js_ScriptClass, NULL, NULL, 0);