From 40a8bb05fa8946b7f4805ad7257f378633aeb508 Mon Sep 17 00:00:00 2001 From: Curpond <1713610444@qq.name> Date: Mon, 8 Jan 2024 10:50:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9yield=20=E9=9D=9E=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/init/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/library/init/index.js b/noname/library/init/index.js index fbab8665c..41f3f2612 100644 --- a/noname/library/init/index.js +++ b/noname/library/init/index.js @@ -682,7 +682,7 @@ export class LibInit extends Uninstantable { trigger: trigger, result: result }); - var res = gen.next((lastEvent && ("result" in lastEvent)) ? lastEvent.result : null); + var res = gen.next((lastEvent && (typeof lastEvent == 'object') && ("result" in lastEvent)) ? lastEvent.result : lastEvent); if (res.done) return event.finish(); var currentResult = res.value; // TODO: use `event.debugger` to replace source