Skip to main content

NativeFunctionPointer

Type Alias NativeFunctionPointer 

Source
pub type NativeFunctionPointer = fn(&JsValue, &[JsValue], &mut Context) -> Result<JsValue, JsError>;
Expand description

The required signature for all native built-in function pointers.

ยงArguments

  • The first argument represents the this variable of every ECMAScript function.

  • The second argument represents the list of all arguments passed to the function.

  • The last argument is the engine Context.