File tree 6 files changed +20
-0
lines changed
6 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,20 @@ A simple cache for a few of the JS Error constructors.
15
15
const assert = require (' assert' );
16
16
17
17
const Base = require (' es-errors' );
18
+ const Eval = require (' es-errors/eval' );
18
19
const Range = require (' es-errors/range' );
19
20
const Ref = require (' es-errors/ref' );
20
21
const Syntax = require (' es-errors/syntax' );
21
22
const Type = require (' es-errors/type' );
23
+ const URI = require (' es-errors/uri' );
22
24
23
25
assert .equal (Base, Error );
26
+ assert .equal (Eval, EvalError );
24
27
assert .equal (Range , RangeError );
25
28
assert .equal (Ref, ReferenceError );
26
29
assert .equal (Syntax, SyntaxError );
27
30
assert .equal (Type, TypeError );
31
+ assert .equal (URI , URIError );
28
32
```
29
33
30
34
## Tests
Original file line number Diff line number Diff line change
1
+ declare const EvalError : EvalErrorConstructor ;
2
+
3
+ export = EvalError ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ /** @type {import('./eval') } */
4
+ module . exports = EvalError ;
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"exports" : {
7
7
"." : " ./index.js" ,
8
+ "./eval" : " ./eval.js" ,
8
9
"./range" : " ./range.js" ,
9
10
"./ref" : " ./ref.js" ,
10
11
"./syntax" : " ./syntax.js" ,
11
12
"./type" : " ./type.js" ,
13
+ "./uri" : " ./uri.js" ,
12
14
"./package.json" : " ./package.json"
13
15
},
14
16
"sideEffects" : false ,
Original file line number Diff line number Diff line change
1
+ declare const URIError : URIErrorConstructor ;
2
+
3
+ export = URIError ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ /** @type {import('./uri') } */
4
+ module . exports = URIError ;
You can’t perform that action at this time.
0 commit comments