Ignore:
Timestamp:
Jun 19, 2011, 7:57:36 PM (14 years ago)
Author:
[email protected]
Message:

Minor fix to correct layout test results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp

    r89219 r89226  
    771771                    if (i == 0) {
    772772                        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                        }
    775778                        baseObject = slot.getValue(callFrame, JSONPPath[i].m_pathEntryName);
    776779                    } else
     
    813816        return result;
    814817    }
    815 
     818failedJSONP:
    816819    JSObject* error = program->compile(callFrame, scopeChain);
    817820    if (error)
Note: See TracChangeset for help on using the changeset viewer.