Skip to content

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

@mathiasbynens

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.

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