From abadda147c495e1e037212b43bc3c7656069c702 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Mon, 21 Oct 2013 14:12:15 -0400 Subject: [PATCH] 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. --- v8js.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/v8js.cc b/v8js.cc index d5de3e3..b49e335 100644 --- a/v8js.cc +++ b/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; } }