mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore: upgrade rusty_v8 to 0.52.0 (#16183)
This commit is contained in:
parent
c27234888f
commit
5733de8a2e
4 changed files with 8 additions and 8 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue