@@ -15,7 +15,7 @@ export function ObjectExpression(env: Environment<ESTree.ObjectExpression>) {
15
15
} else if ( property . key . type === 'Identifier' ) {
16
16
key = property . key . name ;
17
17
} else {
18
- throw new Error ( ) ;
18
+ throw new Error ( `evil-eval: [ObjectExpression] Unsupported property key type " ${ property . key . type } "` ) ;
19
19
}
20
20
} else {
21
21
if ( property . key . type === 'Identifier' ) {
@@ -34,109 +34,109 @@ export function ObjectExpression(env: Environment<ESTree.ObjectExpression>) {
34
34
} else if ( property . kind === 'set' ) {
35
35
Object . defineProperty ( obj , key , { set : value } ) ;
36
36
} else {
37
- throw new Error ( ) ;
37
+ throw new Error ( `evil-eval: [ObjectExpression] Unsupported property kind " ${ property . kind } "` ) ;
38
38
}
39
39
}
40
40
41
41
return obj ;
42
42
}
43
43
44
44
export function ForOfStatement ( env : Environment < ESTree . ForOfStatement > ) {
45
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
45
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
46
46
}
47
47
48
48
export function Super ( env : Environment < ESTree . Super > ) {
49
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
49
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
50
50
}
51
51
52
52
export function SpreadElement ( env : Environment < ESTree . SpreadElement > ) {
53
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
53
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
54
54
}
55
55
56
56
export function ArrowFunctionExpression ( env : Environment < ESTree . ArrowFunctionExpression > ) {
57
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
57
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
58
58
}
59
59
60
60
export function YieldExpression ( env : Environment < ESTree . YieldExpression > ) {
61
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
61
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
62
62
}
63
63
64
64
export function TemplateLiteral ( env : Environment < ESTree . TemplateLiteral > ) {
65
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
65
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
66
66
}
67
67
68
68
export function TaggedTemplateExpression ( env : Environment < ESTree . TaggedTemplateExpression > ) {
69
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
69
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
70
70
}
71
71
72
72
export function TemplateElement ( env : Environment < ESTree . TemplateElement > ) {
73
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
73
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
74
74
}
75
75
76
76
export function ObjectPattern ( env : Environment < ESTree . ObjectPattern > ) {
77
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
77
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
78
78
}
79
79
80
80
export function ArrayPattern ( env : Environment < ESTree . ArrayPattern > ) {
81
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
81
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
82
82
}
83
83
84
84
export function RestElement ( env : Environment < ESTree . RestElement > ) {
85
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
85
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
86
86
}
87
87
88
88
export function AssignmentPattern ( env : Environment < ESTree . AssignmentPattern > ) {
89
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
89
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
90
90
}
91
91
92
92
export function ClassBody ( env : Environment < ESTree . ClassBody > ) {
93
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
93
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
94
94
}
95
95
96
96
export function MethodDefinition ( env : Environment < ESTree . MethodDefinition > ) {
97
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
97
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
98
98
}
99
99
100
100
export function ClassDeclaration ( env : Environment < ESTree . ClassDeclaration > ) {
101
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
101
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
102
102
}
103
103
104
104
export function ClassExpression ( env : Environment < ESTree . ClassExpression > ) {
105
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
105
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
106
106
}
107
107
108
108
export function MetaProperty ( env : Environment < ESTree . MetaProperty > ) {
109
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
109
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
110
110
}
111
111
112
112
export function ImportDeclaration ( env : Environment < ESTree . ImportDeclaration > ) {
113
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
113
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
114
114
}
115
115
116
116
export function ImportSpecifier ( env : Environment < ESTree . ImportSpecifier > ) {
117
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
117
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
118
118
}
119
119
120
120
export function ImportDefaultSpecifier ( env : Environment < ESTree . ImportDefaultSpecifier > ) {
121
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
121
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
122
122
}
123
123
124
124
export function ImportNamespaceSpecifier ( env : Environment < ESTree . ImportNamespaceSpecifier > ) {
125
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
125
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
126
126
}
127
127
128
128
export function ExportNamedDeclaration ( env : Environment < ESTree . ExportNamedDeclaration > ) {
129
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
129
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
130
130
}
131
131
132
132
export function ExportSpecifier ( env : Environment < ESTree . ExportSpecifier > ) {
133
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
133
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
134
134
}
135
135
136
136
export function ExportDefaultDeclaration ( env : Environment < ESTree . ExportDefaultDeclaration > ) {
137
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
137
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
138
138
}
139
139
140
140
export function ExportAllDeclaration ( env : Environment < ESTree . ExportAllDeclaration > ) {
141
- throw new Error ( `"${ env . node . type } " not implemented` ) ;
141
+ throw new Error ( `evil-eval: "${ env . node . type } " not implemented` ) ;
142
142
}
0 commit comments