Skip to content

Commit

Permalink
Fix construct usage (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7D2B authored May 27, 2021
1 parent d009fa2 commit 52bd1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/builtins/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ impl Array {
if !c.is_constructable() {
return context.throw_type_error("Symbol.species must be a constructor");
}
c.construct(&[Value::from(length)], c.clone().into(), context)
c.construct(&[Value::from(length)], &c.clone().into(), context)
} else {
context.throw_type_error("Symbol.species must be a constructor")
}
Expand Down

0 comments on commit 52bd1e7

Please sign in to comment.