Skip to content

Commit

Permalink
change promise
Browse files Browse the repository at this point in the history
  • Loading branch information
amandakelake committed Mar 30, 2018
1 parent 14d95c3 commit c6df63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JS/JS-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function MyPromise(executor) {
// specification 2.3
function resolvePromise(promise2, x, resolve, reject) {
// specification 2.3.1
// `x` can't refer to the same object that `promise2` refers to, avoiding the circular references
// `x` and `promise2` can't refer to the same object, avoiding the circular references
if (promise2 === x) {
return reject(new TypeError('Error'));
}
Expand Down

0 comments on commit c6df63a

Please sign in to comment.