Skip to content

Commit

Permalink
Fix function property order
Browse files Browse the repository at this point in the history
  • Loading branch information
raskad committed Sep 25, 2022
1 parent e9e85f5 commit 62de827
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions boa_engine/src/vm/code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -538,17 +538,17 @@ pub(crate) fn create_function_object(
.configurable(false)
.build();

constructor
.define_property_or_throw("length", length_property, context)
.expect("failed to define the length property of the function");
constructor
.define_property_or_throw("name", name_property, context)
.expect("failed to define the name property of the function");
if !r#async {
constructor
.define_property_or_throw("prototype", prototype_property, context)
.expect("failed to define the prototype property of the function");
}
constructor
.define_property_or_throw("name", name_property, context)
.expect("failed to define the name property of the function");
constructor
.define_property_or_throw("length", length_property, context)
.expect("failed to define the length property of the function");

constructor
}
Expand Down

0 comments on commit 62de827

Please sign in to comment.