Skip to content

Commit

Permalink
Fix attribute configurable of the length property of arguments (#1071)
Browse files Browse the repository at this point in the history
Co-authored-by: tofpie <tofpie@users.noreply.github.com>
  • Loading branch information
tofpie and tofpie authored Jan 15, 2021
1 parent aa03a7d commit 797092c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/builtins/function/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub fn create_unmapped_arguments_object(arguments_list: &[Value]) -> Value {
// Set length
let length = DataDescriptor::new(
len,
Attribute::WRITABLE | Attribute::NON_ENUMERABLE | Attribute::PERMANENT,
Attribute::WRITABLE | Attribute::NON_ENUMERABLE | Attribute::CONFIGURABLE,
);
// Define length as a property
obj.ordinary_define_own_property("length", length.into());
Expand Down

0 comments on commit 797092c

Please sign in to comment.