mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: update rusty_v8 (#13575)
This commit is contained in:
parent
37aba8f754
commit
dbf23725f7
4 changed files with 8 additions and 8 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -4756,9 +4756,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "v8"
|
||||
version = "0.38.1"
|
||||
version = "0.39.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "684e95fe02e0acfeaf630df3a1623f6ad02145f9a92c54ceae8a1923319d3273"
|
||||
checksum = "540bde9c1b5c4760c9402428bc6c75b6ad07e10fd7e6e47bcff9b4ddaa5ef55e"
|
||||
dependencies = [
|
||||
"bitflags",
|
||||
"fslock",
|
||||
|
|
|
@ -25,7 +25,7 @@ serde = { version = "1.0.129", features = ["derive"] }
|
|||
serde_json = { version = "1.0.66", features = ["preserve_order"] }
|
||||
serde_v8 = { version = "0.28.0", path = "../serde_v8" }
|
||||
url = { version = "2.2.2", features = ["serde"] }
|
||||
v8 = "0.38.1"
|
||||
v8 = "0.39.0"
|
||||
|
||||
[[example]]
|
||||
name = "http_bench_json_ops"
|
||||
|
|
|
@ -12,14 +12,14 @@ function assertArrayEquals(a1, a2) {
|
|||
|
||||
for (const index in a1) {
|
||||
if (a1[index] !== a2[index]) {
|
||||
throw Error("assert");
|
||||
throw Error(`assert: (index ${index}) ${a1[index]} !== ${a2[index]}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function main() {
|
||||
const emptyString = "";
|
||||
const emptyStringSerialized = [255, 13, 34, 0];
|
||||
const emptyStringSerialized = [255, 14, 34, 0];
|
||||
assertArrayEquals(Deno.core.serialize(emptyString), emptyStringSerialized);
|
||||
assert(
|
||||
Deno.core.deserialize(new Uint8Array(emptyStringSerialized)) ===
|
||||
|
@ -29,7 +29,7 @@ function main() {
|
|||
const primitiveValueArray = ["test", "a", null, undefined];
|
||||
// deno-fmt-ignore
|
||||
const primitiveValueArraySerialized = [
|
||||
255, 13, 65, 4, 34, 4, 116, 101, 115, 116,
|
||||
255, 14, 65, 4, 34, 4, 116, 101, 115, 116,
|
||||
34, 1, 97, 48, 95, 36, 0, 4,
|
||||
];
|
||||
assertArrayEquals(
|
||||
|
@ -48,7 +48,7 @@ function main() {
|
|||
circularObject.test = circularObject;
|
||||
// deno-fmt-ignore
|
||||
const circularObjectSerialized = [
|
||||
255, 13, 111, 34, 4, 116, 101, 115,
|
||||
255, 14, 111, 34, 4, 116, 101, 115,
|
||||
116, 94, 0, 34, 5, 116, 101, 115,
|
||||
116, 50, 34, 2, 100, 100, 34, 5,
|
||||
116, 101, 115, 116, 51, 34, 2, 97,
|
||||
|
|
|
@ -12,7 +12,7 @@ description = "Rust to V8 serialization and deserialization"
|
|||
[dependencies]
|
||||
serde = { version = "1.0.130", features = ["derive"] }
|
||||
serde_bytes = "0.11"
|
||||
v8 = "0.38.1"
|
||||
v8 = "0.39.0"
|
||||
|
||||
[dev-dependencies]
|
||||
bencher = "0.1"
|
||||
|
|
Loading…
Reference in a new issue