* Implement new spec changes for `AsyncGenerator` (#3950)
* Implement new spec changes for `AsyncGenerator`
* Add panic docs
* Add spec edition 15 to the tester (#3957)
* Allow dead code for code that is newly detected as unused (#3984)
* Allow dead code for code that is newly detected as unused
* Fix compile errors with nightly rust
* Add missing SAFETY section
* Increase safety of `FutexWaiters`
---------
Co-authored-by: Theo Paris <theo@tinted.dev>
Co-authored-by: José Julián Espina <julian.espina@canonical.com>
* Enable CI for release branches (#3987)
* Allow warnings when running CI on release branches (#3990)
* Bump crates version
---------
Co-authored-by: Hans Larsen <hans@larsen.online>
Co-authored-by: Theo Paris <theo@tinted.dev>
The new ICU4X release stabilized the `icu_segmenter` component, so this PR implements `Intl.Segmenter` using that as a base.
Also, I opted for importing `itertools` instead of copy-pasting the implementation of `TupleWindows` because its design is a lot more complex than `Intersperse`, which we copy-pasted previously. Though, I disabled all `std` features of `itertools` to make it a lot more lightweight, so it shouldn't make much difference in compilation times.
This Pull Request fixes some additional Annex B tests.
It changes the following:
- Fixes bugs related to parsing HTML closing comments (`-->`).
- Implements `RegExp::compile` behind the `annex-b` feature.
- Ignores the `legacy-regexp` feature flag, since it's still stage 3.
Bumps [test262](https://github.com/tc39/test262) from `d216cc1` to `9704d7f`.
<details>
<summary>Commits</summary>
<ul>
<li><a href="9704d7f22f"><code>9704d7f</code></a> Add tests for the asyncItems argument to Array.fromAsync. (<a href="https://redirect.github.com/tc39/test262/issues/3754">#3754</a>)</li>
<li><a href="53e5ef817e"><code>53e5ef8</code></a> Add Temporal era/eraYear tests</li>
<li><a href="c4d8f01d3d"><code>c4d8f01</code></a> Array.fromAsync: Tests for mapfn and thisArg arguments</li>
<li><a href="ba1e51c8e7"><code>ba1e51c</code></a> Fix function-valued properties in propertyBagObserver</li>
<li><a href="4f5eb40ee0"><code>4f5eb40</code></a> Temporal: Test updates for mergeFields output property order</li>
<li><a href="5ea8322b08"><code>5ea8322</code></a> Clarify feature flags are per proposal</li>
<li><a href="6bfcab1063"><code>6bfcab1</code></a> Remove unused "Intl.DateTimeFormat-quarter" feature flag</li>
<li><a href="7a5210deaf"><code>7a5210d</code></a> Clean up feature flags for proposals in published standard</li>
<li><a href="a58ae41ea7"><code>a58ae41</code></a> linter: Fix parsing features.txt</li>
<li><a href="6e1b737357"><code>6e1b737</code></a> linter: Use same Python interpreter when executing script in subprocess</li>
<li>See full diff in <a href="d216cc1972...9704d7f22f">compare view</a></li>
</ul>
</details>
<br />
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
Co-authored-by: jedel1043 <jedel0124@gmail.com>
I'm creating this draft PR, since I wanted to have some early feedback, and because I though I would have time to finish it last week, but I got caught up with other stuff. Feel free to contribute :)
The main thing here is that I have divided `eval()`, `parse()` and similar functions so that they can decide if they are parsing scripts or modules. Let me know your thoughts.
Then, I was checking the import & export parsing, and I noticed we are using `TokenKind::Identifier` for `IdentifierName`, so I changed that name. An `Identifier` is an `IdentifierName` that isn't a `ReservedWord`. This means we should probably also adapt all `IdentifierReference`, `BindingIdentifier` and so on parsing. I already created an `Identifier` parser.
Something interesting there is that `await` is not a valid `Identifier` if the goal symbol is `Module`, as you can see in the [spec](https://tc39.es/ecma262/#prod-LabelIdentifier), but currently we don't have that information in the `InputElement` enumeration, we only have `Div`, `RegExp` and `TemplateTail`. How could we approach this?
Co-authored-by: jedel1043 <jedel0124@gmail.com>
This Pull Request fixes/closes #1180. (I'll open a tracking issue for the progress)
It changes the following:
- Redesigns the internal API of Intl to (hopefully!) make it easier to implement a service.
- Implements the `Intl.Locale` service.
- Implements the `Intl.Collator` service.
- Implements the `Intl.ListFormat` service.
On the subject of the failing tests. Some of them are caused by missing locale data in the `icu_testdata` crate; we would need to regenerate that with the missing locales, or vendor a custom default data.
On the other hand, there are some tests that are bugs from the ICU4X crate. The repo https://github.com/jedel1043/icu4x-test262 currently tracks the found bugs when running test262. I'll sync with the ICU4X team to try to fix those.
cc @sffc
Just some quality changes to improve the maintainability of the tester:
- Replaces `anyhow` with `color_eyre` to have a better output on errors/panics.
- Changes the ignore file to a TOML file and replaces all parsing logic with the `toml` crate.
- Adds a `ignored` field on all `Test`s to simplify run logic.
- Replaces the global `IGNORED` with an `ignored` argument on the CLI.