V8Js::__construct
(PECL v8js >= 0.1.0)
Construct a new V8Js object
Description
Constructs a new V8Js object.
Parameters
object_nameThe name of the object passed to Javascript.
variablesMap of PHP variables that will be available in Javascript. Must be an associative
arrayin formatarray("name-for-js" => "name-of-php-variable"). Defaults to empty array.extensionsList of extensions registered using
V8Js::registerExtension()which should be available in the Javascript context of the createdV8Jsobject.NoteExtensions 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.
report_uncaught_exceptionsControls 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().