Skip to content

Fix enumerable attribute on string length property - #974

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

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

Conversation

@tofpie

@tofpie tofpie commented Dec 16, 2020

Copy link
Copy Markdown
Contributor

This Pull Request fixes #973.

It changes the following:

  • The length property of a string is set to non enumerable

@codecov

codecov Bot commented Dec 16, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #974 (f26bfac) into master (b058b2d) will decrease coverage by 0.00%.
The diff coverage is 71.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #974      +/-   ##
==========================================
- Coverage   59.56%   59.56%   -0.01%     
==========================================
  Files         166      166              
  Lines       10815    10819       +4     
==========================================
+ Hits         6442     6444       +2     
- Misses       4373     4375       +2     
Impacted Files Coverage Δ
boa/src/builtins/string/mod.rs 61.33% <66.66%> (-0.14%) ⬇️
boa/src/value/mod.rs 74.27% <75.00%> (-0.07%) ⬇️

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...bafe3dc. Read the comment docs.

@RageKnify RageKnify left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since we're changing these lines might as well remove the unnecessary conversion.

Comment thread boa/src/builtins/string/mod.rs Resolved
@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 requested a review from RageKnify December 17, 2020 08:17
@Razican

Razican commented Dec 17, 2020 •

Copy link
Copy Markdown
Member

This looks good :)

Test262 conformance changes:

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

Comment thread boa/src/value/mod.rs Resolved
@Razican Razican added the Blocked Waiting for another code change label Dec 17, 2020
@Razican

Razican commented Dec 17, 2020

Copy link
Copy Markdown
Member

This is blocked on #977.

@Razican Razican removed the Blocked Waiting for another code change label Dec 18, 2020
@Razican

Razican commented Dec 18, 2020

Copy link
Copy Markdown
Member

#977 was merged, could you rebase?

@RageKnify
RageKnify merged commit d46080d into boa-dev:master Dec 18, 2020
@tofpie
tofpie deleted the fix-973 branch December 18, 2020 09:58
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 a string is enumerable

3 participants