fix(inspector): ensure console methods provided by inspector are available (#16724)

This commit is contained in:
Bartek Iwańczuk 2022-11-22 02:17:14 +01:00 committed by GitHub
parent 5c7dc904fb
commit 1ec357faf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 1 deletions

View file

@ -336,6 +336,9 @@ Deno.test(function consoleTestStringifyCircular() {
groupEnd: [Function: groupEnd],
clear: [Function: clear],
trace: [Function: trace],
profile: [Function: profile],
profileEnd: [Function: profileEnd],
timeStamp: [Function: timeStamp],
indentLevel: 0,
[Symbol(isConsoleInstance)]: true
}`,
@ -2103,3 +2106,9 @@ Deno.test(async function inspectAggregateError() {
);
}
});
Deno.test(function inspectorMethods() {
console.timeStamp("test");
console.profile("test");
console.profileEnd("test");
});