@@ -104,7 +104,6 @@ enum {
104104 /* any larger tag is FLOAT64 if JS_NAN_BOXING */
105105};
106106
107- #define JS_FLOAT64_NAN NAN
108107#define JSValueConst JSValue /* For backwards compatibility. */
109108
110109#if defined(JS_NAN_BOXING ) && JS_NAN_BOXING
@@ -210,7 +209,7 @@ static inline JSValue JS_MKVAL(int64_t tag, int32_t int32)
210209static inline JSValue JS_MKNAN (void )
211210{
212211 JSValue v ;
213- v .u .float64 = JS_FLOAT64_NAN ;
212+ v .u .float64 = NAN ;
214213 v .tag = JS_TAG_FLOAT64 ;
215214 return v ;
216215}
@@ -221,7 +220,7 @@ static inline JSValue JS_MKNAN(void)
221220#else
222221#define JS_MKPTR (tag , p ) (JSValue){ (JSValueUnion){ .ptr = p }, tag }
223222#define JS_MKVAL (tag , val ) (JSValue){ (JSValueUnion){ .int32 = val }, tag }
224- #define JS_NAN (JSValue){ (JSValueUnion){ .float64 = JS_FLOAT64_NAN }, JS_TAG_FLOAT64 }
223+ #define JS_NAN (JSValue){ (JSValueUnion){ .float64 = NAN }, JS_TAG_FLOAT64 }
225224#endif
226225
227226#define JS_TAG_IS_FLOAT64 (tag ) ((unsigned)(tag) == JS_TAG_FLOAT64)
@@ -813,7 +812,7 @@ JS_EXTERN bool JS_DetectModule(const char *input, size_t input_len);
813812/* 'input' must be zero terminated i.e. input[input_len] = '\0'. */
814813JS_EXTERN JSValue JS_Eval (JSContext * ctx , const char * input , size_t input_len ,
815814 const char * filename , int eval_flags );
816- JS_EXTERN JSValue JS_Eval2 (JSContext * ctx , const char * input , size_t input_len ,
815+ JS_EXTERN JSValue JS_Eval2 (JSContext * ctx , const char * input , size_t input_len ,
817816 JSEvalOptions * options );
818817JS_EXTERN JSValue JS_EvalThis (JSContext * ctx , JSValue this_obj ,
819818 const char * input , size_t input_len ,
0 commit comments