0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-11-10 04:58:41 +00:00
phpv8/samples/test_extension.php

10 lines
252 B
PHP
Raw Normal View History

2010-12-30 14:04:51 +00:00
<?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'));