Changeset 14640 for trunk/FACT++
- Timestamp:
- 11/17/12 15:33:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/InterpreterV8.cc
r14639 r14640 87 87 { 88 88 V8::TerminateExecution(fThreadId); 89 return Undefined(); 89 90 // we have to throw an excption to make sure that the 91 // calling thread does not go on executing until it 92 // has realized that it should terminate 93 return ThrowException(Null()); 90 94 } 91 95 … … 1017 1021 1018 1022 // ------------------------------------------------------------------- 1023 1019 1024 TryCatch exception; 1020 1025 … … 1023 1028 1024 1029 Handle<Value> ret = ConvertEvent(&evt, cnt, service.c_str()); 1025 if (ret->IsArray()) 1026 { 1027 Handle<Array> data = Handle<Array>::Cast(ret); 1028 Handle<Value> args[] = { data }; 1029 1030 Handle<Function>::Cast(val)->Call(obj, 1, args); 1031 } 1030 if (ret->IsObject()) 1031 Handle<Function>::Cast(val)->Call(obj, 1, &ret); 1032 1032 1033 1033 fThreadIds.erase(id);
Note:
See TracChangeset
for help on using the changeset viewer.