Skip to content

Commit

Permalink
Elaborate GeneratorResume doneResult() comment in runtime.js
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Dec 15, 2023
1 parent 297ad61 commit e352a76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/runtime/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ var runtime = (function (exports) {
throw arg;
}

// Be forgiving, per 25.3.3.3.3 of the spec:
// https://262.ecma-international.org/6.0/#sec-generatorresume
// Be forgiving, per GeneratorResume behavior specified since ES2015:
// ES2015 spec, step 3: https://262.ecma-international.org/6.0/#sec-generatorresume
// Latest spec, step 2: https://tc39.es/ecma262/#sec-generatorresume
return doneResult();
}

Expand Down

0 comments on commit e352a76

Please sign in to comment.