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] - refactor: fix construct_error functions #1703

Closed
wants to merge 1 commit into from

Conversation

RageKnify
Copy link
Member

Before the interpreter would create the AST equivalent to new Error(message) and interpret it when constructing the builtin errors, this could fail if the gloabl in question had been overwritten. Now we use Context::standard_objects to get access to the
error constructors and invoke the functions directly.

Before the interpreter would create the AST equivalent to
`new Error(message)` and interpret it when constructing
the builtin errors, this would fail if the gloabl in question is
overwritten. Now we use `Context::standard_objects` to get access to the
error constructors and invoke the functions directly.
@RageKnify RageKnify added the execution Issues or PRs related to code execution label Nov 7, 2021
@codecov
Copy link

codecov bot commented Nov 7, 2021

Codecov Report

Merging #1703 (fd39003) into main (009bd09) will decrease coverage by 0.08%.
The diff coverage is 17.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1703      +/-   ##
==========================================
- Coverage   50.85%   50.76%   -0.09%     
==========================================
  Files         199      199              
  Lines       17803    17820      +17     
==========================================
- Hits         9053     9047       -6     
- Misses       8750     8773      +23     
Impacted Files Coverage Δ
boa/src/context.rs 41.83% <17.77%> (-3.35%) ⬇️
boa/src/syntax/ast/constant.rs 68.00% <0.00%> (-8.00%) ⬇️

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 009bd09...fd39003. Read the comment docs.

@github-actions
Copy link

github-actions bot commented Nov 7, 2021

Test262 conformance changes

Non-VM implementation

Test result main count PR count difference
Total 86,464 86,464 0
Passed 40,037 40,037 0
Ignored 18,869 18,869 0
Failed 27,558 27,558 0
Panics 0 0 0
Conformance 46.30% 46.30% 0.00%

VM implementation

Test result main count PR count difference
Total 86,464 86,464 0
Passed 6,677 6,677 0
Ignored 18,869 18,869 0
Failed 60,918 60,918 0
Panics 60,047 60,047 0
Conformance 7.72% 7.72% 0.00%

@raskad
Copy link
Member

raskad commented Nov 14, 2021

bors r+

bors bot pushed a commit that referenced this pull request Nov 14, 2021
Before the interpreter would create the AST equivalent to `new Error(message)` and interpret it when constructing the builtin errors, this could fail if the gloabl in question had been overwritten. Now we use `Context::standard_objects` to get access to the
error constructors and invoke the functions directly.
@bors
Copy link

bors bot commented Nov 14, 2021

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title refactor: fix construct_error functions [Merged by Bors] - refactor: fix construct_error functions Nov 14, 2021
@bors bors bot closed this Nov 14, 2021
@bors bors bot deleted the refactor/construct_errors branch November 14, 2021 02:00
@RageKnify RageKnify added the bug Something isn't working label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working execution Issues or PRs related to code execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants