-
-
Notifications
You must be signed in to change notification settings - Fork 406
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] - Remove strict
flag from Context
#2069
Conversation
Test262 conformance changesVM implementation
Fixed tests (267):
Broken tests (13):
|
Codecov Report
@@ Coverage Diff @@
## main #2069 +/- ##
==========================================
- Coverage 44.17% 43.80% -0.37%
==========================================
Files 216 216
Lines 19383 19543 +160
==========================================
- Hits 8562 8561 -1
- Misses 10821 10982 +161
Continue to review full report at Codecov.
|
Benchmark for 8f850b3Click to view benchmark
|
There was a problem hiding this 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! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Good job!
I suppose the new failing errors are cases where the tests passed because of missing features or so? |
Exactly. I have a fix for those in the pipeline together with some other fixes. |
Nice! Let's merge this then :) |
bors r+ |
The `Context` currently contains a `strict` flag that indicates is global strict mode is active. This is redundant to the strict flag that is set on every function and causes some non spec compliant situations. This pull request removes the strict flag from `Context` and fixes some resulting errors. Detailed changes: - Remove strict flag from `Context` - Make 262 tester compliant with the strict section in [test262/INTERPRETING.md](https://github.com/tc39/test262/blob/2e7cdfbe18eae4309677033673bb4b5ac6b1de40/INTERPRETING.md#strict-mode) - Make 262 tester compliant with the `raw` flag in [test262/INTERPRETING.md](https://github.com/tc39/test262/blob/2e7cdfbe18eae4309677033673bb4b5ac6b1de40/INTERPRETING.md#flags) - Allow function declarations in strict mode - Fix parser flag propagation for classes - Move some early errors from the lexer to the parser - Add / fix some early errors for 'arguments' and 'eval' identifier usage in strict mode - Refactor `ArrayLiteral` parser for readability and correct early errors
Pull request successfully merged into main. Build succeeded: |
strict
flag from Context
strict
flag from Context
Benchmark for e1b7c57Click to view benchmark
|
The `Context` currently contains a `strict` flag that indicates is global strict mode is active. This is redundant to the strict flag that is set on every function and causes some non spec compliant situations. This pull request removes the strict flag from `Context` and fixes some resulting errors. Detailed changes: - Remove strict flag from `Context` - Make 262 tester compliant with the strict section in [test262/INTERPRETING.md](https://github.com/tc39/test262/blob/2e7cdfbe18eae4309677033673bb4b5ac6b1de40/INTERPRETING.md#strict-mode) - Make 262 tester compliant with the `raw` flag in [test262/INTERPRETING.md](https://github.com/tc39/test262/blob/2e7cdfbe18eae4309677033673bb4b5ac6b1de40/INTERPRETING.md#flags) - Allow function declarations in strict mode - Fix parser flag propagation for classes - Move some early errors from the lexer to the parser - Add / fix some early errors for 'arguments' and 'eval' identifier usage in strict mode - Refactor `ArrayLiteral` parser for readability and correct early errors
The
Context
currently contains astrict
flag that indicates is global strict mode is active. This is redundant to the strict flag that is set on every function and causes some non spec compliant situations. This pull request removes the strict flag fromContext
and fixes some resulting errors.Detailed changes:
Context
raw
flag in test262/INTERPRETING.mdArrayLiteral
parser for readability and correct early errors