catch-match 3.0.3 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
@@ -66,7 +66,7 @@ const result = $try(() => {
|
|
66
66
|
throw SyntaxError;
|
67
67
|
}).catch(ReferenceError, () => {
|
68
68
|
// noop
|
69
|
-
}).catch([TypeError, SyntaxError], () => {
|
69
|
+
}).catch([TypeError, SyntaxError], (error) => {
|
70
70
|
// to be called
|
71
71
|
}).other((error) => {
|
72
72
|
// noop
|
@@ -84,7 +84,7 @@ const result = $try(() => {
|
|
84
84
|
return [1, 2, 3];
|
85
85
|
}).catch(ReferenceError, () => {
|
86
86
|
// noop
|
87
|
-
}).catch([TypeError, SyntaxError], () => {
|
87
|
+
}).catch([TypeError, SyntaxError], (error) => {
|
88
88
|
// to be called
|
89
89
|
}).other((error) => {
|
90
90
|
// noop
|