Skip to content

Commit 5929507

Browse files
committed
Making ES6PrototypeChain flag default to true
1 parent b45b70b commit 5929507

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/Common/ConfigFlagsList.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,12 +628,16 @@ PHASE(All)
628628
#define DEFAULT_CONFIG_ES6String (true)
629629
#define DEFAULT_CONFIG_ES6StringPrototypeFixes (true)
630630
#define DEFAULT_CONFIG_ES2018ObjectRestSpread (false)
631+
632+
#ifndef DEFAULT_CONFIG_ES6PrototypeChain
631633
#ifdef COMPILE_DISABLE_ES6PrototypeChain
632634
// If ES6PrototypeChain needs to be disabled by compile flag, DEFAULT_CONFIG_ES6PrototypeChain should be false
633635
#define DEFAULT_CONFIG_ES6PrototypeChain (false)
634636
#else
635-
#define DEFAULT_CONFIG_ES6PrototypeChain (false)
637+
#define DEFAULT_CONFIG_ES6PrototypeChain (true)
638+
#endif
636639
#endif
640+
637641
#define DEFAULT_CONFIG_ES6ToPrimitive (true)
638642
#define DEFAULT_CONFIG_ES6ToLength (true)
639643
#define DEFAULT_CONFIG_ES6ToStringTag (true)
@@ -1126,10 +1130,7 @@ FLAGPR (Boolean, ES6, ES6String , "Enable ES6 String exte
11261130
FLAGPR (Boolean, ES6, ES6StringPrototypeFixes, "Enable ES6 String.prototype fixes" , DEFAULT_CONFIG_ES6StringPrototypeFixes)
11271131
FLAGPR (Boolean, ES6, ES2018ObjectRestSpread , "Enable ES2018 Object Rest/Spread" , DEFAULT_CONFIG_ES2018ObjectRestSpread)
11281132

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)
11331134
FLAGPR (Boolean, ES6, ES6ToPrimitive , "Enable ES6 ToPrimitive symbol" , DEFAULT_CONFIG_ES6ToPrimitive)
11341135
FLAGPR (Boolean, ES6, ES6ToLength , "Enable ES6 ToLength fixes" , DEFAULT_CONFIG_ES6ToLength)
11351136
FLAGPR (Boolean, ES6, ES6ToStringTag , "Enable ES6 ToStringTag symbol" , DEFAULT_CONFIG_ES6ToStringTag)

0 commit comments

Comments
 (0)