Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into issue-3696
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelJastrzebski committed Sep 13, 2024
2 parents 391ac73 + c480a42 commit 673e23c
Show file tree
Hide file tree
Showing 70 changed files with 2,490 additions and 858 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
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

## What's Changed

<!-- Release notes generated using configuration in .github/release.yml at main -->
# [0.19.1 (2024-09-11)](https://github.com/boa-dev/boa/compare/v0.19...v0.19.1)

### Bug Fixes

- Implement new spec changes for `AsyncGenerator` by @jedel1043 in https://github.com/boa-dev/boa/pull/3950
- Allow dead code for code that is newly detected as unused by @hansl in https://github.com/boa-dev/boa/pull/3984
- Allow warnings when running CI on release branches by @jedel1043 in https://github.com/boa-dev/boa/pull/3990

### Internal Improvements

- Add spec edition 15 to the tester by @jedel1043 in https://github.com/boa-dev/boa/pull/3957
- Enable CI for release branches by @jedel1043 in https://github.com/boa-dev/boa/pull/3987

**Full Changelog**: https://github.com/boa-dev/boa/compare/v0.19...v0.19.1

# [0.19.0 (2024-07-08)](https://github.com/boa-dev/boa/compare/v0.18...v0.19)

Expand Down
50 changes: 25 additions & 25 deletions Cargo.lock

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

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ boa_string = { version = "~0.19.0", path = "core/string" }
# Shared deps
arbitrary = "1"
bitflags = "2.5.0"
clap = "4.5.16"
clap = "4.5.17"
colored = "2.1.0"
fast-float = "0.2.0"
hashbrown = { version = "0.14.5", default-features = false }
indexmap = { version = "2.4.0", default-features = false }
indexmap = { version = "2.5.0", default-features = false }
indoc = "2.0.5"
jemallocator = "0.5.4"
num-bigint = "0.4.6"
Expand All @@ -61,10 +61,10 @@ once_cell = { version = "1.19.0", default-features = false }
phf = { version = "0.11.2", default-features = false }
pollster = "0.3.0"
regex = "1.10.6"
regress = { version = "0.10.0", features = ["utf16"] }
regress = { version = "0.10.1", features = ["utf16"] }
rustc-hash = { version = "2.0.0", default-features = false }
serde_json = "1.0.125"
serde = "1.0.208"
serde_json = "1.0.128"
serde = "1.0.210"
static_assertions = "1.1.0"
textwrap = "0.16.0"
thin-vec = "0.2.13"
Expand All @@ -84,13 +84,13 @@ wasm-bindgen = { version = "0.2.93", default-features = false }
getrandom = { version = "0.2.15", default-features = false }
console_error_panic_hook = "0.1.7"
wasm-bindgen-test = "0.3.43"
smol = "2.0.1"
smol = "2.0.2"
futures-util = "0.3.30"
isahc = "1.7.2"
rustyline = { version = "14.0.0", default-features = false }
dhat = "0.3.3"
quote = "1.0.36"
syn = { version = "2.0.75", default-features = false }
quote = "1.0.37"
syn = { version = "2.0.77", default-features = false }
proc-macro2 = "1.0"
synstructure = "0.13"
measureme = "11.0.1"
Expand All @@ -105,13 +105,13 @@ dashmap = "5.5.3"
num_enum = "0.7.3"
itertools = { version = "0.13.0", default-features = false }
portable-atomic = "1.7.0"
bytemuck = { version = "1.17.0", default-features = false }
bytemuck = { version = "1.18.0", default-features = false }
arrayvec = "0.7.6"
intrusive-collections = "0.9.6"
intrusive-collections = "0.9.7"
cfg-if = "1.0.0"
either = "1.13.0"
sys-locale = "0.3.1"
temporal_rs = { git = "https://github.com/boa-dev/temporal.git", rev = "af94bbc31d409a2bfdce473e667e08e16c677149" }
temporal_rs = { git = "https://github.com/boa-dev/temporal.git", rev = "1e7901d07a83211e62373ab94284a7d1ada4c913" }
web-time = "1.1.0"
criterion = "0.5.1"
float-cmp = "0.9.0"
Expand Down
8 changes: 6 additions & 2 deletions core/ast/src/expression/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ pub enum Expression {
/// It is not a valid expression node.
#[doc(hidden)]
FormalParameterList(FormalParameterList),

#[doc(hidden)]
Debugger,
}

impl Expression {
Expand Down Expand Up @@ -220,6 +223,7 @@ impl Expression {
Self::Parenthesized(expr) => expr.to_interned_string(interner),
Self::RegExpLiteral(regexp) => regexp.to_interned_string(interner),
Self::FormalParameterList(_) => unreachable!(),
Self::Debugger => "debugger".to_owned(),
}
}

Expand Down Expand Up @@ -326,7 +330,7 @@ impl VisitWith for Expression {
Self::Yield(y) => visitor.visit_yield(y),
Self::Parenthesized(e) => visitor.visit_parenthesized(e),
Self::FormalParameterList(fpl) => visitor.visit_formal_parameter_list(fpl),
Self::This | Self::NewTarget | Self::ImportMeta => {
Self::This | Self::NewTarget | Self::ImportMeta | Self::Debugger => {
// do nothing; can be handled as special case by visitor
ControlFlow::Continue(())
}
Expand Down Expand Up @@ -369,7 +373,7 @@ impl VisitWith for Expression {
Self::Yield(y) => visitor.visit_yield_mut(y),
Self::Parenthesized(e) => visitor.visit_parenthesized_mut(e),
Self::FormalParameterList(fpl) => visitor.visit_formal_parameter_list_mut(fpl),
Self::This | Self::NewTarget | Self::ImportMeta => {
Self::This | Self::NewTarget | Self::ImportMeta | Self::Debugger => {
// do nothing; can be handled as special case by visitor
ControlFlow::Continue(())
}
Expand Down
Loading

0 comments on commit 673e23c

Please sign in to comment.