Ignore:
Timestamp:
Jan 19, 2011, 5:53:50 PM (14 years ago)
Author:
Darin Adler
Message:

2011-01-18 Darin Adler <Darin Adler>

Reviewed by Geoffrey Garen.

Stack overflow when converting an Error object to string
https://bugs.webkit.org/show_bug.cgi?id=46410

  • fast/js/script-tests/toString-recursion.js: Added.
  • fast/js/toString-recursion-expected.txt: Added.
  • fast/js/toString-recursion.html: Added.

2011-01-18 Darin Adler <Darin Adler>

Reviewed by Geoffrey Garen.

Stack overflow when converting an Error object to string
https://bugs.webkit.org/show_bug.cgi?id=46410

  • Android.mk: Added StringRecursionChecker.cpp and StringRecursionChecker.h.
  • CMakeLists.txt: Ditto.
  • GNUmakefile.am: Ditto.
  • JavaScriptCore.gypi: Ditto.
  • JavaScriptCore.pro: Ditto.
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Ditto.
  • JavaScriptCore.xcodeproj/project.pbxproj: Ditto.
  • runtime/ArrayPrototype.cpp: (JSC::arrayProtoFuncToString): Use StringRecursionChecker instead of the older hand-written code to do the same thing. (JSC::arrayProtoFuncToLocaleString): Ditto. (JSC::arrayProtoFuncJoin): Ditto.
  • runtime/ErrorPrototype.cpp: (JSC::errorProtoFuncToString): Use StringRecursionChecker.
  • runtime/JSGlobalData.h: Renamed arrayVisitedElements to stringRecursionCheckVisitedObjects.
  • runtime/RegExpPrototype.cpp: (JSC::regExpProtoFuncToString): Use StringRecursionChecker.
  • runtime/StringRecursionChecker.cpp: Added.
  • runtime/StringRecursionChecker.h: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/JavaScriptCore.gypi

    r75855 r76185  
    338338            'runtime/StringPrototype.cpp',
    339339            'runtime/StringPrototype.h',
     340            'runtime/StringRecursionChecker.cpp',
     341            'runtime/StringRecursionChecker.h',
    340342            'runtime/Structure.cpp',
    341343            'runtime/Structure.h',
Note: See TracChangeset for help on using the changeset viewer.