From e9f02c231473ba42f506a895734d445cd31d379f Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 14 Oct 2020 22:01:03 +0900 Subject: [PATCH] fix(console): fix the test cases of function inspections (#7965) --- cli/tests/unit/console_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tests/unit/console_test.ts b/cli/tests/unit/console_test.ts index 00a5927b14..ee9f863669 100644 --- a/cli/tests/unit/console_test.ts +++ b/cli/tests/unit/console_test.ts @@ -354,10 +354,10 @@ unitTest(function consoleTestStringifyFunctionWithPrototypeRemoved(): void { const af = async function af() {}; Reflect.setPrototypeOf(af, null); assertEquals(stringify(af), "[Function: af]"); - const gf = function gf() {}; + const gf = function* gf() {}; Reflect.setPrototypeOf(gf, null); assertEquals(stringify(gf), "[Function: gf]"); - const agf = function agf() {}; + const agf = async function* agf() {}; Reflect.setPrototypeOf(agf, null); assertEquals(stringify(agf), "[Function: agf]"); });