Skip to content

JSON.parse('-0') should evaluate to -0 #137

Description

@mathiasbynens

Object.is(JSON.parse('-0'), -0) should evaluate to true. It's currently false in XS.

$ eshost -se 'Object.is(JSON.parse("-0"), -0)'
#### Chakra, JavaScriptCore, SpiderMonkey, V8, V8 --harmony
true

#### XS
false

See tc39/ecma262#1466.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions