Skip to content

test(linter/plugins): fix impliedStrict in ES3#18635

Merged
graphite-app[bot] merged 1 commit intomainfrom
om/01-27-test_linter_plugins_fix_impliedstrict_in_es3
Jan 27, 2026
Merged

test(linter/plugins): fix impliedStrict in ES3#18635
graphite-app[bot] merged 1 commit intomainfrom
om/01-27-test_linter_plugins_fix_impliedstrict_in_es3

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Jan 27, 2026

Fix strict/sloppy mode of scopes in conformance tests where test case options specify ES3. Strict mode did not exist before ES5, so files are always sloppy mode in ES3.

@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins labels Jan 27, 2026
Copy link
Member Author

overlookmotel commented Jan 27, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the C-test Category - Testing. Code is missing test cases, or a PR is adding them label Jan 27, 2026
@overlookmotel overlookmotel marked this pull request as ready for review January 27, 2026 18:31
Copilot AI review requested due to automatic review settings January 27, 2026 18:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the handling of strict mode in ES3 conformance tests. Since strict mode was introduced in ES5 and did not exist in ES3, the code now correctly sets impliedStrict to false when testing with ES3, ensuring accurate scope analysis for historical ECMAScript versions.

Changes:

  • Modified setEcmaVersionAndFeatures to check if ecmaVersion === 3 and force impliedStrict to false in that case

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@overlookmotel overlookmotel self-assigned this Jan 27, 2026
@graphite-app graphite-app bot added the 0-merge Merge with Graphite Merge Queue label Jan 27, 2026
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 27, 2026

Merge activity

Fix strict/sloppy mode of scopes in conformance tests where test case options specify ES3. Strict mode did not exist before ES5, so files are always sloppy mode in ES3.
@graphite-app graphite-app bot force-pushed the om/01-27-test_linter_plugins_fix_ecmaversion_ branch from d37831a to af233a5 Compare January 27, 2026 18:42
@graphite-app graphite-app bot force-pushed the om/01-27-test_linter_plugins_fix_impliedstrict_in_es3 branch from c2f4cc5 to 4e08b91 Compare January 27, 2026 18:42
Base automatically changed from om/01-27-test_linter_plugins_fix_ecmaversion_ to main January 27, 2026 18:48
@graphite-app graphite-app bot merged commit 4e08b91 into main Jan 27, 2026
20 checks passed
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Jan 27, 2026
@graphite-app graphite-app bot deleted the om/01-27-test_linter_plugins_fix_impliedstrict_in_es3 branch January 27, 2026 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-test Category - Testing. Code is missing test cases, or a PR is adding them

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants