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