From 370c27e09a63ca36f0e0aba8bef6b10f4484d70d Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 7 Oct 2021 18:39:27 +0200 Subject: feat(core): cleaner opcall stack traces (#12358) --- cli/tests/unit/opcall_test.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'cli/tests') diff --git a/cli/tests/unit/opcall_test.ts b/cli/tests/unit/opcall_test.ts index 9c0d39d2e..7e3685320 100644 --- a/cli/tests/unit/opcall_test.ts +++ b/cli/tests/unit/opcall_test.ts @@ -1,4 +1,9 @@ -import { assertStringIncludes, unitTest, unreachable } from "./test_util.ts"; +import { + assert, + assertStringIncludes, + unitTest, + unreachable, +} from "./test_util.ts"; unitTest(async function sendAsyncStackTrace() { const buf = new Uint8Array(10); @@ -11,6 +16,10 @@ unitTest(async function sendAsyncStackTrace() { console.log(s); assertStringIncludes(s, "opcall_test.ts"); assertStringIncludes(s, "read"); + assert( + !s.includes("deno:core"), + "opcall stack traces should NOT include deno:core internals such as unwrapOpResult", + ); } }); -- cgit v1.2.3