Bug 1015742 - refactor JSOP_SPREAD to work on iterator; r=jorendorff
This commit is contained in:
@@ -1350,6 +1350,14 @@ ForOfIterator::init(HandleValue iterable, NonIterableBehavior nonIterableBehavio
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
ForOfIterator::initWithIterator(HandleValue aIterator)
|
||||
{
|
||||
JSContext *cx = cx_;
|
||||
RootedObject iteratorObj(cx, ToObject(cx, aIterator));
|
||||
return iterator = iteratorObj;
|
||||
}
|
||||
|
||||
inline bool
|
||||
ForOfIterator::nextFromOptimizedArray(MutableHandleValue vp, bool *done)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user