From 879837718f2ce85681f0ff67a165aeba0b2a6a35 Mon Sep 17 00:00:00 2001 From: Leonardo Venturini Date: Tue, 13 Aug 2024 14:18:27 -0400 Subject: [PATCH] fix exception when getting meteor ready --- lib/runtime/entry.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/runtime/entry.js b/lib/runtime/entry.js index 795890b..9e8cac4 100644 --- a/lib/runtime/entry.js +++ b/lib/runtime/entry.js @@ -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'); }