Ignore:
Timestamp:
Dec 2, 2003, 2:11:47 AM (21 years ago)
Author:
mjs
Message:

Merged patches from Harri Porten and David Faure to fix:

<rdar://problem/3497643>: reproducible crash printing self-referential array

  • kjs/array_object.cpp: (ArrayProtoFuncImp::call): Break out of the loop if an exception was thrown.
  • kjs/nodes.cpp: (FunctionCallNode::evaluate): Move function call depth check from here...
  • kjs/object.cpp: (KJS::Object::call): ...to here.
  • kjs/object.h: Un-inline Object::call now that it does more.
File:
1 edited

Legend:

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

    r5565 r5645  
    470470      if (element.type() != UndefinedType && element.type() != NullType)
    471471        str += element.toString(exec);
     472      if ( exec->hadException() )
     473        break;
    472474    }
    473475    result = String(str);
Note: See TracChangeset for help on using the changeset viewer.