Changeset 10207 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Aug 15, 2005, 5:47:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r10084 r10207 629 629 } 630 630 if (charLen == 0) { 631 if (strict) { 632 ObjectImp *error = Error::create(exec, URIError); 633 exec->setException(error); 634 return error; 635 } 631 if (strict) 632 return throwError(exec, URIError); 636 633 // The only case where we don't use "strict" mode is the "unescape" function. 637 634 // For that, it's good to support the wonky "%u" syntax for compatibility with WinIE. … … 807 804 808 805 // no program node means a syntax occurred 809 if (!progNode) { 810 ObjectImp *err = Error::create(exec,SyntaxError,errMsg.ascii(),errLine); 811 err->put(exec,"sid",Number(sid)); 812 exec->setException(err); 813 return err; 814 } 806 if (!progNode) 807 return throwError(exec, SyntaxError, errMsg, errLine, sid, NULL); 815 808 816 809 progNode->ref();
Note:
See TracChangeset
for help on using the changeset viewer.