Skip to content

Comparison of NaN with "NaN" is incorrect #197

@adazem009

Description

@adazem009
Value a(Value::SpecialValue::NaN);
Value b = "NaN";

bool eq = (a == b); // false

Expected behavior:

bool eq = (a == b); // true

For some reason comparison of NaN with "nan" is correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority: MediumbugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions