mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-14 17:38:42 +00:00
21 lines
339 B
Plaintext
21 lines
339 B
Plaintext
|
--TEST--
|
||
|
Test V8::executeString() : Test getJsStartColumn on script exception
|
||
|
--SKIPIF--
|
||
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$v8 = new V8Js();
|
||
|
|
||
|
try {
|
||
|
$v8->executeString("print(blar());");
|
||
|
}
|
||
|
catch(V8JsScriptException $e) {
|
||
|
var_dump($e->getJsStartColumn());
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
===EOF===
|
||
|
--EXPECT--
|
||
|
int(6)
|
||
|
===EOF===
|