瀏覽代碼

Don't rethrow outer exception if report_uncaught is false.

This would cause the exception to stick around and the next time JavaScript
is executed, this exception would be (anomalously) thrown.
C. Scott Ananian 11 年之前
父節點
當前提交
abadda147c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      v8js.cc

+ 1 - 0
v8js.cc

@@ -1015,6 +1015,7 @@ static PHP_METHOD(V8Js, executeString)
 			if (result.IsEmpty()) {
 				MAKE_STD_ZVAL(c->pending_exception);
 				php_v8js_create_script_exception(c->pending_exception, &try_catch TSRMLS_CC);
+				return;
 			}
 		}