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] - Create Source to abstract JS code sources #2579

Closed
wants to merge 3 commits into from

Conversation

jedel1043
Copy link
Member

Slightly related to #2411 since we need an API to pass module files, but more useful for #1760, #1313 and other error reporting issues.

It changes the following:

  • Introduces a new Source API to store the path of a provided file or None if the source is a plain string.
  • Improves the display of boa_tester to show the path of the tests being run. This also enables hyperlinks to directly jump to the tested file from the VS terminal.
  • Adjusts the repo to this change.

Hopefully, this will improve our error display in the future.

@jedel1043 jedel1043 added enhancement New feature or request API labels Jan 30, 2023
@jedel1043 jedel1043 added this to the v0.17.0 milestone Jan 30, 2023
@github-actions
Copy link

Test262 conformance changes

Test result main count PR count difference
Total 94,205 94,205 0
Passed 70,722 70,722 0
Ignored 18,622 18,622 0
Failed 4,861 4,861 0
Panics 0 0 0
Conformance 75.07% 75.07% 0.00%

Copy link
Member

@raskad raskad left a comment

Choose a reason for hiding this comment

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

Just got two suggestions, otherwise this looks good

boa_examples/src/bin/symbol_visitor.rs Outdated Show resolved Hide resolved
boa_parser/src/source.rs Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #2579 (9d548e5) into main (5a201da) will decrease coverage by 0.12%.
The diff coverage is 16.15%.

@@            Coverage Diff             @@
##             main    #2579      +/-   ##
==========================================
- Coverage   50.04%   49.93%   -0.12%     
==========================================
  Files         379      381       +2     
  Lines       37805    37899      +94     
==========================================
+ Hits        18921    18924       +3     
- Misses      18884    18975      +91     
Impacted Files Coverage Δ
boa_cli/src/main.rs 0.94% <0.00%> (+<0.01%) ⬆️
boa_engine/src/builtins/eval/mod.rs 4.21% <0.00%> (ø)
boa_engine/src/builtins/function/mod.rs 29.88% <0.00%> (-0.09%) ⬇️
boa_engine/src/builtins/weak/weak_ref.rs 73.80% <ø> (ø)
boa_engine/src/context/hooks.rs 50.00% <ø> (ø)
boa_engine/src/value/serde_json.rs 74.19% <ø> (ø)
boa_examples/src/bin/classes.rs 0.00% <0.00%> (ø)
boa_examples/src/bin/closures.rs 0.00% <0.00%> (ø)
boa_examples/src/bin/commuter_visitor.rs 0.00% <0.00%> (ø)
boa_examples/src/bin/loadfile.rs 0.00% <0.00%> (ø)
... and 15 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Member

@nekevss nekevss 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 😄

@jedel1043
Copy link
Member Author

bors r+

bors bot pushed a commit that referenced this pull request Jan 31, 2023
Slightly related to #2411 since we need an API to pass module files, but more useful for #1760, #1313 and other error reporting issues.

It changes the following:

- Introduces a new `Source` API to store the path of a provided file or `None` if the source is a plain string.
- Improves the display of `boa_tester` to show the path of the tests being run. This also enables hyperlinks to directly jump to the tested file from the VS terminal.
- Adjusts the repo to this change.

Hopefully, this will improve our error display in the future.
@bors
Copy link

bors bot commented Jan 31, 2023

Pull request successfully merged into main.

Build succeeded:

@bors bors bot changed the title Create Source to abstract JS code sources [Merged by Bors] - Create Source to abstract JS code sources Jan 31, 2023
@bors bors bot closed this Jan 31, 2023
@bors bors bot deleted the source-api branch January 31, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants