summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml6
-rw-r--r--Cargo.lock8
-rw-r--r--core/Cargo.toml4
-rw-r--r--core/runtime.rs9
-rw-r--r--tools/wpt/expectation.json44
5 files changed, 56 insertions, 15 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fc773aef9..44e11aae8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -250,7 +250,7 @@ jobs:
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
- key: b-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
+ key: c-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }}
# In main branch, always creates fresh cache
- name: Cache build output (main)
@@ -265,7 +265,7 @@ jobs:
!./target/*/*.zip
!./target/*/*.tar.gz
key: |
- b-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
+ c-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}
# Restore cache from the latest 'main' branch build.
- name: Cache build output (PR)
@@ -281,7 +281,7 @@ jobs:
!./target/*/*.tar.gz
key: never_saved
restore-keys: |
- b-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
+ c-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-
# Don't save cache after building PRs or branches other than 'main'.
- name: Skip save cache (PR)
diff --git a/Cargo.lock b/Cargo.lock
index ee5e2db97..6daa4b32c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2775,9 +2775,9 @@ dependencies = [
[[package]]
name = "rusty_v8"
-version = "0.23.0"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5463232950a37ad7337422f362252ac4ea6db897fc0cb63c8acf0cb4e643898a"
+checksum = "5fa025c24e4eee6a6a17f92ebe10fbf6d33a475fce213dc552401c3710ce833f"
dependencies = [
"bitflags",
"fslock",
@@ -2936,9 +2936,9 @@ dependencies = [
[[package]]
name = "serde_v8"
-version = "0.6.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c9f378d38284155eb349b3230914b1151529e4679048430fd4aa3d27160b8f6"
+checksum = "3b7d6e1fcfddb6ca56e8dede0e8cc80159edb0d00d68c2d84b3a0b714dfd9d7c"
dependencies = [
"rusty_v8",
"serde",
diff --git a/core/Cargo.toml b/core/Cargo.toml
index 67b46d1a6..dd26cd2a6 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -20,10 +20,10 @@ lazy_static = "1.4.0"
libc = "0.2.93"
log = "0.4.14"
pin-project = "1.0.6"
-rusty_v8 = "0.23.0"
+rusty_v8 = "0.24.0"
serde = { version = "1.0.125", features = ["derive"] }
serde_json = { version = "1.0.64", features = ["preserve_order"] }
-serde_v8 = { version = "0.6.0" }
+serde_v8 = { version = "0.7.1" }
url = { version = "2.2.1", features = ["serde"] }
[[example]]
diff --git a/core/runtime.rs b/core/runtime.rs
index c414b307c..e734e0018 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -142,7 +142,7 @@ impl Drop for JsRuntime {
}
}
-fn v8_init(v8_platform: Option<v8::UniquePtr<v8::Platform>>) {
+fn v8_init(v8_platform: Option<v8::SharedRef<v8::Platform>>) {
// Include 10MB ICU data file.
#[repr(C, align(16))]
struct IcuData([u8; 10144432]);
@@ -150,8 +150,7 @@ fn v8_init(v8_platform: Option<v8::UniquePtr<v8::Platform>>) {
v8::icu::set_common_data_69(&ICU_DATA.0).unwrap();
let v8_platform = v8_platform
- .unwrap_or_else(v8::new_default_platform)
- .unwrap();
+ .unwrap_or_else(|| v8::new_default_platform(0, false).make_shared());
v8::V8::initialize_platform(v8_platform);
v8::V8::initialize();
@@ -205,7 +204,7 @@ pub struct RuntimeOptions {
/// V8 platform instance to use. Used when Deno initializes V8
/// (which it only does once), otherwise it's silenty dropped.
- pub v8_platform: Option<v8::UniquePtr<v8::Platform>>,
+ pub v8_platform: Option<v8::SharedRef<v8::Platform>>,
}
impl JsRuntime {
@@ -1973,7 +1972,7 @@ main();
#[test]
fn test_v8_platform() {
let options = RuntimeOptions {
- v8_platform: Some(v8::new_default_platform()),
+ v8_platform: Some(v8::new_default_platform(0, false).make_shared()),
..Default::default()
};
let mut runtime = JsRuntime::new(options);
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json
index 77a1f2f15..36ffdb185 100644
--- a/tools/wpt/expectation.json
+++ b/tools/wpt/expectation.json
@@ -171,7 +171,49 @@
"api-replacement-encodings.any.html": true,
"api-surrogates-utf8.any.html": true,
"encodeInto.any.html": [
- "encodeInto() and a detached output buffer"
+ "encodeInto() and a detached output buffer",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with Hi and destination length 0, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with A and destination length 10, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with 𝌆 and destination length 4, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with 𝌆A and destination length 3, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with \ud834A\udf06A¥Hi and destination length 10, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with A\udf06 and destination length 4, offset 4, filler random",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 0",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 0",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler 128",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler 128",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 0, filler random",
+ "encodeInto() into SharedArrayBuffer with ¥¥ and destination length 4, offset 4, filler random"
],
"idlharness.any.html": true,
"iso-2022-jp-decoder.any.html": true,