--TEST-- Test V8::setExceptionFilter() : Filter handling on exception in converter --SKIPIF-- --FILE-- setExceptionFilter(function (Throwable $ex) { throw new Exception('moep'); }); try { $v8->executeString(' try { PHP.throwException("Oops"); print("done\\n"); } catch (e) { print("caught\\n"); var_dump(e); } ', null, V8Js::FLAG_PROPAGATE_PHP_EXCEPTIONS); } catch (Exception $ex) { echo "caught in php: " . $ex->getMessage() . PHP_EOL; } ?> ===EOF=== --EXPECT-- caught in php: moep ===EOF===