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

Making window.console more useful #979

Closed
domenic opened this issue Dec 14, 2014 · 1 comment
Closed

Making window.console more useful #979

domenic opened this issue Dec 14, 2014 · 1 comment
Labels

Comments

@domenic
Copy link
Member

domenic commented Dec 14, 2014

Discussed previously in #971. The current tentative plan is:

window.console.log("foo"); // does nothing

var virtualConsole = jsdom.getVirtualConsole(window);
// virtualConsole is a Node.js EventEmitter (not a jsdom EventTarget)

window.console.log("foo", "bar");
// raises an event "log" with arguments "foo", "bar" on virtualConsole

virtualConsole.sendTo(console); // when window.console.log is called, calls console.log.
@domenic
Copy link
Member Author

domenic commented Feb 17, 2015

This was finished in 3.0.0 by #991.

@domenic domenic closed this as completed Feb 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant