Skip to content

Commit

Permalink
Update boa/src/builtins/function_object.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Iban Eguia <iban.eguia@cern.ch>
  • Loading branch information
jasonwilliams and Razican authored May 1, 2020
1 parent d0447ff commit f46a436
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions boa/src/builtins/function_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,13 @@ impl Function {
body: FunctionBody,
this_mode: ThisMode,
) -> Self {
let func = Function {
Self {
body,
environment: Some(scope),
params: parameter_list,
kind: FunctionKind::Ordinary,
this_mode,
};

func
}
}

/// This will create a built-in function object
Expand Down

0 comments on commit f46a436

Please sign in to comment.