Changeset 15140
- Timestamp:
- 03/22/13 23:28:01 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r15139 r15140 697 697 const bool rc = ExecuteFile(*file); 698 698 if (exception.HasCaught()) 699 { 700 // If this is called from the main thread, re-throw 701 if (fThreadId==V8::GetCurrentThreadId()) 702 return exception.ReThrow(); 703 704 // Otherwise, handle the exception... 699 705 HandleException(exception, "include"); 706 } 700 707 if (!rc) 701 708 { 709 // ...and stop the thread immediately (if this is not done, 710 // the other threads might still proceed); 702 711 V8::TerminateExecution(fThreadId); 703 712 return ThrowException(Null()); … … 1990 1999 if (exception.HasCaught()) 1991 2000 { 1992 if (file=="internal" )2001 if (file=="internal" || (fThreadId==V8::GetCurrentThreadId() && !main)) 1993 2002 return exception.ReThrow(); 1994 2003
Note:
See TracChangeset
for help on using the changeset viewer.