Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
  • Loading branch information
p-bakker and ptomato committed Jul 24, 2024
1 parent b9313fc commit 8dea11c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions harness/hidden-constructors.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ try {
} catch(e) {}

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

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

0 comments on commit 8dea11c

Please sign in to comment.