Make Map and Set constructors take a single iterable argument. Bug 726223, r=luke.

This commit is contained in:
Jason Orendorff
2012-03-01 09:01:46 -06:00
parent 6080b6e9e1
commit f3feffa1f4
24 changed files with 281 additions and 15 deletions

View File

@@ -477,7 +477,7 @@ GetCustomIterator(JSContext *cx, JSObject *obj, unsigned flags, Value *vp)
return false;
if (vp->isPrimitive()) {
/*
* We are always coming from js_ValueToIterator, and we are no longer on
* We are always coming from js::ValueToIterator, and we are no longer on
* trace, so the object we are iterating over is on top of the stack (-1).
*/
JSAutoByteString bytes;