Skip to content

Commit 7e29961

Browse files
author
Kevin Smith
committed
[MERGE #6287 @zenparsing] [test262] Enable function name inference flag by default
Merge pull request #6287 from zenparsing:test262-enable-fn-name There are many tests for function name inference. Does anyone know a reason why this flag was never turned on?
2 parents f6ef9d7 + 674699a commit 7e29961

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

lib/Common/ConfigFlagsList.h

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,7 @@ PHASE(All)
635635
#define DEFAULT_CONFIG_ES6DefaultArgs (true)
636636
#define DEFAULT_CONFIG_ES6Destructuring (true)
637637
#define DEFAULT_CONFIG_ES6ForLoopSemantics (true)
638-
639-
#ifdef COMPILE_DISABLE_ES6FunctionNameFull
640-
// If ES6FunctionNameFull needs to be disabled by compile flag, COMPILE_DISABLE_ES6FunctionNameFull should be false
641-
#define DEFAULT_CONFIG_ES6FunctionNameFull (false)
642-
#else
643-
#define DEFAULT_CONFIG_ES6FunctionNameFull (false)
644-
#endif
645-
638+
#define DEFAULT_CONFIG_ES6FunctionNameFull (true)
646639
#define DEFAULT_CONFIG_ES6Generators (true)
647640
#define DEFAULT_CONFIG_ES6IsConcatSpreadable (true)
648641
#define DEFAULT_CONFIG_ES6Math (true)
@@ -1143,12 +1136,7 @@ FLAGPR (Boolean, ES6, ES6DateParseFix , "Enable ES6 Date.parse
11431136
FLAGPR (Boolean, ES6, ES6DefaultArgs , "Enable ES6 Default Arguments" , DEFAULT_CONFIG_ES6DefaultArgs)
11441137
FLAGPR (Boolean, ES6, ES6Destructuring , "Enable ES6 Destructuring" , DEFAULT_CONFIG_ES6Destructuring)
11451138
FLAGPR (Boolean, ES6, ES6ForLoopSemantics , "Enable ES6 for loop per iteration bindings" , DEFAULT_CONFIG_ES6ForLoopSemantics)
1146-
1147-
#ifndef COMPILE_DISABLE_ES6FunctionNameFull
1148-
#define COMPILE_DISABLE_ES6FunctionNameFull 0
1149-
#endif
1150-
FLAGPR_REGOVR_EXP(Boolean, ES6, ES6FunctionNameFull , "Enable ES6 Full function.name" , DEFAULT_CONFIG_ES6FunctionNameFull)
1151-
1139+
FLAGPR (Boolean, ES6, ES6FunctionNameFull , "Enable ES6 Full function.name" , DEFAULT_CONFIG_ES6FunctionNameFull)
11521140
FLAGPR (Boolean, ES6, ES6Generators , "Enable ES6 generators" , DEFAULT_CONFIG_ES6Generators)
11531141
FLAGPR (Boolean, ES6, ES7ExponentiationOperator, "Enable ES7 exponentiation operator (**)" , DEFAULT_CONFIG_ES7ExponentionOperator)
11541142

test/Debugger/dumpFunctionProperties.js.dbg.baseline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
{
8686
"#__proto__": "function <large string>",
8787
"prototype": "Object {...}",
88-
"name": "string ",
88+
"name": "string Global code",
8989
"caller": "object null",
9090
"arguments": "object null",
9191
"length": "number -1"
@@ -149,11 +149,11 @@
149149
{
150150
"#__proto__": "function <large string>",
151151
"prototype": "Object {...}",
152-
"name": "string ",
152+
"name": "string Global code",
153153
"caller": "object null",
154154
"arguments": "object null",
155155
"length": "number -1"
156156
}
157157
]
158158
}
159-
]
159+
]

test/DebuggerCommon/attachWithDeferParse.js.dbg.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"#__proto__": "function <large string>",
8787
"prototype": "Object {...}",
8888
"length": "number 2",
89-
"name": "string ",
89+
"name": "string s",
9090
"caller": "object null",
9191
"arguments": "object null"
9292
},
@@ -113,4 +113,4 @@
113113
"inEvalFunc1": "function <large string>"
114114
}
115115
}
116-
]
116+
]

test/DebuggerCommon/catchInspection.js.dbg.baseline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"#__proto__": "function <large string>",
141141
"prototype": "Object {...}",
142142
"length": "number 0",
143-
"name": "string ",
143+
"name": "string j1",
144144
"caller": "object null",
145145
"arguments": "object null"
146146
}
@@ -594,7 +594,7 @@
594594
"#__proto__": "function <large string>",
595595
"prototype": "Object {...}",
596596
"length": "number 0",
597-
"name": "string ",
597+
"name": "string startTest",
598598
"caller": "object null",
599599
"arguments": "object null"
600600
},

0 commit comments

Comments
 (0)