@@ -628,12 +628,16 @@ PHASE(All)
628
628
#define DEFAULT_CONFIG_ES6String (true )
629
629
#define DEFAULT_CONFIG_ES6StringPrototypeFixes (true )
630
630
#define DEFAULT_CONFIG_ES2018ObjectRestSpread (false )
631
+
632
+ #ifndef DEFAULT_CONFIG_ES6PrototypeChain
631
633
#ifdef COMPILE_DISABLE_ES6PrototypeChain
632
634
// If ES6PrototypeChain needs to be disabled by compile flag, DEFAULT_CONFIG_ES6PrototypeChain should be false
633
635
#define DEFAULT_CONFIG_ES6PrototypeChain (false )
634
636
#else
635
- #define DEFAULT_CONFIG_ES6PrototypeChain (false )
637
+ #define DEFAULT_CONFIG_ES6PrototypeChain (true )
638
+ #endif
636
639
#endif
640
+
637
641
#define DEFAULT_CONFIG_ES6ToPrimitive (true )
638
642
#define DEFAULT_CONFIG_ES6ToLength (true )
639
643
#define DEFAULT_CONFIG_ES6ToStringTag (true )
@@ -1126,10 +1130,7 @@ FLAGPR (Boolean, ES6, ES6String , "Enable ES6 String exte
1126
1130
FLAGPR (Boolean , ES6 , ES6StringPrototypeFixes , "Enable ES6 String.prototype fixes" , DEFAULT_CONFIG_ES6StringPrototypeFixes )
1127
1131
FLAGPR (Boolean , ES6 , ES2018ObjectRestSpread , "Enable ES2018 Object Rest/Spread" , DEFAULT_CONFIG_ES2018ObjectRestSpread )
1128
1132
1129
- #ifndef COMPILE_DISABLE_ES6PrototypeChain
1130
- #define COMPILE_DISABLE_ES6PrototypeChain 0
1131
- #endif
1132
- FLAGPR_REGOVR_EXP (Boolean , ES6 , ES6PrototypeChain , "Enable ES6 prototypes (Example: Date prototype is object)" , DEFAULT_CONFIG_ES6PrototypeChain )
1133
+ FLAGPR (Boolean , ES6 , ES6PrototypeChain , "Enable ES6 prototypes (Example: Date prototype is object)" , DEFAULT_CONFIG_ES6PrototypeChain )
1133
1134
FLAGPR (Boolean , ES6 , ES6ToPrimitive , "Enable ES6 ToPrimitive symbol" , DEFAULT_CONFIG_ES6ToPrimitive )
1134
1135
FLAGPR (Boolean , ES6 , ES6ToLength , "Enable ES6 ToLength fixes" , DEFAULT_CONFIG_ES6ToLength )
1135
1136
FLAGPR (Boolean , ES6 , ES6ToStringTag , "Enable ES6 ToStringTag symbol" , DEFAULT_CONFIG_ES6ToStringTag )
0 commit comments