Skip to content

Incorrect message property name for 'isnan' warning #97

ghost opened this Issue Jan 25, 2012 · 1 comment

1 participant

ghost commented Jan 25, 2012

In the check_relation function, there is a call to warn with a 'isnan' argument if the node contains NaN:

warn('isnan', node);

However, the message bundle does not contain a property named 'isnan'. The corresponding message appears in a property named 'isNaN':

bundle = {
    isNaN: "Use the isNaN function to compare with NaN."

Validating a line such as var x = 5 > NaN; in the 2012-01-13 edition of results in this message:

Problem at line 1 character 13: isnan
@ghost Unknown added a commit that referenced this issue Jan 25, 2012
Joost-Wim Boekesteijn renamed isNaN warning message property, solving #97 1562505
@ghost ghost closed this Jan 25, 2012

Fixed. Thanks.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.