Skip to content

fix(ast/estree): fix serializing RegExpLiteral flags#9027

Merged
graphite-app[bot] merged 1 commit intomainfrom
02-10-fix_ast_estree_fix_serializing_regexpliteral_flags
Feb 10, 2025
Merged

fix(ast/estree): fix serializing RegExpLiteral flags#9027
graphite-app[bot] merged 1 commit intomainfrom
02-10-fix_ast_estree_fix_serializing_regexpliteral_flags

Conversation

@overlookmotel
Copy link
Member

@overlookmotel overlookmotel commented Feb 10, 2025

Serialize RegExpLiteral's flags field to match Acorn. This isn't a fix as such - our output was already good - but it seems Acorn always maintains the same order of flags as in source. So follow that, just to pass the conformance tests.

Copy link
Member Author

overlookmotel commented Feb 10, 2025


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 A-ast Area - AST C-bug Category - Bug labels Feb 10, 2025
@overlookmotel overlookmotel marked this pull request as ready for review February 10, 2025 19:52
@overlookmotel overlookmotel added the 0-merge Merge with Graphite Merge Queue label Feb 10, 2025
Copy link
Member Author

overlookmotel commented Feb 10, 2025

Merge activity

  • Feb 10, 2:54 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 10, 2:56 PM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 10, 2:56 PM EST: A user added this pull request to the Graphite merge queue.
  • Feb 10, 3:02 PM EST: A user merged this pull request with the Graphite merge queue.

Serialize `RegExpLiteral`'s flags field to match Acorn. This isn't a fix as such - our output was already good - but it seems Acorn always maintains the same order of flags as in source. So follow that, just to pass the conformance tests.
@graphite-app graphite-app bot force-pushed the 02-10-fix_ast_estree_fix_serializing_regexpliteral_flags branch from f28d817 to 2b47299 Compare February 10, 2025 19:57
@graphite-app graphite-app bot merged commit 2b47299 into main Feb 10, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 02-10-fix_ast_estree_fix_serializing_regexpliteral_flags branch February 10, 2025 20:02
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 10, 2025

CodSpeed Performance Report

Merging #9027 will not alter performance

Comparing 02-10-fix_ast_estree_fix_serializing_regexpliteral_flags (2b47299) with main (e75e1d2)

Summary

✅ 33 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0-merge Merge with Graphite Merge Queue A-ast Area - AST C-bug Category - Bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant