Skip to content

Commit

Permalink
Add Attribute::Permanent to property length of Array.prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
tofpie committed Dec 18, 2020
1 parent 956e012 commit b9daa0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boa/src/builtins/array/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ impl BuiltIn for Array {
)
.name(Self::NAME)
.length(Self::LENGTH)
.property("length", 0, Attribute::WRITABLE | Attribute::NON_ENUMERABLE)
.property(
"length",
0,
Attribute::WRITABLE | Attribute::NON_ENUMERABLE | Attribute::PERMANENT,
)
.property(
"values",
values_function.clone(),
Expand Down

0 comments on commit b9daa0e

Please sign in to comment.