From f81027ae9f5646ddfa06046836001aaa726c4025 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 23 Jun 2023 12:52:48 +0200 Subject: fix(serde_v8): Do not coerce values in serde_v8 (#19569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #19568 Values are not coerced to the desired type during deserialisation. This makes serde_v8 stricter. --------- Co-authored-by: Bartek IwaƄczuk --- core/runtime/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/runtime/tests.rs b/core/runtime/tests.rs index d2283365e..88c62e280 100644 --- a/core/runtime/tests.rs +++ b/core/runtime/tests.rs @@ -217,7 +217,7 @@ fn test_dispatch_no_zero_copy_buf() { "filename.js", r#" - Deno.core.opAsync("op_test"); + Deno.core.opAsync("op_test", 0); "#, ) .unwrap(); @@ -233,7 +233,7 @@ fn test_dispatch_stack_zero_copy_bufs() { r#" const { op_test } = Deno.core.ensureFastOps(); let zero_copy_a = new Uint8Array([0]); - op_test(null, zero_copy_a); + op_test(0, zero_copy_a); "#, ) .unwrap(); -- cgit v1.2.3