Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion JS/JS-ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion JS/JS-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down