mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
fix(console): fix the test cases of function inspections (#7965)
This commit is contained in:
parent
e2a1a7c937
commit
e9f02c2314
1 changed files with 2 additions and 2 deletions
|
@ -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]");
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue