This commit is contained in:
brendan@mozilla.org 2008-03-03 00:09:36 -08:00
parent a982566c12
commit ae42df3d12

View File

@ -1620,6 +1620,12 @@ js_Execute(JSContext *cx, JSObject *chain, JSScript *script,
frame.callee = NULL;
frame.fun = NULL;
frame.thisp = chain;
OBJ_TO_OUTER_OBJECT(cx, frame.thisp);
if (!frame.thisp) {
ok = JS_FALSE;
goto out;
}
flags |= JSFRAME_COMPUTED_THIS;
frame.argc = 0;
frame.argv = NULL;
frame.nvars = script->ngvars;