mirror of https://github.com/tc39/test262.git
* Fix syntax error from #4164 Function statements require a name. See #4166 * Apply suggestions from code review Co-authored-by: Jordan Harband <ljharb@gmail.com> --------- Co-authored-by: Jordan Harband <ljharb@gmail.com>
This commit is contained in:
parent
29fe58bc8f
commit
50b023e6c9
|
@ -15,13 +15,13 @@ var AsyncGeneratorFunction;
|
|||
var GeneratorFunction;
|
||||
|
||||
try {
|
||||
AsyncFunction = Object.getPrototypeOf(new Function('async function () {}')).constructor;
|
||||
AsyncFunction = Object.getPrototypeOf(new Function('return async function dummy() {}')()).constructor;
|
||||
} catch(e) {}
|
||||
|
||||
try {
|
||||
AsyncGeneratorFunction = Object.getPrototypeOf(new Function('async function* () {}')).constructor;
|
||||
AsyncGeneratorFunction = Object.getPrototypeOf(new Function('return async function* dummy() {}')()).constructor;
|
||||
} catch(e) {}
|
||||
|
||||
try {
|
||||
GeneratorFunction = Object.getPrototypeOf(new Function('function* () {}')).constructor;
|
||||
GeneratorFunction = Object.getPrototypeOf(new Function('return function* dummy() {}')()).constructor;
|
||||
} catch(e) {}
|
||||
|
|
Loading…
Reference in New Issue