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

Add V8InspectorClientImpl::console_api_message() #252

Merged

Conversation

bnoordhuis
Copy link
Contributor

This makes it possible to intercept console.log() messages through
the V8 inspector API.

This makes it possible to intercept console.log() messages through
the V8 inspector API.
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM

}

// TODO(bnoordhuis) This needs to be fleshed out more but that can wait
// until it's actually needed.
Copy link
Member

Choose a reason for hiding this comment

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

👍

console.trace("three");
"#;
let _ = eval(scope, context, source).unwrap();
assert_eq!(client.messages, vec!["one", "two", "three"]);
Copy link
Member

Choose a reason for hiding this comment

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

👍

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.

2 participants