1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix(console): fix the test cases of function inspections (#7965)

This commit is contained in:
Yoshiya Hinosawa 2020-10-14 22:01:03 +09:00 committed by GitHub
parent e2a1a7c937
commit e9f02c2314
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]");
});