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

console.time() should output warning if timer exists #20440

Closed
domfarolino opened this issue May 1, 2018 · 2 comments
Closed

console.time() should output warning if timer exists #20440

domfarolino opened this issue May 1, 2018 · 2 comments
Labels
confirmed-bug Issues with confirmed bugs. console Issues and PRs related to the console subsystem.

Comments

@domfarolino
Copy link
Contributor

  • Version: v.10.0.0
  • Platform: 16.7.0 Darwin Kernel Version 16.7.0: Tue Jan 30 11:27:06 PST 2018; root:xnu-3789.73.11~1/RELEASE_X86_64 x86_64

The WHATWG Console Standard specifies console.time() as printing a warning to the screen if an associated timer exists. Currently in Node, no warning is printed and the associated existing timer is reset.

@vsemozhetbyt vsemozhetbyt added the console Issues and PRs related to the console subsystem. label May 1, 2018
@devsnek
Copy link
Member

devsnek commented May 1, 2018

warning is optional but resetting the time is definitely not to spec

@devsnek devsnek added the confirmed-bug Issues with confirmed bugs. label May 1, 2018
@domfarolino
Copy link
Contributor Author

Whoops, sorry you're right. Yes the warning is optional (though every browser I've tested (except Edge since I don't have access to it) does it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. console Issues and PRs related to the console subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants