mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-31 22:31:52 +00:00
Exit current isolate on fatal V8 error.
This commit is contained in:
parent
03728d8bbd
commit
dbe477fc8e
4
v8js.cc
4
v8js.cc
@ -747,6 +747,10 @@ static int _php_v8js_create_ext_strarr(const char ***retval, int count, HashTabl
|
|||||||
|
|
||||||
static void php_v8js_fatal_error_handler(const char *location, const char *message) /* {{{ */
|
static void php_v8js_fatal_error_handler(const char *location, const char *message) /* {{{ */
|
||||||
{
|
{
|
||||||
|
v8::Isolate *isolate = v8::Isolate::GetCurrent();
|
||||||
|
if (isolate) {
|
||||||
|
isolate->Exit();
|
||||||
|
}
|
||||||
if (location) {
|
if (location) {
|
||||||
zend_error(E_ERROR, "%s %s", location, message);
|
zend_error(E_ERROR, "%s %s", location, message);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user