Structs
EntropySource is used as a callback function when v8 needs a source
of entropy.
Traits
Functions
Releases any resources used by v8 and stops any utility threads
that may be running. Note that disposing v8 is permanent, it
cannot be reinitialized.
Clears all references to the v8::Platform. This should be invoked after
V8 was disposed. If it is called if V8 is not disposed, it will panic.
Sets the v8::Platform to use. This should be invoked before V8 is
initialized.
Get the version string.
Initializes V8. This function needs to be called before the first Isolate
is created. It always returns true.
Sets the v8::Platform to use. This should be invoked before V8 is
initialized.
Allows the host application to provide a callback which can be used
as a source of entropy for random number generators.
Pass the command line arguments to v8.
The first element of args (which usually corresponds to the binary name) is
ignored.
Returns a vector of command line arguments that V8 did not understand.
TODO: Check whether this is safe to do after globally initializing v8.
The example code below is here to avoid the V8 usage string and options
that are printed to stdout by this function. Placing this here instead of
in a test allows the output to be suppressed.
Sets V8 flags from a string.