Changeset 39320 in webkit for trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Dec 15, 2008, 4:22:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r38828 r39320 272 272 { 273 273 JSObject* thisObject = thisValue->toThisObject(exec); 274 JS GlobalObject* globalObject = thisObject->toGlobalObject(exec);275 if (! globalObject || globalObject->evalFunction() != function)274 JSObject* unwrappedObject = thisObject->unwrappedObject(); 275 if (!unwrappedObject->isGlobalObject() || static_cast<JSGlobalObject*>(unwrappedObject)->evalFunction() != function) 276 276 return throwError(exec, EvalError, "The \"this\" value passed to eval must be the global object from which eval originated"); 277 277 … … 291 291 return throwError(exec, SyntaxError, errMsg, errLine, source.provider()->asID(), NULL); 292 292 293 return exec->interpreter()->execute(evalNode.get(), exec, thisObject, globalObject->globalScopeChain().node(), exec->exceptionSlot());293 return exec->interpreter()->execute(evalNode.get(), exec, thisObject, static_cast<JSGlobalObject*>(unwrappedObject)->globalScopeChain().node(), exec->exceptionSlot()); 294 294 } 295 295
Note:
See TracChangeset
for help on using the changeset viewer.