@@ -104,7 +104,6 @@ enum {
104
104
/* any larger tag is FLOAT64 if JS_NAN_BOXING */
105
105
};
106
106
107
- #define JS_FLOAT64_NAN NAN
108
107
#define JSValueConst JSValue /* For backwards compatibility. */
109
108
110
109
#if defined(JS_NAN_BOXING ) && JS_NAN_BOXING
@@ -210,7 +209,7 @@ static inline JSValue JS_MKVAL(int64_t tag, int32_t int32)
210
209
static inline JSValue JS_MKNAN (void )
211
210
{
212
211
JSValue v ;
213
- v .u .float64 = JS_FLOAT64_NAN ;
212
+ v .u .float64 = NAN ;
214
213
v .tag = JS_TAG_FLOAT64 ;
215
214
return v ;
216
215
}
@@ -221,7 +220,7 @@ static inline JSValue JS_MKNAN(void)
221
220
#else
222
221
#define JS_MKPTR (tag , p ) (JSValue){ (JSValueUnion){ .ptr = p }, tag }
223
222
#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 }
225
224
#endif
226
225
227
226
#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);
813
812
/* 'input' must be zero terminated i.e. input[input_len] = '\0'. */
814
813
JS_EXTERN JSValue JS_Eval (JSContext * ctx , const char * input , size_t input_len ,
815
814
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 ,
817
816
JSEvalOptions * options );
818
817
JS_EXTERN JSValue JS_EvalThis (JSContext * ctx , JSValue this_obj ,
819
818
const char * input , size_t input_len ,
0 commit comments