Skip to content

Commit

Permalink
Mention "spread parameters after optional chaining" bug in some versi…
Browse files Browse the repository at this point in the history
…ons of Node
  • Loading branch information
jakebailey committed Jul 7, 2023
1 parent 1c00087 commit c154a88
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Node-Target-Mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ To update this file, you can use [node.green](https://node.green) to map to the
}
```

Note: Due to a V8 bug, one rarely-used ES2020 feature was incorrectly implemented in Node <16.3.0 - "spread parameters after optional chaining"; see [issue 46325](https://github.com/microsoft/TypeScript/issues/46325). If you use this feature and need to support versions of Node before 16.3.0, you may need to drop `target` to `ES2019`.

#### Node 14

```json
Expand All @@ -55,6 +57,8 @@ To update this file, you can use [node.green](https://node.green) to map to the
}
```

Note: Due to a V8 bug, one rarely-used ES2020 feature was incorrectly implemented in all releases of Node 14 - "spread parameters after optional chaining"; see [issue 46325](https://github.com/microsoft/TypeScript/issues/46325). If you use this feature, you may need to drop `target` to `ES2019`.

#### Node 12

```json
Expand All @@ -79,8 +83,6 @@ To update this file, you can use [node.green](https://node.green) to map to the
}
```

Note: Follow [issue #20411](https://github.com/Microsoft/TypeScript/issues/20463) for more information on changes to the es2018 target/lib.

#### Node 8

```json
Expand Down

0 comments on commit c154a88

Please sign in to comment.