Travis build: 1846

This commit is contained in:
30secondsofcode
2018-03-23 13:43:02 +00:00
parent bbe9969de6
commit 5da6311ddc
2 changed files with 2 additions and 2 deletions

View File

@ -3904,7 +3904,7 @@ Use a `try... catch` block to return either the result of the function or an app
```js
const attempt = (fn, ...args) => {
try {
return fn(args);
return fn(...args);
} catch (e) {
return e instanceof Error ? e : new Error(e);
}