Changeset 10496 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Sep 8, 2005, 6:19:19 PM (20 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r10456 r10496 147 147 148 148 149 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, Identifierlabel)149 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, const Identifier &label) 150 150 { 151 151 UString message = msg; … … 163 163 } 164 164 165 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Node *expr, Identifierlabel)165 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Node *expr, const Identifier &label) 166 166 { 167 167 UString message = msg; 168 168 substitute(message, v->toString(exec)); 169 169 substitute(message, expr->toString()); 170 substitute(message, label.ustring()); 170 171 return KJS::throwError(exec, e, message, lineNo(), sourceId(), &sourceURL); 171 172 } 172 173 173 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Identifierlabel)174 ValueImp *Node::throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, const Identifier &label) 174 175 { 175 176 UString message = msg; … … 178 179 return KJS::throwError(exec, e, message, lineNo(), sourceId(), &sourceURL); 179 180 } 180 181 181 182 182 void Node::setExceptionDetailsIfNeeded(ExecState *exec) -
trunk/JavaScriptCore/kjs/nodes.h
r10416 r10496 99 99 protected: 100 100 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg); 101 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp * v, Node *expr);102 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, Identifier label);103 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp * v, Identifier ident);104 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp * v, Node *e1, Node *e2);105 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp * v, Node *expr, Identifier ident);101 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *); 102 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, const Identifier &); 103 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, const Identifier &); 104 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *, Node *); 105 ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *, const Identifier &); 106 106 107 107 void setExceptionDetailsIfNeeded(ExecState *exec);
Note:
See TracChangeset
for help on using the changeset viewer.