Struct js::front::stdlib::function::Function[src]
pub struct Function {
pub object: ObjectData,
pub repr: FunctionData,
pub args: Vec<String>,
}A Javascript function
Fields
object | The fields associated with the function |
repr | This function's JIT representation |
args | The argument names of the function |
Methods
impl Function
fn new(repr: FunctionData, args: Vec<String>) -> Function
Make a new function
fn make(repr: FunctionData, args: &[&'static str]) -> Value
Create a function from function data and arguments
fn call(&self, args: Vec<Value>, global: Value, scope: Value, this: Value) -> ResultValue
Call with some args