mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-10 04:58:41 +00:00
10 lines
252 B
PHP
10 lines
252 B
PHP
|
<?php
|
||
|
|
||
|
V8Js::registerExtension('a', file_get_contents('js/json-template.js'), array('b'));
|
||
|
V8Js::registerExtension('b', file_get_contents('js/jstparser.js'), array('a'));
|
||
|
|
||
|
var_dump(V8JS::getExtensions());
|
||
|
|
||
|
$a = new V8Js('myobj', array(), array('b'));
|
||
|
|