0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-12-22 20:51:51 +00:00

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.
This commit is contained in:
C. Scott Ananian 2013-10-21 14:12:15 -04:00
parent 2516e76ff8
commit abadda147c

View File

@ -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;
}
}