Skip to content
Snippets Groups Projects
Commit a587be4f authored by deuce's avatar deuce
Browse files

Remove isnan() check in JS_IS_NUM() macro because Win32 doesn't have isnan()

This makes JS_IS_NUM() the same as JS_IS_NUMBER().
parent 5be52164
No related branches found
No related tags found
No related merge requests found
......@@ -1035,7 +1035,7 @@ extern "C" {
DLLEXPORT JSBool DLLCALL js_CreateArrayOfStrings(JSContext* cx, JSObject* parent
,const char* name, char* str[], uintN flags);
#define JSVAL_IS_NUM(v) (JSVAL_IS_NUMBER(v) && (!JSVAL_IS_DOUBLE(v) || !isnan(JSVAL_TO_DOUBLE(v))))
#define JSVAL_IS_NUM(v) (JSVAL_IS_NUMBER(v))
/* js_server.c */
DLLEXPORT JSObject* DLLCALL js_CreateServerObject(JSContext* cx, JSObject* parent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment