Bug 577155 - fix silly error in the fatvalification of Reify

This commit is contained in:
Luke Wagner
2010-07-07 23:39:50 -07:00
parent 1bb8fbf6ba
commit d668a34c32
6 changed files with 29 additions and 28 deletions

View File

@@ -785,14 +785,11 @@ CloseGenerator(JSContext *cx, JSObject *genobj);
#endif
JS_FRIEND_API(JSBool)
js_CloseIterator(JSContext *cx, const Value &v)
js_CloseIterator(JSContext *cx, JSObject *obj)
{
cx->iterValue.setMagic(JS_NO_ITER_VALUE);
JS_ASSERT(v.isObject());
JSObject *obj = &v.toObject();
Class *clasp = obj->getClass();
if (clasp == &js_IteratorClass.base) {
/* Remove enumerators from the active list, which is a stack. */
NativeIterator *ni = obj->getNativeIterator();