Struct v8::context::Context [] [src]

pub struct Context(_, _);

A sandboxed execution context with its own set of built-in objects and functions.

Methods

impl Context
[src]

Creates a new context and returns a handle to the newly allocated context.

Binds the context to the current scope.

Within this scope, functionality that relies on implicit contexts will work.

Returns the global proxy object.

Global proxy object is a thin wrapper whose prototype points to actual context's global object with the properties like Object, etc. This is done that way for security reasons (for more details see https://wiki.mozilla.org/Gecko:SplitWindow).

Please note that changes to global proxy object prototype most probably would break VM---v8 expects only global object as a prototype of global proxy object.

Creates a context from a set of raw pointers.

Returns the underlying raw pointer behind this context.

Trait Implementations

impl Debug for Context
[src]

Formats the value using the given formatter.

impl Clone for Context
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Context
[src]

A method called when the value goes out of scope. Read more