Skip to content

Commit

Permalink
Merge ba9f057 into 51da655
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed May 18, 2022
2 parents 51da655 + ba9f057 commit ccd1624
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 60 deletions.
8 changes: 8 additions & 0 deletions boa_engine/src/builtins/function/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ mod tests;
///
/// Native functions need to have this signature in order to
/// be callable from Javascript.
///
/// # Arguments
///
/// - The first argument represents the `this` variable of every Javascript function.
///
/// - The second argument represents a list of all arguments passed to the function.
///
/// - The last argument is the [`Context`] of the engine.
pub type NativeFunctionSignature = fn(&JsValue, &[JsValue], &mut Context) -> JsResult<JsValue>;

// Allows restricting closures to only `Copy` ones.
Expand Down

0 comments on commit ccd1624

Please sign in to comment.