Changeset 24884 in webkit for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- Aug 6, 2007, 12:00:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r24874 r24884 43 43 JSObject* jsThisObject = toJS(thisObject); 44 44 UString::Rep* scriptRep = toJS(script); 45 UString::Rep* sourceURLRep = toJS(sourceURL);45 UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 46 46 // Interpreter::evaluate sets "this" to the global object if it is NULL 47 47 Completion completion = exec->dynamicInterpreter()->evaluate(UString(sourceURLRep), startingLineNumber, UString(scriptRep), jsThisObject); … … 66 66 ExecState* exec = toJS(ctx); 67 67 UString::Rep* scriptRep = toJS(script); 68 UString::Rep* sourceURLRep = toJS(sourceURL);68 UString::Rep* sourceURLRep = sourceURL ? toJS(sourceURL) : &UString::Rep::null; 69 69 Completion completion = exec->dynamicInterpreter()->checkSyntax(UString(sourceURLRep), startingLineNumber, UString(scriptRep)); 70 70 if (completion.complType() == Throw) {
Note:
See TracChangeset
for help on using the changeset viewer.