From 19c3e4f6dc31fd78e2793d0596d6a9cc3a30580a Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Thu, 13 Apr 2023 08:03:56 +0800 Subject: refactor(serde_v8): move to `thiserror`, better error output (#18202) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref #17318 --------- Co-authored-by: Bartek IwaƄczuk --- core/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/runtime.rs b/core/runtime.rs index 84a72c02b..ef65d2192 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -4373,7 +4373,7 @@ Deno.core.opAsync("op_async_serialize_object_with_numbers_as_keys", { let sum = Deno.core.ops.op_sum_take(w32.subarray(0, 2)); return false; } catch(e) { - return e.message.includes('ExpectedDetachable'); + return e.message.includes('invalid type, expected: detachable'); } }); if (!assertWasmThrow()) { -- cgit v1.2.3