Skip to content

Commit

Permalink
Merge pull request #10 from meteor/fix-set-async
Browse files Browse the repository at this point in the history
Fix exception when getting meteor ready
  • Loading branch information
leonardoventurini authored Aug 13, 2024
2 parents a1583ab + 07e59bd commit c7835e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/runtime/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ Ep.gatherReadyAsyncParents = function (readyList) {

Ep.setAsyncEvaluation = function () {
if (this.asyncEvaluationIndex !== null) {
if (this.status === 'evaluated') {
return;
}
throw new Error('setAsyncEvaluation can only be called once');
}

Expand Down

0 comments on commit c7835e2

Please sign in to comment.