Skip to content

Commit

Permalink
Revert "Prevent harness code not loading when async/generator/asyncGe…
Browse files Browse the repository at this point in the history
…nerator …"

This reverts commit f55e997.
  • Loading branch information
anba authored Jul 24, 2024
1 parent 29fe58b commit b75dd1a
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions harness/hidden-constructors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ defines:
- GeneratorFunction
---*/

var AsyncFunction;
var AsyncGeneratorFunction;
var GeneratorFunction;

try {
AsyncFunction = Object.getPrototypeOf(new Function('async function () {}')).constructor;
} catch(e) {}

try {
AsyncGeneratorFunction = Object.getPrototypeOf(new Function('async function* () {}')).constructor;
} catch(e) {}

try {
GeneratorFunction = Object.getPrototypeOf(new Function('function* () {}')).constructor;
} catch(e) {}
var AsyncFunction = Object.getPrototypeOf(async function () {}).constructor;
var AsyncGeneratorFunction = Object.getPrototypeOf(async function* () {}).constructor;
var GeneratorFunction = Object.getPrototypeOf(function* () {}).constructor;

0 comments on commit b75dd1a

Please sign in to comment.