Browse Source

Also perform isolate exit on fatal error abort.

Taneli Leppa 11 years ago
parent
commit
a8ddf9daef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      v8js_convert.cc

+ 1 - 0
v8js_convert.cc

@@ -195,6 +195,7 @@ static void php_v8js_call_php_func(zval *value, zend_class_entry *ce, zend_funct
 	isolate->Enter();
 
 	if (V8JSG(fatal_error_abort)) {
+		isolate->Exit();
 		v8::V8::TerminateExecution(isolate);
 		info.GetReturnValue().Set(V8JS_NULL);
 		return;