mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
feat(inspector): pipe console messages between terminal and inspector (#11134)
This commit adds support for piping console messages to inspector. This is done by "wrapping" Deno's console implementation with default console provided by V8 by the means of "Deno.core.callConsole" binding. Effectively each call to "console.*" methods calls a method on Deno's console and V8's console.
This commit is contained in:
parent
015f252066
commit
7b9737b9f4
5 changed files with 119 additions and 19 deletions
|
@ -315,25 +315,25 @@ unitTest(function consoleTestStringifyCircular(): void {
|
|||
assertEquals(
|
||||
stringify(console),
|
||||
`console {
|
||||
log: [Function: log],
|
||||
debug: [Function: debug],
|
||||
info: [Function: info],
|
||||
dir: [Function: dir],
|
||||
dirxml: [Function: dir],
|
||||
warn: [Function: warn],
|
||||
error: [Function: error],
|
||||
assert: [Function: assert],
|
||||
count: [Function: count],
|
||||
countReset: [Function: countReset],
|
||||
table: [Function: table],
|
||||
time: [Function: time],
|
||||
timeLog: [Function: timeLog],
|
||||
timeEnd: [Function: timeEnd],
|
||||
group: [Function: group],
|
||||
groupCollapsed: [Function: group],
|
||||
groupEnd: [Function: groupEnd],
|
||||
clear: [Function: clear],
|
||||
trace: [Function: trace],
|
||||
log: [Function: bound ],
|
||||
debug: [Function: bound ],
|
||||
info: [Function: bound ],
|
||||
dir: [Function: bound ],
|
||||
dirxml: [Function: bound ],
|
||||
warn: [Function: bound ],
|
||||
error: [Function: bound ],
|
||||
assert: [Function: bound ],
|
||||
count: [Function: bound ],
|
||||
countReset: [Function: bound ],
|
||||
table: [Function: bound ],
|
||||
time: [Function: bound ],
|
||||
timeLog: [Function: bound ],
|
||||
timeEnd: [Function: bound ],
|
||||
group: [Function: bound ],
|
||||
groupCollapsed: [Function: bound ],
|
||||
groupEnd: [Function: bound ],
|
||||
clear: [Function: bound ],
|
||||
trace: [Function: bound ],
|
||||
indentLevel: 0,
|
||||
[Symbol(isConsoleInstance)]: true
|
||||
}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue