Changeset 230720 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Apr 17, 2018, 11:00:07 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r230697 r230720 197 197 template<typename Func> 198 198 int runJSC(CommandLine, bool isWorker, const Func&); 199 static void checkException( GlobalObject*, bool isLastFile, bool hasException, JSValue, CommandLine&, bool& success);199 static void checkException(ExecState*, GlobalObject*, bool isLastFile, bool hasException, JSValue, CommandLine&, bool& success); 200 200 201 201 class Message : public ThreadSafeRefCounted<Message> { … … 1633 1633 if (evaluationException) 1634 1634 result = evaluationException->value(); 1635 checkException(globalObject , true, evaluationException, result, commandLine, success);1635 checkException(globalObject->globalExec(), globalObject, true, evaluationException, result, commandLine, success); 1636 1636 if (!success) 1637 1637 exit(1); … … 2260 2260 } 2261 2261 2262 static void checkException( GlobalObject* globalObject, bool isLastFile, bool hasException, JSValue value, CommandLine& options, bool& success)2262 static void checkException(ExecState* exec, GlobalObject* globalObject, bool isLastFile, bool hasException, JSValue value, CommandLine& options, bool& success) 2263 2263 { 2264 2264 VM& vm = globalObject->vm(); … … 2272 2272 success = success && !hasException; 2273 2273 if (options.m_dump && !hasException) 2274 printf("End: %s\n", value.toWTFString( globalObject->globalExec()).utf8().data());2274 printf("End: %s\n", value.toWTFString(exec).utf8().data()); 2275 2275 if (hasException) 2276 2276 dumpException(globalObject, value); … … 2325 2325 2326 2326 JSFunction* fulfillHandler = JSNativeStdFunction::create(vm, globalObject, 1, String(), [&, isLastFile](ExecState* exec) { 2327 checkException( globalObject, isLastFile, false, exec->argument(0), options, success);2327 checkException(exec, globalObject, isLastFile, false, exec->argument(0), options, success); 2328 2328 return JSValue::encode(jsUndefined()); 2329 2329 }); 2330 2330 2331 2331 JSFunction* rejectHandler = JSNativeStdFunction::create(vm, globalObject, 1, String(), [&, isLastFile](ExecState* exec) { 2332 checkException( globalObject, isLastFile, true, exec->argument(0), options, success);2332 checkException(exec, globalObject, isLastFile, true, exec->argument(0), options, success); 2333 2333 return JSValue::encode(jsUndefined()); 2334 2334 }); … … 2343 2343 if (evaluationException) 2344 2344 returnValue = evaluationException->value(); 2345 checkException(globalObject , isLastFile, evaluationException, returnValue, options, success);2345 checkException(globalObject->globalExec(), globalObject, isLastFile, evaluationException, returnValue, options, success); 2346 2346 } 2347 2347
Note:
See TracChangeset
for help on using the changeset viewer.