Changeset 3009 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Dec 11, 2002, 7:59:24 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r2974 r3009 694 694 695 695 if (v.type() != ObjectType) { 696 return throwError(exec, TypeError, " Expression is no object. Cannot be new'ed");696 return throwError(exec, TypeError, "Value used with new is not object."); 697 697 } 698 698 699 699 Object constr = Object(static_cast<ObjectImp*>(v.imp())); 700 700 if (!constr.implementsConstruct()) { 701 return throwError(exec, TypeError, " Expression is noconstructor.");701 return throwError(exec, TypeError, "Value asked to construct is not a constructor."); 702 702 } 703 703 … … 743 743 printInfo(exec, "WARNING: Failed function call attempt on", v, line); 744 744 #endif 745 return throwError(exec, TypeError, " Expression is noobject. Cannot be called.");745 return throwError(exec, TypeError, "Value is not object. Cannot be called."); 746 746 } 747 747 … … 752 752 printInfo(exec, "Failed function call attempt on", v, line); 753 753 #endif 754 return throwError(exec, TypeError, " Expressiondoes not allow calls.");754 return throwError(exec, TypeError, "Object does not allow calls."); 755 755 } 756 756 … … 761 761 printInfo(exec, "Exceeded maximum function call depth", v, line); 762 762 #endif 763 return throwError(exec, RangeError, "Exceeded maximum call stack size.");763 return throwError(exec, RangeError, "Exceeded maximum function call depth."); 764 764 } 765 765 #endif … … 1230 1230 if (v2.type() != ObjectType) 1231 1231 return throwError(exec, TypeError, 1232 " Shift expression not an object into IN expression." );1232 "Used IN expression with non-object." ); 1233 1233 Object o2(static_cast<ObjectImp*>(v2.imp())); 1234 1234 b = o2.hasProperty(exec, Identifier(v1.toString(exec))); … … 1236 1236 if (v2.type() != ObjectType) 1237 1237 return throwError(exec, TypeError, 1238 " Called instanceof operator on non-object." );1238 "Used instanceof operator on non-object." ); 1239 1239 1240 1240 Object o2(static_cast<ObjectImp*>(v2.imp()));
Note:
See TracChangeset
for help on using the changeset viewer.