Struct v8::script::Script [] [src]

pub struct Script(_, _);

A compiled JavaScript script, tied to a Context which was active when the script was compiled.

Methods

impl Script
[src]

Compiles the specified source code into a compiled script.

Compiles the specified source code into a compiled script.

The specified name will be reported as the script's origin and will show up in stack traces, for example.

Runs this script in the specified context.

If the script returns a value, meaning that the last line of the script evaluates to an expression or there is an explicit return, that value will be returned from this method. If the script throws an exception, that will reslt in this method also throwing an exception.

Trait Implementations

impl Debug for Script
[src]

Formats the value using the given formatter.

impl Clone for Script
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for Script
[src]

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