DenoDDeno
Powered by
benjamnB
Denoβ€’3y agoβ€’
1 reply
benjamn

console.log in a worker - capture or hide output?

Running under
deno repl
deno repl
with no permissions, this prints 'yee'. In a browser's dev tools it would do the same thing, except there is a drop down to select which process's consoles to view, defaulted to showing all.

new Worker(URL.createObjectURL(new Blob(['console.log("yee")'], {type: 'text/javascript'})), {type: 'module'})
new Worker(URL.createObjectURL(new Blob(['console.log("yee")'], {type: 'text/javascript'})), {type: 'module'})


Is there a way to control what shows up on console? Is overwriting console a solid approach?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Is it possible to capture console log output?
maxMmax / help
2y ago
console.log styling
ZyPAZZyPA / help
16mo ago
Log Deno.command process output
KayKKay / help
3y ago