Skip to content

Date constructor behaves differently in debug mode #13195

Description

I've tried to create dates from string using new Date() constructor and it behaves differently in debug mode than in standard mode. For example, in debug mode I can create a date using
const date = new Date("2017-10-09 12:00:00")

In standard mode (without debug js remotely) I get Invalid Date in my const.

Looks like the constructor accepts more formats in debug.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions