Constructs a new V8Js object.
The name of the object passed to Javascript. Defaults to PHP.
Map of PHP variables that will be available in Javascript. Must be an associative array in format array("name-for-js" => "name-of-php-variable"). Defaults to empty array.
List of extensions registered using V8Js::registerExtension() which should be available in the Javascript context of the created V8Js object.
Note:
Extensions registered to be enabled automatically do not need to be listed in this array. Also if an extension has dependencies, those dependencies can be omitted as well. Defaults to empty array.
Controls whether uncaught Javascript exceptions are reported immediately or not. Defaults to TRUE. If set to FALSE the uncaught exception can be accessed using V8Js::getPendingException().
Returns a new V8Js context object.