镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Description

@domfarolino
  • 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.

Activity

  1. added
    consoleIssues and PRs related to the console subsystem.
    on May 1, 2018
  2. devsnek commented on May 1, 2018

    @devsnek
    Member

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

  3. domfarolino commented on May 1, 2018

    @domfarolino
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues and PRs for confirmed bugs.consoleIssues and PRs related to the console subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions