From 0c79864e5d5c31e4df2fd1006b4af023fb5bb0dd Mon Sep 17 00:00:00 2001 From: TyroneYvesChen <243307272@qq.com> Date: Mon, 31 Dec 2018 17:26:57 +0800 Subject: [PATCH] =?UTF-8?q?'fix:Promise=E5=B0=91=E4=BA=86=E5=8D=95?= =?UTF-8?q?=E5=BC=95=E5=8F=B7'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- JS/JS-ch.md | 2 +- JS/JS-en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/JS/JS-ch.md b/JS/JS-ch.md index e2ac2e23..4f1d2540 100644 --- a/JS/JS-ch.md +++ b/JS/JS-ch.md @@ -1123,7 +1123,7 @@ function MyPromise(fn) { }) } // 用于解决以下问题 - // new Promise(() => throw Error('error)) + // new Promise(() => throw Error('error')) try { fn(_this.resolve, _this.reject); } catch (e) { diff --git a/JS/JS-en.md b/JS/JS-en.md index e0191761..a9cc1a19 100644 --- a/JS/JS-en.md +++ b/JS/JS-en.md @@ -859,7 +859,7 @@ function MyPromise(fn) { } // to solve the following problem - // `new Promise(() => throw Error('error))` + // `new Promise(() => throw Error('error'))` try { fn(_this.resolve, _this.reject); } catch (e) {