Commit Graph

48 Commits

Author SHA1 Message Date
oxc-guard 7ebbdddce7 chore(submodules): update submodule SHAs to latest commits (#25505)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `b363f29` → `be13516`
- babel: `06b6eae` → `1eac448`
- estree-conformance: `f7a4e0c` → `8d4e1fa`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-08-11 16:17:31 +00:00
oxc-guard[bot] 4e7007118d chore(submodules): update submodule SHAs to latest commits (#25261)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `d1d583d` → `b363f29`
- babel: `c86e9e4` → `06b6eae`
- TypeScript: `637d574` → `b465fdb`
- estree-conformance: `e8fd120` → `f7a4e0c`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: oxc-guard[bot] <276638029+oxc-guard[bot]@users.noreply.github.com>
2026-08-03 22:09:18 +01:00
oxc-guard[bot] 17cb5c13c5 chore(submodules): update submodule SHAs to latest commits (#24463)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `de8e621` → `d1d583d`
- babel: `1fb0b77` → `c86e9e4`
- TypeScript: `7964e22` → `637d574`
- estree-conformance: `6514ad7` → `e8fd120`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: oxc-guard[bot] <276638029+oxc-guard[bot]@users.noreply.github.com>
2026-07-13 14:24:36 +01:00
oxc-guard 9e72aa0312 chore(submodules): update submodule SHAs to latest commits (#23451)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `05bb032` → `de8e621`
- babel: `2688fbd` → `1fb0b77`
- TypeScript: `7539c04` → `7964e22`
- estree-conformance: `ca42c3d` → `6514ad7`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-06-15 14:31:01 +00:00
oxc-guard b4f9cb9d8c chore(submodules): update submodule SHAs to latest commits (#23118)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `7e115f4` → `05bb032`
- babel: `d9fe348` → `2688fbd`
- TypeScript: `e5509e2` → `7539c04`
- estree-conformance: `faf089d` → `ca42c3d`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-06-08 14:49:36 +00:00
oxc-guard[bot] 50baca037c chore(submodules): update submodule SHAs to latest commits (#22721)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `78fc3f8` → `7e115f4`
- babel: `3d34928` → `d9fe348`
- TypeScript: `f350b52` → `e5509e2`
- estree-conformance: `576e7d8` → `faf089d`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: oxc-guard[bot] <276638029+oxc-guard[bot]@users.noreply.github.com>
2026-05-25 22:16:39 +08:00
oxc-guard[bot] ec7de07b08 chore(submodules): update submodule SHAs to latest commits (#22550)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `ccaac10` → `78fc3f8`
- babel: `4079bcd` → `3d34928`
- estree-conformance: `9c67f5e` → `576e7d8`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: oxc-guard[bot] <276638029+oxc-guard[bot]@users.noreply.github.com>
2026-05-19 10:46:02 +08:00
oxc-guard e68f4fa1c3 chore(submodules): update submodule SHAs to latest commits (#22417)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `d0c1b45` → `ccaac10`
- babel: `6402dbb` → `4079bcd`
- estree-conformance: `d968f2c` → `9c67f5e`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-05-14 10:36:57 +00:00
oxc-guard[bot] 550052a096 chore(submodules): update submodule SHAs to latest commits (#22170)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `2b2ecea` → `d0c1b45`
- babel: `c543b03` → `6402dbb`
- TypeScript: `c7a0ae1` → `f350b52`
- estree-conformance: `e4104a1` → `d968f2c`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: oxc-guard[bot] <276638029+oxc-guard[bot]@users.noreply.github.com>
2026-05-06 09:19:12 +01:00
Boshen 3fca6febc6 chore(submodules): update submodule SHAs to latest commits (#21455)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `ff0d161` → `2b2ecea`
- babel: `91b4ce3` → `c543b03`
- TypeScript: `7b8cb3b` → `c7a0ae1`
- estree-conformance: `d5e48e7` → `e4104a1`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-04-15 09:08:25 +00:00
Boshen 5f6ce21874 chore(submodules): update submodule SHAs to latest commits (#21105)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `5c82069` → `ff0d161`
- babel: `0124e7c` → `91b4ce3`
- TypeScript: `4f7b417` → `7b8cb3b`
- estree-conformance: `dc0f79b` → `d5e48e7`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-04-07 06:54:12 +00:00
Boshen 75f4a3e593 chore(submodules): update submodule SHAs to latest commits (#20651) 2026-03-23 18:23:15 +08:00
Boshen f42be37c91 chore(submodules): update submodule SHAs to latest commits (#20518)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `63829c6` → `3a9ecbe`
- babel: `87a048d` → `31b3d95`
- TypeScript: `c9e7428` → `9059e5b`
- estree-conformance: `4daa9d7` → `9a4ddfb`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2026-03-20 13:13:40 +08:00
Boshen 7e83da9f2f chore(submodules): update submodule SHAs to latest commits (#20268) 2026-03-12 19:07:19 +08:00
Boshen f467298373 chore(submodules): update submodule SHAs to latest commits (#19951) 2026-03-06 14:45:41 +08:00
Boshen 529fbac105 chore(submodules): update submodule SHAs to latest commits (#19662) 2026-02-24 15:34:23 +08:00
camc314 08b0218dd6 chore(submodules): update submodule SHAs to latest commits (#19518) 2026-02-18 14:56:36 +00:00
Boshen 333d4fb167 chore(submodules): update submodule SHAs to latest commits (#18841)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `fff41f0` → `dd6138f`
- babel: `6ef16ca` → `92c052d`
- TypeScript: `7f6a846` → `95e3aaa`
- estree-conformance: `389cb2a` → `6611520`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-02-03 04:30:00 +00:00
Boshen b225b29cc1 chore(submodules): update submodule SHAs to latest commits (#18334)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `6f55d0c` → `fff41f0`
- babel: `fc58af4` → `6ef16ca`
- TypeScript: `f5ccf43` → `7f6a846`
- estree-conformance: `4980d9b` → `389cb2a`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2026-01-22 16:13:31 +00:00
Boshen ed2a37f9c0 test(coverage): ignore escaped of binding tests in Babel suite (#18386)
## Summary
- Ignore two Babel test cases that use escaped Unicode identifiers for `of` in using declarations
- Example: `for (using \u006ff of ...)` where `\u006ff` is the escaped form of `of`

These edge cases require complex handling across parser, codegen, and formatter to properly round-trip escaped contextual keywords. The effort is not worth the complexity for such an obscure edge case.

## Test plan
- [x] `cargo coverage` passes with updated snapshots

🤖 Generated with [Claude Code](https://claude.ai/code)
2026-01-22 12:13:20 +00:00
Boshen c00f246d63 chore(coverage): ignore Babel top-level-await-unambiguous tests (#18356)
## Summary

- Ignore Babel's `top-level-await-unambiguous` tests in the parser conformance suite
- Babel has a heuristic for detecting module syntax via unambiguous `await` expressions (e.g., `await 0` on the same line is unambiguous module syntax)
- This heuristic is not in the ES spec - we follow TypeScript's behavior instead

## Test plan

- [x] `just ready` passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-22 06:26:56 +00:00
Boshen 108ddcab0f chore(coverage): skip Babel tests using unsupported parser options (#18174)
## Summary
- Skip Babel tests that use parser options not supported by Oxc:
  - `allowNewTargetOutsideFunction: true` - allows `new.target` outside functions
  - `allowSuperOutsideMethod: true` - allows `super` outside methods
- Also skip `typescript/arrow-function/arrow-like-in-conditional-2` which Babel incorrectly rejects

## Test plan
- `cargo coverage -- parser` passes
- Skipped tests no longer appear in snapshots

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-18 16:33:51 +00:00
Boshen 1778055e91 chore(coverage): skip Babel tests using disallowAmbiguousJSXLike option (#18182)
## Summary

- Add support for parsing Babel's `disallowAmbiguousJSXLike` TypeScript plugin option
- Skip tests that use this option since it's Babel-specific and not supported by TypeScript (the reference implementation)

This skips the `typescript/disallow-jsx-ambiguity/*` tests which test Babel-specific JSX ambiguity handling.

## Test plan

- `cargo coverage -- parser` passes
- Tests using `disallowAmbiguousJSXLike` are now skipped in conformance snapshots

🤖 Generated with [Claude Code](https://claude.ai/code)
2026-01-18 12:04:16 +00:00
Boshen 2ae523c3bb fix(coverage): skip module-block tests in babel conformance (#18161)
## Summary
- Skip module-block tests in babel conformance suite
- Module blocks are a stage 1 proposal and not supported by oxc

## Test plan
- [x] `cargo coverage -- parser` runs successfully
- [x] All affected snapshots updated

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 12:07:19 +08:00
Boshen 9fff61b940 fix(coverage): skip annexB assignmenttargettype tests in test262 conformance (#18157)
## Summary
- Skip annexB assignmenttargettype tests in test262 conformance suite
- These tests require call expressions to be valid assignment targets in non-strict mode (e.g., `f() = 1`, `f()++`, `for (f() in [1]) {}`)
- This is an Annex B "web reality" feature that oxc intentionally does not support

## Test plan
- [x] `cargo coverage -- parser` shows 100% pass rate (46556/46556)
- [x] All affected snapshots updated

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-01-18 02:09:41 +00:00
Boshen 8687b0959f chore(submodules): update submodule SHAs to latest commits (#17978)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `9079aee` → `6f55d0c`
- babel: `761c250` → `fc58af4`
- TypeScript: `f3770c9` → `f5ccf43`
- estree-conformance: `87a8e99` → `4980d9b`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2026-01-14 15:13:29 +08:00
camc314 7422b7ea25 fix(parser/trivia): correctly mark whether a block comment is on a newline (#17754)
CI is green(er) https://github.com/oxc-project/monitor-oxc/actions/runs/20788815777/job/59705840652
2026-01-08 12:34:40 +00:00
Boshen 0c4e9cf50d chore(submodules): update submodule SHAs to latest commits (#17456)
Updates submodule dependencies to their latest commits.

## Changes

- babel: `cbdc42f` → `761c250`
- TypeScript: `2dfdbba` → `f3770c9`
- estree-conformance: `2e7394c` → `87a8e99`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2025-12-29 19:57:32 +08:00
Boshen 58323b0b93 chore(submodules): update submodule SHAs to latest commits (#17287)
Updates submodule dependencies to their latest commits.

## Changes

- babel: `a6b5863` → `cbdc42f`
- estree-conformance: `18b46dd` → `2e7394c`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: graphite-app <96075541+graphite-app@users.noreply.github.com>
2025-12-23 11:18:31 +08:00
Boshen 66b47b1a5b chore(submodules): update submodule SHAs to latest commits (#17274)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `84082e2` → `9079aee`
- babel: `84d21e4` → `a6b5863`
- TypeScript: `b78f089` → `2dfdbba`
- estree-conformance: `4f260c1` → `18b46dd`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2025-12-22 21:38:11 +08:00
Boshen 3bd05545af chore(submodules): update submodule SHAs to latest commits (#16909)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `c0cf527` → `947fee3`
- babel: `3591b24` → `84d21e4`
- TypeScript: `c21f73f` → `0a07132`
- estree-conformance: `1f2816b` → `e0aa1b4`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2025-12-15 15:45:25 +00:00
Boshen 0a3bb7bede chore(submodules): update submodule SHAs to latest commits (#16617)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `d0994d6` → `c0cf527`
- babel: `7958603` → `3591b24`
- TypeScript: `669c25c` → `c21f73f`
- estree-conformance: `3e67aec` → `1f2816b`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: graphite-app <96075541+graphite-app@users.noreply.github.com>
2025-12-10 15:28:16 +08:00
Boshen 3827464d2e chore(submodules): update submodule SHAs to latest commits (#16454)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `26058a0` → `d0994d6`
- babel: `99dcba5` → `7958603`
- estree-conformance: `21042b0` → `3e67aec`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2025-12-03 15:59:20 +00:00
Boshen f25f031fbf chore(submodules): update submodule SHAs to latest commits (#16084)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `c125a8d` → `26058a0`
- babel: `c92c491` → `99dcba5`
- TypeScript: `cc2610f` → `669c25c`
- prettier: `d7fe2da` → `864bb7c`
- acorn-test262: `fd0b12c` → `0435714`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: graphite-app <96075541+graphite-app@users.noreply.github.com>
2025-11-25 13:19:40 +08:00
Boshen 82471c8d5a chore(submodules): update submodule SHAs to latest commits (#15825)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `fd594a0` → `c125a8d`
- babel: `777ded7` → `c92c491`
- TypeScript: `48244d8` → `cc2610f`
- prettier: `9e9f65e` → `d7fe2da`
- acorn-test262: `9cce4c9` → `fd0b12c`
- node-compat-table: `6822522` → `499beb6`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2025-11-18 03:31:03 +00:00
Boshen 9b8f41459e chore(submodules): update submodule SHAs to latest commits (#15586)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `d2940bd` → `fd594a0`
- babel: `4cc3d88` → `777ded7`
- TypeScript: `8ea03f8` → `48244d8`
- prettier: `011791f` → `9e9f65e`
- acorn-test262: `994d763` → `9cce4c9`
- node-compat-table: `17ac85c` → `6822522`


This PR is automatically generated by the [update_submodules
workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).

Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
2025-11-11 17:43:08 +08:00
Boshen bf09033cf6 chore(submodules): update submodule SHAs to latest commits (#15012)
Updates submodule dependencies to their latest commits.

## Changes

- test262: `baa48a4` → `d2940bd`
- babel: `41d9651` → `4cc3d88`
- TypeScript: `261630d` → `8ea03f8`
- prettier: `7584432` → `011791f`
- acorn-test262: `090bba4` → `994d763`
- node-compat-table: `ed0d6ba` → `17ac85c`

This PR is automatically generated by the [update_submodules workflow](https://github.com/oxc-project/oxc/blob/main/.github/workflows/update_submodules.yml).
2025-10-28 02:38:20 +00:00
Boshen f897e303eb chore(tasks): update test262, babel and TypeScript (#13217) 2025-08-20 01:22:35 +00:00
Copilot 65e211296d refactor(transformer): Use to @babel/plugin-transform-explicit-resource-management (#12874) 2025-08-08 12:03:33 +08:00
Boshen 13825c03bc chore(coverage): bump test262, babel and typescript versions (#11163) 2025-05-20 01:51:51 +00:00
Boshen 1673ffb05a feat(codegen): rework printing normal / legal / annotation comments (#10997)
fixes #10948

This PR changes how comment options are interpreted.

`CodegenOptions::comments`, `CodegenOptions::annotation_comments` and
`CodegenOptions::legal_comments` are now independent of each other.

### `CodegenOptions::comments`

Controls printing of normal comments. At present, only some leading
comments are preserved. It does not control legal and annotation
comments.


### `CodegenOptions::annotation_comments`

Controls printing of annotation comments

* jsdoc: `/** jsdoc */`                                                 
* pure: `/* #__PURE__ */` and `/* #__NO_SIDE_EFFECTS__ */`              
* webpack: `/* webpackChunkName */`                                     
* vite: `/* @vite-ignore */`                                            
* coverage: `v8 ignore`, `c8 ignore`, `node:coverage`, `istanbul ignore`

### `CodegenOptions::legal_comments`

Controls printing of legal comments

* starts with `//!` or `/*!`.                   
* contains `/* @license */` or `/* @preserve */`

---

Comment generation is also changed:

codegen first builds a comments map by keeping only the needed comments.
Printing functions will then print out comments in their respective
positions.

---

This PR reveals some incorrect comment interpretation:  

* https://github.com/oxc-project/oxc/issues/10998
2025-05-13 19:24:42 +08:00
Boshen a359e8e517 chore: update Babel and TypeScript (#9462) 2025-03-01 21:09:33 +08:00
overlookmotel cfd783aa19 chore(coverage): bump babel submodule (#8508)
Update babel submodule for conformance tests to latest HEAD.

The test fixtures include a new one for a bug fix which @branchseer
intends to also apply to Oxc - https://github.com/babel/babel/pull/17050
(see #8342).
2025-01-15 22:58:15 +08:00
Boshen 6f161de10f chore(coverage): bump test262, babel and TypeScript submodules (#7452) 2024-11-24 16:26:45 +00:00
Huáng Jùnliàng 9a6423a9f8 test(coverage): enable Babel es2022 tests (#7194)
Enabled the Babel es2022 tests. Previously they were skipped probably
because ES2022 was not yet supported at that time.
2024-11-08 09:29:36 +08:00
Boshen 3711c32f22 chore(coverage): bump test262, babel and TypeScript (#6702)
closes #6692
2024-10-20 15:02:26 +00:00
Dunqing 673b66620b chore(transform_conformance): do not extend plugins if current options has plugins (#6627)
I saw many tests were ignored even if they don't contain any unsupported plugins
2024-10-17 02:07:03 +00:00
overlookmotel eadffb900e test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00