Changeset 28468 in webkit for trunk/JavaScriptCore/kjs/object.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/object.cpp
r28110 r28468 69 69 70 70 #if KJS_MAX_STACK > 0 71 static int depth = 0; // sum of all concurrent interpreters71 static int depth = 0; // sum of all extant function calls 72 72 73 73 #if JAVASCRIPT_CALL_TRACING … … 366 366 { 367 367 /* Prefer String for Date objects */ 368 if ((hint == StringType) || (hint != StringType) && (hint != NumberType) && (_proto == exec->lexicalInterpreter()->builtinDatePrototype())) {368 if ((hint == StringType) || (hint != NumberType && _proto == exec->lexicalGlobalObject()->datePrototype())) { 369 369 if (JSValue* v = tryGetAndCallProperty(exec, this, exec->propertyNames().toString)) 370 370 return v; … … 600 600 switch (errtype) { 601 601 case EvalError: 602 cons = exec->lexical Interpreter()->builtinEvalError();602 cons = exec->lexicalGlobalObject()->evalErrorConstructor(); 603 603 break; 604 604 case RangeError: 605 cons = exec->lexical Interpreter()->builtinRangeError();605 cons = exec->lexicalGlobalObject()->rangeErrorConstructor(); 606 606 break; 607 607 case ReferenceError: 608 cons = exec->lexical Interpreter()->builtinReferenceError();608 cons = exec->lexicalGlobalObject()->referenceErrorConstructor(); 609 609 break; 610 610 case SyntaxError: 611 cons = exec->lexical Interpreter()->builtinSyntaxError();611 cons = exec->lexicalGlobalObject()->syntaxErrorConstructor(); 612 612 break; 613 613 case TypeError: 614 cons = exec->lexical Interpreter()->builtinTypeError();614 cons = exec->lexicalGlobalObject()->typeErrorConstructor(); 615 615 break; 616 616 case URIError: 617 cons = exec->lexical Interpreter()->builtinURIError();617 cons = exec->lexicalGlobalObject()->URIErrorConstructor(); 618 618 break; 619 619 default: 620 cons = exec->lexical Interpreter()->builtinError();620 cons = exec->lexicalGlobalObject()->errorConstructor(); 621 621 break; 622 622 }
Note:
See TracChangeset
for help on using the changeset viewer.