From ced0024fc50985828d9d89d34006642553b060a0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Mar 2023 16:37:31 +0000 Subject: [PATCH] Bump regress from 0.4.1 to 0.5.0 (#2651) Bumps [regress](https://github.com/ridiculousfish/regress) from 0.4.1 to 0.5.0.
Release notes

Sourced from regress's releases.

v0.5.0

Version 0.5.0 of regress, REGex in Rust with EmcaScript Syntax.

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=regress&package-manager=cargo&previous-version=0.4.1&new-version=0.5.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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) ---
Dependabot commands and options
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)
Co-authored-by: raskad <32105367+raskad@users.noreply.github.com> --- Cargo.lock | 23 +++++++++++++++++++---- boa_engine/Cargo.toml | 2 +- boa_engine/src/builtins/regexp/tests.rs | 13 +------------ boa_parser/Cargo.toml | 2 +- 4 files changed, 22 insertions(+), 18 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 82a2484c50..fdba2ed73f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,6 +28,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "ahash" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +dependencies = [ + "cfg-if 1.0.0", + "once_cell", + "version_check", +] + [[package]] name = "aho-corasick" version = "0.7.20" @@ -1593,7 +1604,7 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" dependencies = [ - "ahash", + "ahash 0.7.6", ] [[package]] @@ -1602,7 +1613,7 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ - "ahash", + "ahash 0.7.6", ] [[package]] @@ -1610,6 +1621,9 @@ name = "hashbrown" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash 0.8.3", +] [[package]] name = "heapless" @@ -3173,10 +3187,11 @@ dependencies = [ [[package]] name = "regress" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a92ff21fe8026ce3f2627faaf43606f0b67b014dbc9ccf027181a804f75d92e" +checksum = "d995d590bd8ec096d1893f414bf3f5e8b0ee4c9eed9a5642b9766ef2c8e2e8e9" dependencies = [ + "hashbrown 0.13.2", "memchr", ] diff --git a/boa_engine/Cargo.toml b/boa_engine/Cargo.toml index 20dc536381..3a1491a6e1 100644 --- a/boa_engine/Cargo.toml +++ b/boa_engine/Cargo.toml @@ -47,7 +47,7 @@ serde = { version = "1.0.154", features = ["derive", "rc"] } serde_json = "1.0.94" rand = "0.8.5" num-traits = "0.2.15" -regress = "0.4.1" +regress = "0.5.0" rustc-hash = "1.1.0" num-bigint = { version = "0.4.3", features = ["serde"] } num-integer = "0.1.45" diff --git a/boa_engine/src/builtins/regexp/tests.rs b/boa_engine/src/builtins/regexp/tests.rs index 95aa3f6a94..588cf45756 100644 --- a/boa_engine/src/builtins/regexp/tests.rs +++ b/boa_engine/src/builtins/regexp/tests.rs @@ -113,20 +113,9 @@ fn to_string() { TestAction::assert_eq("(new RegExp('bar', 'g')).toString()", "/bar/g"), TestAction::assert_eq(r"(new RegExp('\\n', 'g')).toString()", r"/\n/g"), TestAction::assert_eq(r"/\n/g.toString()", r"/\n/g"), + TestAction::assert_eq(r"/,\;/.toString()", r"/,\;/"), ]); } - -#[test] -fn no_panic_on_invalid_character_escape() { - // This used to panic, we now return an error - // The line below should not cause Boa to panic - run_test_actions([TestAction::assert_native_error( - r"const a = /,\;/", - ErrorKind::Syntax, - "Invalid regular expression literal: Invalid character escape at position: 1:11", - )]); -} - #[test] fn search() { const ERROR: &str = "RegExp.prototype[Symbol.search] method called on incompatible value"; diff --git a/boa_parser/Cargo.toml b/boa_parser/Cargo.toml index f08c366de2..f9659909b9 100644 --- a/boa_parser/Cargo.toml +++ b/boa_parser/Cargo.toml @@ -21,4 +21,4 @@ fast-float = "0.2.0" num-traits = "0.2.15" bitflags = "1.3.2" num-bigint = "0.4.3" -regress = "0.4.1" +regress = "0.5.0"