[][src]Module boa::builtins::function

This module implements the global Function object as well as creates Native Functions.

Objects wrap Functions and expose them via call/construct slots.

The Function` object is used for matching text with a pattern.

More information:

Structs

Function

Boa representation of a Function Object.

Enums

ConstructorKind

Sets the ConstructorKind

FunctionBody

FunctionBody is specific to this interpreter, it will either be Rust code or JavaScript code (AST Node)

ThisMode

Defines how this references are interpreted within the formal parameters and code body of the function.

Functions

create
create_unmapped_arguments_object

Arguments.

init

Initialise the Function object on the global object.

make_builtin_fn

Creates a new member function of a Object or prototype.

make_constructor_fn

Creates a new constructor function

make_function

Create new function [[Construct]]

Type Definitions

NativeFunctionData

fn(this, arguments, ctx) -> ResultValue - The signature of a built-in function