From d5335347829e1e6c688f0ab05d5357e2eff0747e Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Fri, 1 Nov 2024 17:46:17 +0800 Subject: [PATCH] fix: ci --- DOC.md | 7 ++++--- DOC_CN.md | 7 ++++--- src/singleton.js | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/DOC.md b/DOC.md index 9e2b556a..48b80a1f 100644 --- a/DOC.md +++ b/DOC.md @@ -12380,9 +12380,10 @@ const f3 = fetch(2); console.log(f1 === f2); // -> true console.log(f1 === f3); // -> false -await f1; -const f4 = fetch(1); -console.log(f1 === f4); // -> false +f1.then(() => { + const f4 = fetch(1); + console.log(f1 === f4); // -> false +}); ``` ## size diff --git a/DOC_CN.md b/DOC_CN.md index 035e46d9..74480385 100644 --- a/DOC_CN.md +++ b/DOC_CN.md @@ -12371,9 +12371,10 @@ const f3 = fetch(2); console.log(f1 === f2); // -> true console.log(f1 === f3); // -> false -await f1; -const f4 = fetch(1); -console.log(f1 === f4); // -> false +f1.then(() => { + const f4 = fetch(1); + console.log(f1 === f4); // -> false +}); ``` ## size diff --git a/src/singleton.js b/src/singleton.js index a75f19da..cc9f0a21 100644 --- a/src/singleton.js +++ b/src/singleton.js @@ -15,9 +15,10 @@ * console.log(f1 === f2); // -> true * console.log(f1 === f3); // -> false * - * await f1; - * const f4 = fetch(1); - * console.log(f1 === f4); // -> false + * f1.then(() => { + * const f4 = fetch(1); + * console.log(f1 === f4); // -> false + * }); */ /* module