porffor 0.14.0-549a04f84 → 0.14.0-5951093a3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/generated_builtins.js +0 -144
- package/package.json +1 -1
- package/runner/index.js +1 -1
- package/compiler/builtins/error.js +0 -22
@@ -1123,150 +1123,6 @@ export const BuiltinFuncs = function() {
|
|
1123
1123
|
locals: [127],
|
1124
1124
|
localNames: ["#last_type"],
|
1125
1125
|
};
|
1126
|
-
this.Error = {
|
1127
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1128
|
-
params: [124,127],
|
1129
|
-
typedParams: true,
|
1130
|
-
returns: [124,127],
|
1131
|
-
typedReturns: true,
|
1132
|
-
locals: [127],
|
1133
|
-
localNames: ["message","message#type","#last_type"],
|
1134
|
-
};
|
1135
|
-
this.Error$constructor = {
|
1136
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1137
|
-
params: [124,127],
|
1138
|
-
typedParams: true,
|
1139
|
-
returns: [124,127],
|
1140
|
-
typedReturns: true,
|
1141
|
-
locals: [127],
|
1142
|
-
localNames: ["message","message#type","#last_type"],
|
1143
|
-
};
|
1144
|
-
this.AggregateError = {
|
1145
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1146
|
-
params: [124,127],
|
1147
|
-
typedParams: true,
|
1148
|
-
returns: [124,127],
|
1149
|
-
typedReturns: true,
|
1150
|
-
locals: [127],
|
1151
|
-
localNames: ["message","message#type","#last_type"],
|
1152
|
-
};
|
1153
|
-
this.AggregateError$constructor = {
|
1154
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1155
|
-
params: [124,127],
|
1156
|
-
typedParams: true,
|
1157
|
-
returns: [124,127],
|
1158
|
-
typedReturns: true,
|
1159
|
-
locals: [127],
|
1160
|
-
localNames: ["message","message#type","#last_type"],
|
1161
|
-
};
|
1162
|
-
this.TypeError = {
|
1163
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1164
|
-
params: [124,127],
|
1165
|
-
typedParams: true,
|
1166
|
-
returns: [124,127],
|
1167
|
-
typedReturns: true,
|
1168
|
-
locals: [127],
|
1169
|
-
localNames: ["message","message#type","#last_type"],
|
1170
|
-
};
|
1171
|
-
this.TypeError$constructor = {
|
1172
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1173
|
-
params: [124,127],
|
1174
|
-
typedParams: true,
|
1175
|
-
returns: [124,127],
|
1176
|
-
typedReturns: true,
|
1177
|
-
locals: [127],
|
1178
|
-
localNames: ["message","message#type","#last_type"],
|
1179
|
-
};
|
1180
|
-
this.ReferenceError = {
|
1181
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1182
|
-
params: [124,127],
|
1183
|
-
typedParams: true,
|
1184
|
-
returns: [124,127],
|
1185
|
-
typedReturns: true,
|
1186
|
-
locals: [127],
|
1187
|
-
localNames: ["message","message#type","#last_type"],
|
1188
|
-
};
|
1189
|
-
this.ReferenceError$constructor = {
|
1190
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1191
|
-
params: [124,127],
|
1192
|
-
typedParams: true,
|
1193
|
-
returns: [124,127],
|
1194
|
-
typedReturns: true,
|
1195
|
-
locals: [127],
|
1196
|
-
localNames: ["message","message#type","#last_type"],
|
1197
|
-
};
|
1198
|
-
this.SyntaxError = {
|
1199
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1200
|
-
params: [124,127],
|
1201
|
-
typedParams: true,
|
1202
|
-
returns: [124,127],
|
1203
|
-
typedReturns: true,
|
1204
|
-
locals: [127],
|
1205
|
-
localNames: ["message","message#type","#last_type"],
|
1206
|
-
};
|
1207
|
-
this.SyntaxError$constructor = {
|
1208
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1209
|
-
params: [124,127],
|
1210
|
-
typedParams: true,
|
1211
|
-
returns: [124,127],
|
1212
|
-
typedReturns: true,
|
1213
|
-
locals: [127],
|
1214
|
-
localNames: ["message","message#type","#last_type"],
|
1215
|
-
};
|
1216
|
-
this.RangeError = {
|
1217
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1218
|
-
params: [124,127],
|
1219
|
-
typedParams: true,
|
1220
|
-
returns: [124,127],
|
1221
|
-
typedReturns: true,
|
1222
|
-
locals: [127],
|
1223
|
-
localNames: ["message","message#type","#last_type"],
|
1224
|
-
};
|
1225
|
-
this.RangeError$constructor = {
|
1226
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1227
|
-
params: [124,127],
|
1228
|
-
typedParams: true,
|
1229
|
-
returns: [124,127],
|
1230
|
-
typedReturns: true,
|
1231
|
-
locals: [127],
|
1232
|
-
localNames: ["message","message#type","#last_type"],
|
1233
|
-
};
|
1234
|
-
this.EvalError = {
|
1235
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1236
|
-
params: [124,127],
|
1237
|
-
typedParams: true,
|
1238
|
-
returns: [124,127],
|
1239
|
-
typedReturns: true,
|
1240
|
-
locals: [127],
|
1241
|
-
localNames: ["message","message#type","#last_type"],
|
1242
|
-
};
|
1243
|
-
this.EvalError$constructor = {
|
1244
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1245
|
-
params: [124,127],
|
1246
|
-
typedParams: true,
|
1247
|
-
returns: [124,127],
|
1248
|
-
typedReturns: true,
|
1249
|
-
locals: [127],
|
1250
|
-
localNames: ["message","message#type","#last_type"],
|
1251
|
-
};
|
1252
|
-
this.URIError = {
|
1253
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1254
|
-
params: [124,127],
|
1255
|
-
typedParams: true,
|
1256
|
-
returns: [124,127],
|
1257
|
-
typedReturns: true,
|
1258
|
-
locals: [127],
|
1259
|
-
localNames: ["message","message#type","#last_type"],
|
1260
|
-
};
|
1261
|
-
this.URIError$constructor = {
|
1262
|
-
wasm: (scope, {}) => [[68,0,0,0,0,0,0,240,63],[65,4],[34,2],[15]],
|
1263
|
-
params: [124,127],
|
1264
|
-
typedParams: true,
|
1265
|
-
returns: [124,127],
|
1266
|
-
typedReturns: true,
|
1267
|
-
locals: [127],
|
1268
|
-
localNames: ["message","message#type","#last_type"],
|
1269
|
-
};
|
1270
1126
|
this.escape = {
|
1271
1127
|
wasm: (scope, {allocPage,}) => [...number(allocPage(scope, 'bytestring: escape/lut', 'i8') * pageSize, 127),[33,2],[32,0],[40,1,0],[34,3],[33,4],[32,0],[33,5],[32,1],[65,18],[70],[4,64],[32,5],[32,3],[106],[33,6],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[32,5],[65,1],[106],[33,5],[45,0,4],[34,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[12,3],[11],[11],[32,4],[65,2],[106],[33,4],[12,1],[11],[11],[32,4],[32,3],[70],[4,64],[32,0],[15],[11],...number(allocPage(scope, 'bytestring: escape/output', 'i8') * pageSize, 127),[34,8],[32,4],[34,9],[54,1,0],[32,0],[33,5],[32,8],[33,10],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[32,5],[65,1],[106],[33,5],[45,0,4],[34,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[32,7],[58,0,4],[12,3],[11],[11],[32,10],[32,10],[65,1],[106],[33,10],[65,37],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,11],[65,57],[74],[4,64],[32,11],[65,7],[106],[33,11],[11],[32,7],[65,4],[117],[65,48],[106],[34,12],[65,57],[74],[4,64],[32,12],[65,7],[106],[33,12],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,12],[58,0,4],[32,10],[32,10],[65,1],[106],[33,10],[32,11],[58,0,4],[12,1],[11],[11],[32,8],[15],[11],[32,5],[32,3],[65,2],[108],[106],[33,6],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[47,0,4],[33,7],[32,5],[65,2],[106],[33,5],[32,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[12,3],[11],[11],[32,7],[65,128,2],[72],[4,64],[32,4],[65,2],[106],[33,4],[5],[32,4],[65,5],[106],[33,4],[11],[12,1],[11],[11],[32,4],[32,3],[70],[4,64],[32,0],[15],[11],[65,128,128,4],[34,8],[34,13],[65,0],[54,1,0],[32,8],[32,4],[34,9],[54,1,0],[32,0],[33,5],[32,8],[33,10],[3,64],[32,5],[32,6],[72],[4,64],[32,5],[47,0,4],[33,7],[32,5],[65,2],[106],[33,5],[32,7],[65,128,1],[72],[4,64],[32,2],[32,7],[106],[45,0,4],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[32,7],[58,0,4],[12,3],[11],[11],[32,7],[65,128,2],[72],[4,64],[32,10],[32,10],[65,1],[106],[33,10],[65,37],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,11],[65,57],[74],[4,64],[32,11],[65,7],[106],[33,11],[11],[32,7],[65,4],[117],[65,48],[106],[34,12],[65,57],[74],[4,64],[32,12],[65,7],[106],[33,12],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,12],[58,0,4],[32,10],[32,10],[65,1],[106],[33,10],[32,11],[58,0,4],[5],[32,10],[65,165,234,1],[59,0,4],[32,10],[65,2],[106],[33,10],[32,7],[65,12],[117],[65,15],[113],[65,48],[106],[34,14],[65,57],[74],[4,64],[32,14],[65,7],[106],[33,14],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,14],[58,0,4],[32,7],[65,8],[117],[65,15],[113],[65,48],[106],[34,14],[65,57],[74],[4,64],[32,14],[65,7],[106],[33,14],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,14],[58,0,4],[32,7],[65,4],[117],[65,15],[113],[65,48],[106],[34,14],[65,57],[74],[4,64],[32,14],[65,7],[106],[33,14],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,14],[58,0,4],[32,7],[65,15],[113],[65,48],[106],[34,14],[65,57],[74],[4,64],[32,14],[65,7],[106],[33,14],[11],[32,10],[32,10],[65,1],[106],[33,10],[32,14],[58,0,4],[11],[12,1],[11],[11],[32,8],[15]],
|
1272
1128
|
params: [127,127],
|
package/package.json
CHANGED
package/runner/index.js
CHANGED
@@ -25,7 +25,7 @@ if (process.argv.includes('--help')) {
|
|
25
25
|
console.log(`Usage: \x1B[1mporf [command] path/to/script.js [...prefs] [...args]\x1B[0m`);
|
26
26
|
|
27
27
|
// commands
|
28
|
-
console.log(`\n\
|
28
|
+
console.log(`\n\u001b[4mCommands\x1B[0m`);
|
29
29
|
for (const [ cmd, [ color, desc ] ] of Object.entries({
|
30
30
|
run: [ 34, 'Run a JS file' ],
|
31
31
|
wasm: [ 34, 'Compile a JS file to a Wasm binary\n' ],
|
@@ -1,22 +0,0 @@
|
|
1
|
-
export default () => {
|
2
|
-
let out = '';
|
3
|
-
|
4
|
-
const error = name => out += `export const ${name} = (message: bytestring) => {
|
5
|
-
return {};
|
6
|
-
};
|
7
|
-
|
8
|
-
export const ${name}$constructor = (message: bytestring) => {
|
9
|
-
return {};
|
10
|
-
};`;
|
11
|
-
|
12
|
-
error('Error');
|
13
|
-
error('AggregateError');
|
14
|
-
error('TypeError');
|
15
|
-
error('ReferenceError');
|
16
|
-
error('SyntaxError');
|
17
|
-
error('RangeError');
|
18
|
-
error('EvalError');
|
19
|
-
error('URIError');
|
20
|
-
|
21
|
-
return out;
|
22
|
-
};
|