Bug 713311 - give the remaining scope objects typed interfaces (r=waldo)

This commit is contained in:
Luke Wagner
2012-01-02 15:02:05 -08:00
parent 833fc08689
commit 63d604536b
75 changed files with 2040 additions and 1904 deletions

View File

@@ -1278,7 +1278,7 @@ js_NewGenerator(JSContext *cx)
JS_ASSERT(stackfp->base() == cx->regs().sp);
JS_ASSERT(stackfp->actualArgs() <= stackfp->formalArgs());
GlobalObject *global = stackfp->scopeChain().getGlobal();
GlobalObject *global = &stackfp->scopeChain().global();
JSObject *proto = global->getOrCreateGeneratorPrototype(cx);
if (!proto)
return NULL;
@@ -1622,7 +1622,7 @@ js_InitIteratorClasses(JSContext *cx, JSObject *obj)
{
JS_ASSERT(obj->isNative());
GlobalObject *global = obj->asGlobal();
GlobalObject *global = &obj->asGlobal();
/*
* Bail if Iterator has already been initialized. We test for Iterator