1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore: upgrade rusty_v8 to 0.52.0 (#16183)

This commit is contained in:
Bartek Iwańczuk 2022-10-07 05:51:56 +02:00 committed by GitHub
parent c27234888f
commit 5733de8a2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

4
Cargo.lock generated
View file

@ -5464,9 +5464,9 @@ dependencies = [
[[package]]
name = "v8"
version = "0.51.0"
version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e72791f754a6517e86d88e4521baad3a7d428ce54e266ba560b8747b2a99b946"
checksum = "44e483583f1b8da53083a47335afa9b7196f35cb91f92d78452bf56508121da0"
dependencies = [
"bitflags",
"fslock",

View file

@ -33,7 +33,7 @@ serde_json = { version = "1.0.79", features = ["preserve_order"] }
serde_v8 = { version = "0.65.0", path = "../serde_v8" }
sourcemap = "6.1"
url = { version = "2.3.1", features = ["serde", "expose_internals"] }
v8 = { version = "0.51.0", default-features = false }
v8 = { version = "0.52.0", default-features = false }
[[example]]
name = "http_bench_json_ops"

View file

@ -18,7 +18,7 @@ derive_more = "0.99.17"
serde = { version = "1.0.136", features = ["derive"] }
serde_bytes = "0.11"
smallvec = { version = "1.8", features = ["union"] }
v8 = { version = "0.51.0", default-features = false }
v8 = { version = "0.52.0", default-features = false }
[dev-dependencies]
bencher = "0.1"

View file

@ -439,7 +439,7 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> {
}
fn serialize_bool(self, v: bool) -> JsResult<'a> {
Ok(v8::Boolean::new(&mut self.scope.borrow_mut(), v).into())
Ok(v8::Boolean::new(&mut *self.scope.borrow_mut(), v).into())
}
fn serialize_char(self, v: char) -> JsResult<'a> {
@ -464,7 +464,7 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> {
}
fn serialize_none(self) -> JsResult<'a> {
Ok(v8::null(&mut self.scope.borrow_mut()).into())
Ok(v8::null(&mut *self.scope.borrow_mut()).into())
}
fn serialize_some<T: ?Sized + Serialize>(self, value: &T) -> JsResult<'a> {
@ -472,11 +472,11 @@ impl<'a, 'b, 'c> ser::Serializer for Serializer<'a, 'b, 'c> {
}
fn serialize_unit(self) -> JsResult<'a> {
Ok(v8::null(&mut self.scope.borrow_mut()).into())
Ok(v8::null(&mut *self.scope.borrow_mut()).into())
}
fn serialize_unit_struct(self, _name: &'static str) -> JsResult<'a> {
Ok(v8::null(&mut self.scope.borrow_mut()).into())
Ok(v8::null(&mut *self.scope.borrow_mut()).into())
}
/// For compatibility with serde-json, serialises unit variants as "Variant" strings.