We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17c322 commit 71a3c54Copy full SHA for 71a3c54
quickjs.c
@@ -53996,8 +53996,10 @@ static const JSCFunctionListEntry js_global_funcs[] = {
53996
JS_CFUNC_MAGIC_DEF("encodeURIComponent", 1, js_global_encodeURI, 1 ),
53997
JS_CFUNC_DEF("escape", 1, js_global_escape ),
53998
JS_CFUNC_DEF("unescape", 1, js_global_unescape ),
53999
- JS_PROP_DOUBLE_DEF("Infinity", 1.0 / 0.0, 0 ),
54000
- JS_PROP_U2D_DEF("NaN", 0x7FF8ull<<48, 0 ), // workaround for msvc
+ // workarounds for msvc & djgpp where NAN and INFINITY
+ // are not compile-time expressions
54001
+ JS_PROP_U2D_DEF("Infinity", 0x7FF0ull<<48, 0 ),
54002
+ JS_PROP_U2D_DEF("NaN", 0x7FF8ull<<48, 0 ),
54003
JS_PROP_UNDEFINED_DEF("undefined", 0 ),
54004
JS_PROP_STRING_DEF("[Symbol.toStringTag]", "global", JS_PROP_CONFIGURABLE ),
54005
JS_CFUNC_DEF("eval", 1, js_global_eval ),
0 commit comments