From dbf23725f7450cafffa0b849815ab94784df8216 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 2 Feb 2022 18:51:37 +0100 Subject: chore: update rusty_v8 (#13575) --- core/Cargo.toml | 2 +- core/serialize_deserialize_test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/Cargo.toml b/core/Cargo.toml index 4bf6b9aeb..2e45af2f7 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -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" diff --git a/core/serialize_deserialize_test.js b/core/serialize_deserialize_test.js index c1b92a3df..86ef0eaac 100644 --- a/core/serialize_deserialize_test.js +++ b/core/serialize_deserialize_test.js @@ -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, -- cgit v1.2.3