mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 11:12:21 +00:00
commit
a24231818e
@ -373,7 +373,7 @@ async function myFunction() {
|
|||||||
await somethingThatReturnsAPromise()
|
await somethingThatReturnsAPromise()
|
||||||
.catch(function (err) {
|
.catch(function (err) {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user