Ignore:
Timestamp:
Feb 18, 2006, 5:31:31 PM (19 years ago)
Author:
darin
Message:

JavaScriptCore:

Test: fast/js/toString-exception.html

Reviewed by Maciej.

  • kjs/array_object.cpp: (ArrayProtoFunc::callAsFunction): Remove the object from the visited elements set before returning an error.

LayoutTests:

Reviewed by Maciej.

  • fast/js/resources/toString-exception.js: Added.
  • fast/js/toString-exception-expected.txt: Added.
  • fast/js/toString-exception.html: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/array_object.cpp

    r12329 r12890  
    507507            str += static_cast<JSObject *>(conversionFunction)->call(exec, o, List())->toString(exec);
    508508          } else {
     509            visitedElems.remove(thisObj);
    509510            return throwError(exec, RangeError, "Can't convert " + o->className() + " object to string");
    510511          }
Note: See TracChangeset for help on using the changeset viewer.