summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-24 00:11:37 +0200
committerGitHub <noreply@github.com>2023-05-24 00:11:37 +0200
commit01a95d677f897776e6478ef6c728f85a8d44002c (patch)
tree04bf2f01112ab48ca20cb04c7a524fc68b62e697
parent26f42a248f4764f85c1c3c3c511b82a990e4b651 (diff)
chore: upgrade rusty_v8 to 0.72.0 (#19228)
This commit updates rusty_v8 to 0.72.0 and by extension V8 to version 11.5.150.1.
-rwxr-xr-x.github/workflows/ci.generate.ts4
-rw-r--r--.github/workflows/ci.yml6
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--cli/tests/node_compat/test.ts7
-rw-r--r--cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out2
6 files changed, 16 insertions, 9 deletions
diff --git a/.github/workflows/ci.generate.ts b/.github/workflows/ci.generate.ts
index 9bd2839b1..9a50683df 100755
--- a/.github/workflows/ci.generate.ts
+++ b/.github/workflows/ci.generate.ts
@@ -17,7 +17,7 @@ const Runners = (() => {
})();
// bump the number at the start when you want to purge the cache
const prCacheKeyPrefix =
- "27-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-";
+ "28-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-";
const installPkgsCommand =
"sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15";
@@ -480,7 +480,7 @@ const ci = {
"~/.cargo/git/db",
].join("\n"),
key:
- "27-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}",
+ "28-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}",
},
},
{
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dd0f72d73..6731c5a4c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -293,7 +293,7 @@ jobs:
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
- key: '27-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
+ key: '28-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr)'
- name: Restore cache build output (PR)
uses: actions/cache/restore@v3
@@ -305,7 +305,7 @@ jobs:
!./target/*/*.zip
!./target/*/*.tar.gz
key: never_saved
- restore-keys: '27-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-'
+ restore-keys: '28-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-'
- name: Apply and update mtime cache
if: '!(github.event_name == ''pull_request'' && matrix.skip_pr) && (!startsWith(github.ref, ''refs/tags/''))'
uses: ./.github/mtime_cache
@@ -589,7 +589,7 @@ jobs:
!./target/*/gn_out
!./target/*/*.zip
!./target/*/*.tar.gz
- key: '27-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}'
+ key: '28-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ matrix.job }}-${{ github.sha }}'
publish-canary:
name: publish canary
runs-on: ubuntu-22.04
diff --git a/Cargo.lock b/Cargo.lock
index 272c9c0b0..aacb76591 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5711,9 +5711,9 @@ dependencies = [
[[package]]
name = "v8"
-version = "0.71.2"
+version = "0.72.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a4bbfd886a9c2f87170438c0cdb6b1ddbfe80412ab591c83d24c7e48e487313"
+checksum = "d5c1d09f66ab7f69e36211c5488d47f683fef6b65b83a627cfd75ed9cef254e6"
dependencies = [
"bitflags 1.3.2",
"fslock",
diff --git a/Cargo.toml b/Cargo.toml
index 25065bbf0..b029bb757 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@ license = "MIT"
repository = "https://github.com/denoland/deno"
[workspace.dependencies]
-v8 = { version = "0.71.2", default-features = false }
+v8 = { version = "0.72.0", default-features = false }
deno_ast = { version = "0.26.0", features = ["transpiling"] }
deno_core = { version = "0.187.0", path = "./core" }
diff --git a/cli/tests/node_compat/test.ts b/cli/tests/node_compat/test.ts
index 17c5bd029..52bb6810c 100644
--- a/cli/tests/node_compat/test.ts
+++ b/cli/tests/node_compat/test.ts
@@ -66,9 +66,15 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
const v8Flags = ["--stack-size=4000"];
const testSource = await Deno.readTextFile(testCase);
+ const envVars: Record<string, string> = {};
// TODO(kt3k): Parse `Flags` directive correctly
if (testSource.includes("Flags: --expose_externalize_string")) {
v8Flags.push("--expose-externalize-string");
+ // TODO(bartlomieju): disable verifying globals if that V8 flag is
+ // present. Even though we should be able to pass a list of globals
+ // that are allowed, it doesn't work, because the list is expected to
+ // contain actual JS objects, not strings :)).
+ envVars["NODE_TEST_KNOWN_GLOBALS"] = "0";
}
const args = [
@@ -88,6 +94,7 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
args,
env: {
TEST_SERIAL_ID: String(testSerialId++),
+ ...envVars,
},
cwd,
});
diff --git a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
index 66eb8201c..325180de4 100644
--- a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
+++ b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
@@ -1,2 +1,2 @@
-Error: CompileError: WebAssembly.compile(): expected length: @+10
+Error: CompileError: WebAssembly.compile(): reached end while decoding length: @+10
at file:///[WILDCARD]/close_in_wasm_reactions.js:18:13