Bug 952873 part 1. Rename the cx member of ForOfIterator to cx_ instead. r=jorendorff

This commit is contained in:
Boris Zbarsky
2014-01-28 16:14:47 -08:00
parent 331823b37f
commit 524365f6bc
2 changed files with 4 additions and 2 deletions

View File

@@ -1271,6 +1271,7 @@ const Class StopIterationObject::class_ = {
bool
ForOfIterator::init(HandleValue iterable)
{
JSContext *cx = cx_;
RootedObject iterableObj(cx, ToObject(cx, iterable));
if (!iterableObj)
return false;
@@ -1313,6 +1314,7 @@ ForOfIterator::next(MutableHandleValue vp, bool *done)
{
JS_ASSERT(iterator);
JSContext *cx = cx_;
RootedValue method(cx);
if (!JSObject::getProperty(cx, iterator, iterator, cx->names().next, &method))
return false;