mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
Merge in bug 424991 from jorendorff
This commit is contained in:
commit
e4cef4cfcb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user