Skip to content

Event#timeStamp numbers are incorrect #37909

@jaydenseric

Description

@jaydenseric
  • Version: v15.12.0
  • Platform: macOS v11.2.1 (Intel CPU)
  • Subsystem: Events

What steps will reproduce the bug?

In demo.js:

console.log(new Event('a').timeStamp);

Then run:

node demo.js

How often does it reproduce? Is there a required condition?

Reproduces every time for me.

What is the expected behavior?

It should be a correct timestamp, e.g. 1616668905640.

What do you see instead?

The timestamp is a number way too small to be a timestamp, e.g. 29.311459064483643.

Additional information

Event#timeStamp docs on MDN.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions