Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Apr 30, 2024
1 parent 6cc3c59 commit af667c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ function fnWithError() {
}

async function asyncFnResolve(num) {
await sleep(1000);
await sleep(100);
return Promise.resolve(num);
}

async function asyncFnReject() {
await sleep(1000);
await sleep(100);
return Promise.reject(new Error("rejected"));
}

Expand Down
4 changes: 2 additions & 2 deletions data/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ function fnWithError() {
}

async function asyncFnResolve(num) {
await sleep(1000);
await sleep(100);
return Promise.resolve(num);
}

async function asyncFnReject() {
await sleep(1000);
await sleep(100);
return Promise.reject(new Error("rejected"));
}

Expand Down

0 comments on commit af667c6

Please sign in to comment.