Skip to content

Fix enumerable attribute on array length property - #972

Merged
RageKnify merged 3 commits into
boa-dev:masterfrom
tofpie:fix-971
Dec 18, 2020
Merged

RageKnify merged 3 commits into
boa-dev:masterfrom
tofpie:fix-971

Conversation

@tofpie

@tofpie tofpie commented Dec 16, 2020

Copy link
Copy Markdown
Contributor

This Pull Request fixes #971 .

It changes the following:

  • The length property of an array is set to non enumerable

@codecov

codecov Bot commented Dec 16, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #972 (636d4e4) into master (b058b2d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #972   +/-   ##
=======================================
  Coverage   59.56%   59.57%           
=======================================
  Files         166      166           
  Lines       10815    10817    +2     
=======================================
+ Hits         6442     6444    +2     
  Misses       4373     4373           
Impacted Files Coverage Δ
boa/src/builtins/array/mod.rs 73.47% <100.00%> (+0.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b058b2d...b9daa0e. Read the comment docs.

@RageKnify RageKnify added A-Bug Something isn't working C-Builtins PRs and Issues related to builtins/intrinsics labels Dec 16, 2020
@tofpie tofpie mentioned this pull request Dec 16, 2020
@Razican Razican added this to the v0.11.0 milestone Dec 17, 2020
@Razican

Razican commented Dec 17, 2020 •

Copy link
Copy Markdown
Member

Does this fix both cases?

>> Array.prototype.propertyIsEnumerable("length")
false
>> [].propertyIsEnumerable("length")
false

Test262 conformance changes:

Test result master count PR count difference
Total 78,493 78,493 0
Passed 19,392 19,396 +4
Ignored 15,585 15,585 0
Failed 43,516 43,512 -4
Panics 447 447 0
Conformance 24.71 24.71 +0.01%

@Razican Razican left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! :) thanks

@tofpie

tofpie commented Dec 17, 2020

Copy link
Copy Markdown
Contributor Author

Not yet, I will add the fix for Array.prototype

@Razican

Razican commented Dec 17, 2020

Copy link
Copy Markdown
Member

Not yet, I will add the fix for Array.prototype

Yes, please :) that way we fix both

Comment thread boa/src/builtins/array/mod.rs Resolved
@Razican

Razican commented Dec 17, 2020

Copy link
Copy Markdown
Member

This is blocked on #977.

@Razican

Razican commented Dec 18, 2020

Copy link
Copy Markdown
Member

#977 was merged, could you rebase?

@RageKnify
RageKnify merged commit b5cf0f0 into boa-dev:master Dec 18, 2020
@tofpie
tofpie deleted the fix-971 branch December 18, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Bug Something isn't working C-Builtins PRs and Issues related to builtins/intrinsics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The length property of an array is enumerable

3 participants