mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-23 06:01:52 +00:00
Update test expectations
This commit is contained in:
parent
a612ce9bdc
commit
b9b4e389b0
@ -8,7 +8,9 @@ Test V8::registerExtension() : Basic extension registering
|
|||||||
V8Js::registerExtension('a', 'print("world!\n");', array('b'));
|
V8Js::registerExtension('a', 'print("world!\n");', array('b'));
|
||||||
V8Js::registerExtension('b', 'print("Hello ");');
|
V8Js::registerExtension('b', 'print("Hello ");');
|
||||||
|
|
||||||
var_dump(V8JS::getExtensions());
|
$extensions = V8JS::getExtensions();
|
||||||
|
ksort($extensions);
|
||||||
|
var_dump($extensions);
|
||||||
|
|
||||||
$a = new V8Js('myobj', array(), array('a'));
|
$a = new V8Js('myobj', array(), array('a'));
|
||||||
?>
|
?>
|
||||||
|
@ -8,7 +8,9 @@ Test V8::registerExtension() : Circular dependencies
|
|||||||
V8Js::registerExtension('a', 'print("A");', array('b'));
|
V8Js::registerExtension('a', 'print("A");', array('b'));
|
||||||
V8Js::registerExtension('b', 'print("B");', array('a'));
|
V8Js::registerExtension('b', 'print("B");', array('a'));
|
||||||
|
|
||||||
var_dump(V8JS::getExtensions());
|
$extensions = V8JS::getExtensions();
|
||||||
|
ksort($extensions);
|
||||||
|
var_dump($extensions);
|
||||||
|
|
||||||
$a = new V8Js('myobj', array(), array('a'));
|
$a = new V8Js('myobj', array(), array('a'));
|
||||||
?>
|
?>
|
||||||
@ -36,10 +38,10 @@ array(2) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Warning: Fatal V8 error in v8::Context::New(): Circular extension dependency in %s on line 8
|
Warning: Fatal V8 error in v8::Context::New(): Circular extension dependency in %s on line %d
|
||||||
|
|
||||||
Fatal error: Uncaught V8JsException: Failed to create V8 context. Check that registered extensions do not have errors. in %s:8
|
Fatal error: Uncaught V8JsException: Failed to create V8 context. Check that registered extensions do not have errors. in %s:%d
|
||||||
Stack trace:
|
Stack trace:
|
||||||
#0 %s(8): V8Js->__construct('myobj', Array, Array)
|
#0 %s(%d): V8Js->__construct('myobj', Array, Array)
|
||||||
#1 {main}
|
#1 {main}
|
||||||
thrown in %s on line 8
|
thrown in %s on line %d
|
||||||
|
@ -44,6 +44,7 @@ $a->executeString($JS, "test.js");
|
|||||||
|
|
||||||
// Check that variable has not been modified
|
// Check that variable has not been modified
|
||||||
var_dump($a->somevar);
|
var_dump($a->somevar);
|
||||||
|
$a = NULL;
|
||||||
?>
|
?>
|
||||||
===EOF===
|
===EOF===
|
||||||
--EXPECT--
|
--EXPECT--
|
||||||
|
Loading…
Reference in New Issue
Block a user