Changeset 15212 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Jul 7, 2006, 1:39:38 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r15168 r15212 72 72 } 73 73 74 JSValueRef JSEvaluate(JSContextRef context, JSStringBufferRef script, JS ValueRef thisValue, JSStringBufferRef sourceURL, int startingLineNumber, JSValueRef* exception)74 JSValueRef JSEvaluate(JSContextRef context, JSStringBufferRef script, JSObjectRef thisObject, JSStringBufferRef sourceURL, int startingLineNumber, JSValueRef* exception) 75 75 { 76 76 JSLock lock; 77 77 ExecState* exec = toJS(context); 78 JS Value* jsThisValue = toJS(thisValue);78 JSObject* jsThisObject = toJS(thisObject); 79 79 UString::Rep* scriptRep = toJS(script); 80 80 UString::Rep* sourceURLRep = toJS(sourceURL); 81 // Interpreter::evaluate sets thisValueto the global object if it is NULL82 Completion completion = exec->dynamicInterpreter()->evaluate(UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThis Value);81 // Interpreter::evaluate sets "this" to the global object if it is NULL 82 Completion completion = exec->dynamicInterpreter()->evaluate(UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThisObject); 83 83 84 84 if (completion.complType() == Throw) {
Note:
See TracChangeset
for help on using the changeset viewer.