From 3abe95baf4309f7020b3bc82d26acd261d365ead Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 12 Aug 2023 13:04:45 -0600 Subject: [PATCH] chore: deno_core -> 0.201.0 (#20135) --- Cargo.lock | 16 ++++++++-------- Cargo.toml | 3 +-- cli/tests/testdata/node/test.out | 2 +- cli/tests/testdata/run/heapstats.js.out | 4 ++-- ext/io/fs.rs | 12 ++++-------- tools/wpt/expectation.json | 8 ++++++-- 6 files changed, 22 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3d9c9eab18d9e..31f069f0aee97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -997,9 +997,9 @@ dependencies = [ [[package]] name = "deno_core" -version = "0.200.0" +version = "0.202.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8ba264b90ceb6e95b39d82e674d8ecae86ca012f900338ea50d1a077d9d75fd" +checksum = "e9d4f3ad9c2861e0bb8745e1f228aaee04782a9ab6a3c3bbb887e60d7faf087a" dependencies = [ "anyhow", "bytes", @@ -1370,9 +1370,9 @@ dependencies = [ [[package]] name = "deno_ops" -version = "0.78.0" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffd1c83b1fd465ee0156f2917c9af9ca09fe2bf54052a2cae1a8dcbc7b89aefc" +checksum = "abb6a1ceabfbab1c29b32872e68ec994d393b58ccdf12a835d150199555496f3" dependencies = [ "deno-proc-macro-rules", "lazy-regex", @@ -4474,9 +4474,9 @@ dependencies = [ [[package]] name = "serde_v8" -version = "0.111.0" +version = "0.113.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "309b3060a9627882514f3a3ce3cc08ceb347a76aeeadc58f138c3f189cf88b71" +checksum = "3fa7b3ecd650d790ff8781402d0704d35a2f51c3bec87fe92d43eea6d371f05d" dependencies = [ "bytes", "derive_more", @@ -5903,9 +5903,9 @@ dependencies = [ [[package]] name = "v8" -version = "0.74.3" +version = "0.75.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eedac634b8dd39b889c5b62349cbc55913780226239166435c5cf66771792ea" +checksum = "f9be435abe79a8427b0969f1ac0a3c0e91644235f68a3de5da4a27ec69666985" dependencies = [ "bitflags 1.3.2", "fslock", diff --git a/Cargo.toml b/Cargo.toml index d404b34462b2d..83495e13e57d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,10 +38,9 @@ license = "MIT" repository = "https://github.com/denoland/deno" [workspace.dependencies] -v8 = { version = "0.74.1", default-features = false } deno_ast = { version = "0.27.0", features = ["transpiling"] } -deno_core = "0.200.0" +deno_core = "0.202.0" deno_runtime = { version = "0.123.0", path = "./runtime" } napi_sym = { version = "0.45.0", path = "./cli/napi/sym" } diff --git a/cli/tests/testdata/node/test.out b/cli/tests/testdata/node/test.out index 8b7f0780f38ca..3c54a15e891aa 100644 --- a/cli/tests/testdata/node/test.out +++ b/cli/tests/testdata/node/test.out @@ -147,7 +147,7 @@ error: Error: rejected from reject fail at [WILDCARD] ./node/test.js (uncaught error) -error: Error: rejected from unhandled rejection fail +error: (in promise) Error: rejected from unhandled rejection fail Promise.reject(new Error("rejected from unhandled rejection fail")); ^ at [WILDCARD] diff --git a/cli/tests/testdata/run/heapstats.js.out b/cli/tests/testdata/run/heapstats.js.out index 9542663331f73..b75a755f8e9bf 100644 --- a/cli/tests/testdata/run/heapstats.js.out +++ b/cli/tests/testdata/run/heapstats.js.out @@ -1,2 +1,2 @@ -Allocated: 8MB -Freed: -8MB +Allocated: 4MB +Freed: -4MB diff --git a/ext/io/fs.rs b/ext/io/fs.rs index 1ebe0e7c1f0f3..3c98bf861c698 100644 --- a/ext/io/fs.rs +++ b/ext/io/fs.rs @@ -170,14 +170,10 @@ impl FsStat { pub trait File { fn read_sync(self: Rc, buf: &mut [u8]) -> FsResult; async fn read(self: Rc, limit: usize) -> FsResult { - let vec = vec![0; limit]; - let buf = BufMutView::from(vec); - let (nread, buf) = self.read_byob(buf).await?; - let mut vec = buf.unwrap_vec(); - if vec.len() != nread { - vec.truncate(nread); - } - Ok(BufView::from(vec)) + let buf = BufMutView::new(limit); + let (nread, mut buf) = self.read_byob(buf).await?; + buf.truncate(nread); + Ok(buf.into_view()) } async fn read_byob( self: Rc, diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index b75183d89d90c..289698c1e6c52 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -2807,8 +2807,12 @@ }, "class-string-interface.any.html": true, "class-string-interface.any.worker.html": true, - "class-string-iterator-prototype-object.any.html": true, - "class-string-iterator-prototype-object.any.worker.html": true, + "class-string-iterator-prototype-object.any.html": [ + "Object.prototype.toString applied after deleting @@toStringTag" + ], + "class-string-iterator-prototype-object.any.worker.html": [ + "Object.prototype.toString applied after deleting @@toStringTag" + ], "class-string-named-properties-object.window.html": false, "global-immutable-prototype.any.html": [ "Setting to a different prototype"