--TEST-- Test V8::setTimeLimit() : Time limit applied to V8Function calls --SKIPIF-- --FILE-- setTimeLimit(100); $func = $v8->executeString($JS); var_dump($func); try { $func(); } catch (V8JsTimeLimitException $e) { print get_class($e); print PHP_EOL; print $e->getMessage(); print PHP_EOL; } ?> ===EOF=== --EXPECTF-- object(V8Function)#%d (0) { } V8JsTimeLimitException Script time limit of 100 milliseconds exceeded ===EOF===