Changeset 63267 in webkit for trunk/JavaScriptCore/runtime/FunctionConstructor.cpp
- Timestamp:
- Jul 13, 2010, 5:27:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/FunctionConstructor.cpp
r60762 r63267 96 96 } 97 97 98 int errLine;99 UString errMsg;100 98 JSGlobalObject* globalObject = exec->lexicalGlobalObject(); 101 99 JSGlobalData* globalData = globalObject->globalData(); 102 100 SourceCode source = makeSource(program, sourceURL, lineNumber); 103 RefPtr<FunctionExecutable> function = FunctionExecutable::fromGlobalCode(functionName, exec, exec->dynamicGlobalObject()->debugger(), source, &errLine, &errMsg); 104 if (!function) 105 return throwError(exec, addErrorInfo(globalData, createSyntaxError(globalObject, errMsg), errLine, source)); 101 JSObject* exception = 0; 102 RefPtr<FunctionExecutable> function = FunctionExecutable::fromGlobalCode(functionName, exec, exec->dynamicGlobalObject()->debugger(), source, &exception); 103 if (!function) { 104 ASSERT(exception); 105 return throwError(exec, exception); 106 } 106 107 107 108 ScopeChain scopeChain(globalObject, globalData, globalObject, exec->globalThisValue());
Note:
See TracChangeset
for help on using the changeset viewer.