summaryrefslogtreecommitdiff
path: root/core/runtime/tests.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-06-23 12:52:48 +0200
committerGitHub <noreply@github.com>2023-06-23 12:52:48 +0200
commitf81027ae9f5646ddfa06046836001aaa726c4025 (patch)
tree38adc1ad4b5c8883a3977216d720aca68f620496 /core/runtime/tests.rs
parent76f85a783e3ba4064027f581eb1fecf2ecba9de0 (diff)
fix(serde_v8): Do not coerce values in serde_v8 (#19569)
Fixes #19568 Values are not coerced to the desired type during deserialisation. This makes serde_v8 stricter. --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/runtime/tests.rs')
-rw-r--r--core/runtime/tests.rs4
1 files changed, 2 insertions, 2 deletions
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();