Bug 746843 - change StackFrame::scopeChain() to return a HandleObject (r=bhackett)

This commit is contained in:
Luke Wagner
2012-04-13 18:06:40 -07:00
parent 77ab9aadee
commit cd818c77ee
25 changed files with 111 additions and 95 deletions

View File

@@ -1440,7 +1440,7 @@ js_NewGenerator(JSContext *cx)
JS_ASSERT(stackfp->base() == cx->regs().sp);
JS_ASSERT(stackfp->actualArgs() <= stackfp->formalArgs());
GlobalObject *global = &stackfp->scopeChain().global();
GlobalObject *global = &stackfp->global();
JSObject *proto = global->getOrCreateGeneratorPrototype(cx);
if (!proto)
return NULL;