Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Allow boolean/null as property identifier by dot operator assignment #1985

Closed
wants to merge 1 commit into from

Conversation

lupd
Copy link
Contributor

@lupd lupd commented Mar 29, 2022

This Pull Request lets true/false/null be used as object property identifiers, when using dot assignment.

foo.null = 'bar';

It changes the following:

  • AST parsing of member expressions

@codecov
Copy link

codecov bot commented Mar 29, 2022

Codecov Report

Merging #1985 (44c6015) into main (5498a0e) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1985      +/-   ##
==========================================
- Coverage   45.93%   45.90%   -0.04%     
==========================================
  Files         206      206              
  Lines       17138    17148      +10     
==========================================
- Hits         7873     7872       -1     
- Misses       9265     9276      +11     
Impacted Files Coverage Δ
.../syntax/parser/expression/left_hand_side/member.rs 38.09% <0.00%> (-10.97%) ⬇️
boa_engine/src/syntax/ast/node/new/mod.rs 37.50% <0.00%> (+12.50%) ⬆️

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 5498a0e...44c6015. Read the comment docs.

@HalidOdat
Copy link
Member

VM implementation

Test result main count PR count difference
Total 88,428 88,428 0
Passed 44,001 44,003 +2
Ignored 21,495 21,495 0
Failed 22,932 22,930 -2
Panics 0 0 0
Conformance 49.76% 49.76% +0.00%
Fixed tests (2):
test/language/reserved-words/ident-name-reserved-word-literal-memberexpr.js [strict mode] (previously Failed)
test/language/reserved-words/ident-name-reserved-word-literal-memberexpr.js (previously Failed)

@HalidOdat HalidOdat added bug Something isn't working parser Issues surrounding the parser labels Mar 29, 2022
@HalidOdat HalidOdat added this to the v0.15.0 milestone Mar 29, 2022
Copy link
Member

@Razican Razican left a comment

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!

@Razican
Copy link
Member

Razican commented Mar 29, 2022

bors r+

bors bot pushed a commit that referenced this pull request Mar 29, 2022
…1985)

This Pull Request lets true/false/null be used as object property identifiers, when using dot assignment.

`foo.null = 'bar';`

It changes the following:

- AST parsing of member expressions
@bors
Copy link

bors bot commented Mar 29, 2022

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Allow boolean/null as property identifier by dot operator assignment [Merged by Bors] - Allow boolean/null as property identifier by dot operator assignment Mar 29, 2022
@bors bors bot closed this Mar 29, 2022
@lupd lupd deleted the reserved-word-property branch March 29, 2022 23:42
Razican pushed a commit that referenced this pull request Jun 8, 2022
…1985)

This Pull Request lets true/false/null be used as object property identifiers, when using dot assignment.

`foo.null = 'bar';`

It changes the following:

- AST parsing of member expressions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Issues surrounding the parser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants