Changeset 28468 in webkit for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r27730 r28468 26 26 27 27 #include "config.h" 28 29 #include <wtf/Platform.h>30 28 #include "JSBase.h" 31 29 32 30 #include "APICast.h" 33 34 31 #include <kjs/ExecState.h> 32 #include <kjs/JSGlobalObject.h> 33 #include <kjs/JSLock.h> 35 34 #include <kjs/interpreter.h> 36 #include <kjs/JSLock.h>37 35 #include <kjs/object.h> 38 36 … … 47 45 UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 48 46 // Interpreter::evaluate sets "this" to the global object if it is NULL 49 Completion completion = exec->dynamicInterpreter()->evaluate(UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThisObject);47 Completion completion = Interpreter::evaluate(exec->dynamicGlobalObject()->globalExec(), UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThisObject); 50 48 51 49 if (completion.complType() == Throw) { … … 69 67 UString::Rep* scriptRep = toJS(script); 70 68 UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 71 Completion completion = exec->dynamicInterpreter()->checkSyntax(UString(sourceURLRep), startingLineNumber, UString(scriptRep));69 Completion completion = Interpreter::checkSyntax(exec->dynamicGlobalObject()->globalExec(), UString(sourceURLRep), startingLineNumber, UString(scriptRep)); 72 70 if (completion.complType() == Throw) { 73 71 if (exception)
Note:
See TracChangeset
for help on using the changeset viewer.