Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz
This commit is contained in:
@@ -756,7 +756,7 @@ js::IteratorConstructor(JSContext *cx, unsigned argc, Value *vp)
|
||||
keyonly = ToBoolean(args[1]);
|
||||
unsigned flags = JSITER_OWNONLY | (keyonly ? 0 : (JSITER_FOREACH | JSITER_KEYVALUE));
|
||||
|
||||
if (!ValueToIterator(cx, flags, MutableHandleValue::fromMarkedLocation(&args[0])))
|
||||
if (!ValueToIterator(cx, flags, args[0]))
|
||||
return false;
|
||||
args.rval().set(args[0]);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user