Skip to content

console.context() #193

Open
Open
@foolip

Description

@foolip

In the spirit of #27 and #74 I'm filing issues about two additional console members I've spotted as part of foolip/mdn-bcd-collector#917.

console.context(name) is available in Chrome and Node.js, and returns a new object with a lot of the console members. This test gives some clues about what it does:
https://chromium.googlesource.com/v8/v8/+/23d0a6a5125d407655f2b7f6bb7263b4e05019d8/test/inspector/runtime/console-context.js

It looks like console.context('bla').log('hello') doesn't log anything in Node.js, but logs "hello" just like console.log("hello") would in Chrome.

Does anyone recognize what this is, and would it be useful to standardize? I expect not, but want to check.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close