Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(console): allow page.on('console', console.log) #2145

Merged
merged 1 commit into from May 7, 2020

Conversation

pavelfeldman
Copy link
Member

@pavelfeldman pavelfeldman commented May 7, 2020

Fixes #2144

@@ -52,4 +53,8 @@ export class ConsoleMessage {
location(): ConsoleMessageLocation {
return this._location;
}

[util.inspect.custom]() {
return this.text();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add more details? E.g. [warn] .... @foo.js:15.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm. That's not what the regular console.log does in Node though, maybe that should be opt-in?

@pavelfeldman pavelfeldman merged commit 7a8dd2c into microsoft:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Make popup.on('console', console.log) print friendly message
2 participants