We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acfef8d commit c81ca73Copy full SHA for c81ca73
suites/error.json
@@ -10,5 +10,11 @@
10
"rule": { "error": "NaN" },
11
"data": null,
12
"error": true
13
+ },
14
+ {
15
+ "description": "Can throw an error object",
16
+ "rule": { "error": { "val": "x" } },
17
+ "data": { "x": { "error": "Some error" }},
18
+ "error": true
19
}
20
]
suites/try.json
@@ -108,6 +108,14 @@
108
"result": "B",
109
"data": null
110
},
111
112
+ "description": "Error can pull from an error object",
113
+ "rule": {
114
+ "try": [{ "error": { "val": "x" } }, { "val": "error" }]
115
116
117
+ "result": "Some error"
118
119
{
120
"description": "Try can work further up the AST with Exceptions, and return the error",
121
"rule": {
0 commit comments