--TEST-- Test V8::executeString() : Script validator test using compileString --SKIPIF-- --FILE-- compileString('print("Hello World!");')); try { var_dump($v8->compileString('print("Hello World!);')); } catch (V8JsScriptException $e) { var_dump($e->getMessage()); } ?> ===EOF=== --EXPECTF-- resource(%d) of type (V8Js script) string(%d) "V8Js::compileString():1: SyntaxError: %s" ===EOF===