Changeset 89226 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Jun 19, 2011, 7:57:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r89219 r89226 771 771 if (i == 0) { 772 772 PropertySlot slot(globalObject); 773 if (!globalObject->getPropertySlot(callFrame, JSONPPath[i].m_pathEntryName, slot)) 774 return throwError(callFrame, createUndefinedVariableError(globalObject->globalExec(), JSONPPath[i].m_pathEntryName)); 773 if (!globalObject->getPropertySlot(callFrame, JSONPPath[i].m_pathEntryName, slot)) { 774 if (i) 775 return throwError(callFrame, createUndefinedVariableError(globalObject->globalExec(), JSONPPath[i].m_pathEntryName)); 776 goto failedJSONP; 777 } 775 778 baseObject = slot.getValue(callFrame, JSONPPath[i].m_pathEntryName); 776 779 } else … … 813 816 return result; 814 817 } 815 818 failedJSONP: 816 819 JSObject* error = program->compile(callFrame, scopeChain); 817 820 if (error)
Note:
See TracChangeset
for help on using the changeset viewer.