Skip to content

Commit

Permalink
Backport 0.19 fixes (#3989)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
Co-authored-by: José Julián Espina <[email protected]>

* Enable CI for release branches (#3987)

* Allow warnings when running CI on release branches (#3990)

* Bump crates version

---------

Co-authored-by: Hans Larsen <[email protected]>
Co-authored-by: Theo Paris <[email protected]>
  • Loading branch information
3 people committed Sep 11, 2024
1 parent 532c008 commit 59a7c02
Show file tree
Hide file tree
Showing 18 changed files with 480 additions and 387 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- main
- releases/**

jobs:
runBenchmark:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: -D warnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ on:
pull_request:
branches:
- main
- releases/**
push:
branches:
- main
- releases/**
merge_group:
types: [checks_requested]

env:
RUSTFLAGS: -Dwarnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}

jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -149,7 +152,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTDOCFLAGS: -D warnings
RUSTDOCFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test262.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
pull_request:
branches:
- main
- releases/**
merge_group:
types: [checks_requested]

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ on:
pull_request:
branches:
- main
- releases/**
push:
branches:
- main
- releases/**
merge_group:
types: [checks_requested]

Expand All @@ -27,7 +29,7 @@ jobs:
timeout-minutes: 60
env:
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack
RUSTFLAGS: -D warnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-Dwarnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exclude = [

[workspace.package]
edition = "2021"
version = "0.19.0"
version = "0.19.1"
rust-version = "1.79.0"
authors = ["boa-dev"]
repository = "https://github.com/boa-dev/boa"
Expand All @@ -38,17 +38,17 @@ description = "Boa is a Javascript lexer, parser and compiler written in Rust. C
[workspace.dependencies]

# Repo Crates
boa_ast = { version = "~0.19.0", path = "core/ast" }
boa_engine = { version = "~0.19.0", path = "core/engine" }
boa_gc = { version = "~0.19.0", path = "core/gc" }
boa_icu_provider = { version = "~0.19.0", path = "core/icu_provider" }
boa_interner = { version = "~0.19.0", path = "core/interner" }
boa_interop = { version = "~0.19.0", path = "core/interop" }
boa_macros = { version = "~0.19.0", path = "core/macros" }
boa_parser = { version = "~0.19.0", path = "core/parser" }
boa_profiler = { version = "~0.19.0", path = "core/profiler" }
boa_runtime = { version = "~0.19.0", path = "core/runtime" }
boa_string = { version = "~0.19.0", path = "core/string" }
boa_ast = { version = "~0.19.1", path = "core/ast" }
boa_engine = { version = "~0.19.1", path = "core/engine" }
boa_gc = { version = "~0.19.1", path = "core/gc" }
boa_icu_provider = { version = "~0.19.1", path = "core/icu_provider" }
boa_interner = { version = "~0.19.1", path = "core/interner" }
boa_interop = { version = "~0.19.1", path = "core/interop" }
boa_macros = { version = "~0.19.1", path = "core/macros" }
boa_parser = { version = "~0.19.1", path = "core/parser" }
boa_profiler = { version = "~0.19.1", path = "core/profiler" }
boa_runtime = { version = "~0.19.1", path = "core/runtime" }
boa_string = { version = "~0.19.1", path = "core/string" }

# Shared deps
arbitrary = "1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Add the below dependency to your `Cargo.toml`:

```toml
[dependencies]
boa_engine = "0.19.0"
boa_engine = "0.19.1"
```

Then in `main.rs`, copy the below:
Expand Down
Loading

0 comments on commit 59a7c02

Please sign in to comment.