Skip to content

Commit

Permalink
func docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwilliams committed Apr 20, 2020
1 parent f959e1e commit 408af36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boa/src/builtins/function_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ pub enum ConstructorKind {
Derived,
}
/// Defines how this references are interpreted within the formal parameters and code body of the function.
///
/// Arrow functions don't define a `this` and thus are lexical, `function`s do define a this and thus are NonLexical
#[derive(Debug, Copy, Clone)]
pub enum ThisMode {
Lexical,
NonLexical,
}

/// FunctionBody is Boa specific, it will either be Rust code or JavaScript code (Block Node)
/// FunctionBody is specific to this interpreter, it will either be Rust code or JavaScript code (AST Node)
#[derive(Clone)]
pub enum FunctionBody {
BuiltIn(NativeFunctionData),
Expand Down

0 comments on commit 408af36

Please sign in to comment.