@vercel/python-analysis 0.11.0 → 0.12.0
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/dist/index.cjs +26 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23 -9
- package/dist/manifest/pipfile/schema.d.ts +6 -6
- package/dist/manifest/pyproject/schema.d.ts +23 -11
- package/dist/manifest/pyproject/schema.zod.d.ts +159 -0
- package/dist/manifest/pyproject/types.d.ts +19 -0
- package/dist/manifest/requirement/schema.d.ts +4 -4
- package/dist/manifest/uv-config/schema.d.ts +3 -3
- package/dist/util/fs.d.ts +0 -1
- package/dist/wasm/host-utils.d.ts +0 -1
- package/dist/wasm/interfaces/wasi-cli-environment.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-exit.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-input.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-output.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-clocks-monotonic-clock.d.ts +4 -0
- package/dist/wasm/interfaces/wasi-clocks-wall-clock.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-preopens.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-types.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-error.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-poll.d.ts +2 -1
- package/dist/wasm/interfaces/wasi-io-streams.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-random-insecure-seed.d.ts +1 -1
- package/dist/wasm/vercel_python_analysis.core.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core2.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core3.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.d.ts +36 -34
- package/dist/wasm/vercel_python_analysis.js +200 -127
- package/package.json +1 -1
|
@@ -817,10 +817,11 @@ const { TerminalOutput } = imports['wasi:cli/terminal-output'];
|
|
|
817
817
|
const { getTerminalStderr } = imports['wasi:cli/terminal-stderr'];
|
|
818
818
|
const { getTerminalStdin } = imports['wasi:cli/terminal-stdin'];
|
|
819
819
|
const { getTerminalStdout } = imports['wasi:cli/terminal-stdout'];
|
|
820
|
+
const { subscribeDuration } = imports['wasi:clocks/monotonic-clock'];
|
|
820
821
|
const { getDirectories } = imports['wasi:filesystem/preopens'];
|
|
821
822
|
const { Descriptor } = imports['wasi:filesystem/types'];
|
|
822
823
|
const { Error: Error$1 } = imports['wasi:io/error'];
|
|
823
|
-
const { Pollable } = imports['wasi:io/poll'];
|
|
824
|
+
const { Pollable, poll } = imports['wasi:io/poll'];
|
|
824
825
|
const { InputStream, OutputStream } = imports['wasi:io/streams'];
|
|
825
826
|
const { insecureSeed } = imports['wasi:random/insecure-seed'];
|
|
826
827
|
let gen = (function* _initGenerator () {
|
|
@@ -847,12 +848,12 @@ let gen = (function* _initGenerator () {
|
|
|
847
848
|
throw new TypeError('invalid variant discriminant for expected');
|
|
848
849
|
}
|
|
849
850
|
}
|
|
850
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
851
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
851
852
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'exit');
|
|
852
853
|
exit(variant0);
|
|
853
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
854
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
854
855
|
endCurrentTask(0);
|
|
855
|
-
_debugLog('[iface="wasi:cli/exit@0.2.
|
|
856
|
+
_debugLog('[iface="wasi:cli/exit@0.2.9", function="exit"][Instruction::Return]', {
|
|
856
857
|
funcName: 'exit',
|
|
857
858
|
paramCount: 0,
|
|
858
859
|
async: false,
|
|
@@ -875,16 +876,16 @@ let gen = (function* _initGenerator () {
|
|
|
875
876
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
876
877
|
}
|
|
877
878
|
curResourceBorrows.push(rsc0);
|
|
878
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
879
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
879
880
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]pollable.block');
|
|
880
881
|
rsc0.block();
|
|
881
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
882
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
882
883
|
for (const rsc of curResourceBorrows) {
|
|
883
884
|
rsc[symbolRscHandle] = undefined;
|
|
884
885
|
}
|
|
885
886
|
curResourceBorrows = [];
|
|
886
887
|
endCurrentTask(0);
|
|
887
|
-
_debugLog('[iface="wasi:io/poll@0.2.
|
|
888
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="[method]pollable.block"][Instruction::Return]', {
|
|
888
889
|
funcName: '[method]pollable.block',
|
|
889
890
|
paramCount: 0,
|
|
890
891
|
async: false,
|
|
@@ -907,10 +908,10 @@ let gen = (function* _initGenerator () {
|
|
|
907
908
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
908
909
|
}
|
|
909
910
|
curResourceBorrows.push(rsc0);
|
|
910
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
911
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
911
912
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.subscribe');
|
|
912
913
|
const ret = rsc0.subscribe();
|
|
913
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
914
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
914
915
|
for (const rsc of curResourceBorrows) {
|
|
915
916
|
rsc[symbolRscHandle] = undefined;
|
|
916
917
|
}
|
|
@@ -925,7 +926,7 @@ let gen = (function* _initGenerator () {
|
|
|
925
926
|
captureTable0.set(rep, ret);
|
|
926
927
|
handle3 = rscTableCreateOwn(handleTable0, rep);
|
|
927
928
|
}
|
|
928
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
929
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.subscribe"][Instruction::Return]', {
|
|
929
930
|
funcName: '[method]output-stream.subscribe',
|
|
930
931
|
paramCount: 1,
|
|
931
932
|
async: false,
|
|
@@ -940,10 +941,10 @@ let gen = (function* _initGenerator () {
|
|
|
940
941
|
handleTables[2] = handleTable2;
|
|
941
942
|
|
|
942
943
|
function trampoline10() {
|
|
943
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
944
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
944
945
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stdin');
|
|
945
946
|
const ret = getStdin();
|
|
946
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
947
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
947
948
|
endCurrentTask(0);
|
|
948
949
|
if (!(ret instanceof InputStream)) {
|
|
949
950
|
throw new TypeError('Resource error: Not a valid "InputStream" resource.');
|
|
@@ -954,7 +955,7 @@ let gen = (function* _initGenerator () {
|
|
|
954
955
|
captureTable2.set(rep, ret);
|
|
955
956
|
handle0 = rscTableCreateOwn(handleTable2, rep);
|
|
956
957
|
}
|
|
957
|
-
_debugLog('[iface="wasi:cli/stdin@0.2.
|
|
958
|
+
_debugLog('[iface="wasi:cli/stdin@0.2.9", function="get-stdin"][Instruction::Return]', {
|
|
958
959
|
funcName: 'get-stdin',
|
|
959
960
|
paramCount: 1,
|
|
960
961
|
async: false,
|
|
@@ -965,10 +966,10 @@ let gen = (function* _initGenerator () {
|
|
|
965
966
|
|
|
966
967
|
|
|
967
968
|
function trampoline11() {
|
|
968
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
969
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
969
970
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stdout');
|
|
970
971
|
const ret = getStdout();
|
|
971
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
972
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
972
973
|
endCurrentTask(0);
|
|
973
974
|
if (!(ret instanceof OutputStream)) {
|
|
974
975
|
throw new TypeError('Resource error: Not a valid "OutputStream" resource.');
|
|
@@ -979,7 +980,7 @@ let gen = (function* _initGenerator () {
|
|
|
979
980
|
captureTable3.set(rep, ret);
|
|
980
981
|
handle0 = rscTableCreateOwn(handleTable3, rep);
|
|
981
982
|
}
|
|
982
|
-
_debugLog('[iface="wasi:cli/stdout@0.2.
|
|
983
|
+
_debugLog('[iface="wasi:cli/stdout@0.2.9", function="get-stdout"][Instruction::Return]', {
|
|
983
984
|
funcName: 'get-stdout',
|
|
984
985
|
paramCount: 1,
|
|
985
986
|
async: false,
|
|
@@ -990,10 +991,10 @@ let gen = (function* _initGenerator () {
|
|
|
990
991
|
|
|
991
992
|
|
|
992
993
|
function trampoline12() {
|
|
993
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
994
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
994
995
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-stderr');
|
|
995
996
|
const ret = getStderr();
|
|
996
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
997
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
997
998
|
endCurrentTask(0);
|
|
998
999
|
if (!(ret instanceof OutputStream)) {
|
|
999
1000
|
throw new TypeError('Resource error: Not a valid "OutputStream" resource.');
|
|
@@ -1004,7 +1005,7 @@ let gen = (function* _initGenerator () {
|
|
|
1004
1005
|
captureTable3.set(rep, ret);
|
|
1005
1006
|
handle0 = rscTableCreateOwn(handleTable3, rep);
|
|
1006
1007
|
}
|
|
1007
|
-
_debugLog('[iface="wasi:cli/stderr@0.2.
|
|
1008
|
+
_debugLog('[iface="wasi:cli/stderr@0.2.9", function="get-stderr"][Instruction::Return]', {
|
|
1008
1009
|
funcName: 'get-stderr',
|
|
1009
1010
|
paramCount: 1,
|
|
1010
1011
|
async: false,
|
|
@@ -1013,11 +1014,36 @@ let gen = (function* _initGenerator () {
|
|
|
1013
1014
|
return handle0;
|
|
1014
1015
|
}
|
|
1015
1016
|
|
|
1017
|
+
|
|
1018
|
+
function trampoline13(arg0) {
|
|
1019
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1020
|
+
const _interface_call_currentTaskID = startCurrentTask(0, false, 'subscribe-duration');
|
|
1021
|
+
const ret = subscribeDuration(BigInt.asUintN(64, arg0));
|
|
1022
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1023
|
+
endCurrentTask(0);
|
|
1024
|
+
if (!(ret instanceof Pollable)) {
|
|
1025
|
+
throw new TypeError('Resource error: Not a valid "Pollable" resource.');
|
|
1026
|
+
}
|
|
1027
|
+
var handle0 = ret[symbolRscHandle];
|
|
1028
|
+
if (!handle0) {
|
|
1029
|
+
const rep = ret[symbolRscRep] || ++captureCnt0;
|
|
1030
|
+
captureTable0.set(rep, ret);
|
|
1031
|
+
handle0 = rscTableCreateOwn(handleTable0, rep);
|
|
1032
|
+
}
|
|
1033
|
+
_debugLog('[iface="wasi:clocks/monotonic-clock@0.2.9", function="subscribe-duration"][Instruction::Return]', {
|
|
1034
|
+
funcName: 'subscribe-duration',
|
|
1035
|
+
paramCount: 1,
|
|
1036
|
+
async: false,
|
|
1037
|
+
postReturn: false
|
|
1038
|
+
});
|
|
1039
|
+
return handle0;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1016
1042
|
let exports1;
|
|
1017
1043
|
let memory0;
|
|
1018
1044
|
let realloc0;
|
|
1019
1045
|
|
|
1020
|
-
function
|
|
1046
|
+
function trampoline14(arg0, arg1, arg2) {
|
|
1021
1047
|
var ptr0 = arg0;
|
|
1022
1048
|
var len0 = arg1;
|
|
1023
1049
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1064,7 +1090,7 @@ let gen = (function* _initGenerator () {
|
|
|
1064
1090
|
}
|
|
1065
1091
|
|
|
1066
1092
|
|
|
1067
|
-
function
|
|
1093
|
+
function trampoline15(arg0, arg1, arg2) {
|
|
1068
1094
|
var ptr0 = arg0;
|
|
1069
1095
|
var len0 = arg1;
|
|
1070
1096
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1086,7 +1112,7 @@ let gen = (function* _initGenerator () {
|
|
|
1086
1112
|
}
|
|
1087
1113
|
|
|
1088
1114
|
|
|
1089
|
-
function
|
|
1115
|
+
function trampoline16(arg0, arg1, arg2) {
|
|
1090
1116
|
var ptr0 = arg0;
|
|
1091
1117
|
var len0 = arg1;
|
|
1092
1118
|
var result0 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr0, len0));
|
|
@@ -1133,16 +1159,16 @@ let gen = (function* _initGenerator () {
|
|
|
1133
1159
|
}
|
|
1134
1160
|
|
|
1135
1161
|
|
|
1136
|
-
function
|
|
1137
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1162
|
+
function trampoline17(arg0) {
|
|
1163
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1138
1164
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'insecure-seed');
|
|
1139
1165
|
const ret = insecureSeed();
|
|
1140
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1166
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1141
1167
|
endCurrentTask(0);
|
|
1142
1168
|
var [tuple0_0, tuple0_1] = ret;
|
|
1143
1169
|
dataView(memory0).setBigInt64(arg0 + 0, toUint64(tuple0_0), true);
|
|
1144
1170
|
dataView(memory0).setBigInt64(arg0 + 8, toUint64(tuple0_1), true);
|
|
1145
|
-
_debugLog('[iface="wasi:random/insecure-seed@0.2.
|
|
1171
|
+
_debugLog('[iface="wasi:random/insecure-seed@0.2.9", function="insecure-seed"][Instruction::Return]', {
|
|
1146
1172
|
funcName: 'insecure-seed',
|
|
1147
1173
|
paramCount: 0,
|
|
1148
1174
|
async: false,
|
|
@@ -1150,12 +1176,54 @@ let gen = (function* _initGenerator () {
|
|
|
1150
1176
|
});
|
|
1151
1177
|
}
|
|
1152
1178
|
|
|
1179
|
+
|
|
1180
|
+
function trampoline18(arg0, arg1, arg2) {
|
|
1181
|
+
var len3 = arg1;
|
|
1182
|
+
var base3 = arg0;
|
|
1183
|
+
var result3 = [];
|
|
1184
|
+
for (let i = 0; i < len3; i++) {
|
|
1185
|
+
const base = base3 + i * 4;
|
|
1186
|
+
var handle1 = dataView(memory0).getInt32(base + 0, true);
|
|
1187
|
+
var rep2 = handleTable0[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1188
|
+
var rsc0 = captureTable0.get(rep2);
|
|
1189
|
+
if (!rsc0) {
|
|
1190
|
+
rsc0 = Object.create(Pollable.prototype);
|
|
1191
|
+
Object.defineProperty(rsc0, symbolRscHandle, { writable: true, value: handle1});
|
|
1192
|
+
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1193
|
+
}
|
|
1194
|
+
curResourceBorrows.push(rsc0);
|
|
1195
|
+
result3.push(rsc0);
|
|
1196
|
+
}
|
|
1197
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1198
|
+
const _interface_call_currentTaskID = startCurrentTask(0, false, 'poll');
|
|
1199
|
+
const ret = poll(result3);
|
|
1200
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1201
|
+
for (const rsc of curResourceBorrows) {
|
|
1202
|
+
rsc[symbolRscHandle] = undefined;
|
|
1203
|
+
}
|
|
1204
|
+
curResourceBorrows = [];
|
|
1205
|
+
endCurrentTask(0);
|
|
1206
|
+
var val4 = ret;
|
|
1207
|
+
var len4 = val4.length;
|
|
1208
|
+
var ptr4 = realloc0(0, 0, 4, len4 * 4);
|
|
1209
|
+
var src4 = new Uint8Array(val4.buffer, val4.byteOffset, len4 * 4);
|
|
1210
|
+
(new Uint8Array(memory0.buffer, ptr4, len4 * 4)).set(src4);
|
|
1211
|
+
dataView(memory0).setUint32(arg2 + 4, len4, true);
|
|
1212
|
+
dataView(memory0).setUint32(arg2 + 0, ptr4, true);
|
|
1213
|
+
_debugLog('[iface="wasi:io/poll@0.2.9", function="poll"][Instruction::Return]', {
|
|
1214
|
+
funcName: 'poll',
|
|
1215
|
+
paramCount: 0,
|
|
1216
|
+
async: false,
|
|
1217
|
+
postReturn: false
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1153
1221
|
const handleTable1 = [T_FLAG, 0];
|
|
1154
1222
|
const captureTable1= new Map();
|
|
1155
1223
|
let captureCnt1 = 0;
|
|
1156
1224
|
handleTables[1] = handleTable1;
|
|
1157
1225
|
|
|
1158
|
-
function
|
|
1226
|
+
function trampoline19(arg0, arg1) {
|
|
1159
1227
|
var handle1 = arg0;
|
|
1160
1228
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1161
1229
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1165,7 +1233,7 @@ let gen = (function* _initGenerator () {
|
|
|
1165
1233
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1166
1234
|
}
|
|
1167
1235
|
curResourceBorrows.push(rsc0);
|
|
1168
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1236
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1169
1237
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.check-write');
|
|
1170
1238
|
let ret;
|
|
1171
1239
|
try {
|
|
@@ -1173,7 +1241,7 @@ let gen = (function* _initGenerator () {
|
|
|
1173
1241
|
} catch (e) {
|
|
1174
1242
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1175
1243
|
}
|
|
1176
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1244
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1177
1245
|
for (const rsc of curResourceBorrows) {
|
|
1178
1246
|
rsc[symbolRscHandle] = undefined;
|
|
1179
1247
|
}
|
|
@@ -1221,7 +1289,7 @@ let gen = (function* _initGenerator () {
|
|
|
1221
1289
|
throw new TypeError('invalid variant specified for result');
|
|
1222
1290
|
}
|
|
1223
1291
|
}
|
|
1224
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1292
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.check-write"][Instruction::Return]', {
|
|
1225
1293
|
funcName: '[method]output-stream.check-write',
|
|
1226
1294
|
paramCount: 0,
|
|
1227
1295
|
async: false,
|
|
@@ -1230,7 +1298,7 @@ let gen = (function* _initGenerator () {
|
|
|
1230
1298
|
}
|
|
1231
1299
|
|
|
1232
1300
|
|
|
1233
|
-
function
|
|
1301
|
+
function trampoline20(arg0, arg1, arg2, arg3) {
|
|
1234
1302
|
var handle1 = arg0;
|
|
1235
1303
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1236
1304
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1243,7 +1311,7 @@ let gen = (function* _initGenerator () {
|
|
|
1243
1311
|
var ptr3 = arg1;
|
|
1244
1312
|
var len3 = arg2;
|
|
1245
1313
|
var result3 = new Uint8Array(memory0.buffer.slice(ptr3, ptr3 + len3 * 1));
|
|
1246
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1314
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1247
1315
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.write');
|
|
1248
1316
|
let ret;
|
|
1249
1317
|
try {
|
|
@@ -1251,7 +1319,7 @@ let gen = (function* _initGenerator () {
|
|
|
1251
1319
|
} catch (e) {
|
|
1252
1320
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1253
1321
|
}
|
|
1254
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1322
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1255
1323
|
for (const rsc of curResourceBorrows) {
|
|
1256
1324
|
rsc[symbolRscHandle] = undefined;
|
|
1257
1325
|
}
|
|
@@ -1298,7 +1366,7 @@ let gen = (function* _initGenerator () {
|
|
|
1298
1366
|
throw new TypeError('invalid variant specified for result');
|
|
1299
1367
|
}
|
|
1300
1368
|
}
|
|
1301
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1369
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.write"][Instruction::Return]', {
|
|
1302
1370
|
funcName: '[method]output-stream.write',
|
|
1303
1371
|
paramCount: 0,
|
|
1304
1372
|
async: false,
|
|
@@ -1307,7 +1375,7 @@ let gen = (function* _initGenerator () {
|
|
|
1307
1375
|
}
|
|
1308
1376
|
|
|
1309
1377
|
|
|
1310
|
-
function
|
|
1378
|
+
function trampoline21(arg0, arg1) {
|
|
1311
1379
|
var handle1 = arg0;
|
|
1312
1380
|
var rep2 = handleTable3[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1313
1381
|
var rsc0 = captureTable3.get(rep2);
|
|
@@ -1317,7 +1385,7 @@ let gen = (function* _initGenerator () {
|
|
|
1317
1385
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1318
1386
|
}
|
|
1319
1387
|
curResourceBorrows.push(rsc0);
|
|
1320
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1388
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1321
1389
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]output-stream.blocking-flush');
|
|
1322
1390
|
let ret;
|
|
1323
1391
|
try {
|
|
@@ -1325,7 +1393,7 @@ let gen = (function* _initGenerator () {
|
|
|
1325
1393
|
} catch (e) {
|
|
1326
1394
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1327
1395
|
}
|
|
1328
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1396
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1329
1397
|
for (const rsc of curResourceBorrows) {
|
|
1330
1398
|
rsc[symbolRscHandle] = undefined;
|
|
1331
1399
|
}
|
|
@@ -1372,7 +1440,7 @@ let gen = (function* _initGenerator () {
|
|
|
1372
1440
|
throw new TypeError('invalid variant specified for result');
|
|
1373
1441
|
}
|
|
1374
1442
|
}
|
|
1375
|
-
_debugLog('[iface="wasi:io/streams@0.2.
|
|
1443
|
+
_debugLog('[iface="wasi:io/streams@0.2.9", function="[method]output-stream.blocking-flush"][Instruction::Return]', {
|
|
1376
1444
|
funcName: '[method]output-stream.blocking-flush',
|
|
1377
1445
|
paramCount: 0,
|
|
1378
1446
|
async: false,
|
|
@@ -1385,7 +1453,7 @@ let gen = (function* _initGenerator () {
|
|
|
1385
1453
|
let captureCnt6 = 0;
|
|
1386
1454
|
handleTables[6] = handleTable6;
|
|
1387
1455
|
|
|
1388
|
-
function
|
|
1456
|
+
function trampoline22(arg0, arg1, arg2) {
|
|
1389
1457
|
var handle1 = arg0;
|
|
1390
1458
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1391
1459
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1395,7 +1463,7 @@ let gen = (function* _initGenerator () {
|
|
|
1395
1463
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1396
1464
|
}
|
|
1397
1465
|
curResourceBorrows.push(rsc0);
|
|
1398
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1466
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1399
1467
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.read-via-stream');
|
|
1400
1468
|
let ret;
|
|
1401
1469
|
try {
|
|
@@ -1403,7 +1471,7 @@ let gen = (function* _initGenerator () {
|
|
|
1403
1471
|
} catch (e) {
|
|
1404
1472
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1405
1473
|
}
|
|
1406
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1474
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1407
1475
|
for (const rsc of curResourceBorrows) {
|
|
1408
1476
|
rsc[symbolRscHandle] = undefined;
|
|
1409
1477
|
}
|
|
@@ -1595,7 +1663,7 @@ let gen = (function* _initGenerator () {
|
|
|
1595
1663
|
throw new TypeError('invalid variant specified for result');
|
|
1596
1664
|
}
|
|
1597
1665
|
}
|
|
1598
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1666
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.read-via-stream"][Instruction::Return]', {
|
|
1599
1667
|
funcName: '[method]descriptor.read-via-stream',
|
|
1600
1668
|
paramCount: 0,
|
|
1601
1669
|
async: false,
|
|
@@ -1604,7 +1672,7 @@ let gen = (function* _initGenerator () {
|
|
|
1604
1672
|
}
|
|
1605
1673
|
|
|
1606
1674
|
|
|
1607
|
-
function
|
|
1675
|
+
function trampoline23(arg0, arg1, arg2) {
|
|
1608
1676
|
var handle1 = arg0;
|
|
1609
1677
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1610
1678
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1614,7 +1682,7 @@ let gen = (function* _initGenerator () {
|
|
|
1614
1682
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1615
1683
|
}
|
|
1616
1684
|
curResourceBorrows.push(rsc0);
|
|
1617
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1685
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1618
1686
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.write-via-stream');
|
|
1619
1687
|
let ret;
|
|
1620
1688
|
try {
|
|
@@ -1622,7 +1690,7 @@ let gen = (function* _initGenerator () {
|
|
|
1622
1690
|
} catch (e) {
|
|
1623
1691
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1624
1692
|
}
|
|
1625
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1693
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1626
1694
|
for (const rsc of curResourceBorrows) {
|
|
1627
1695
|
rsc[symbolRscHandle] = undefined;
|
|
1628
1696
|
}
|
|
@@ -1814,7 +1882,7 @@ let gen = (function* _initGenerator () {
|
|
|
1814
1882
|
throw new TypeError('invalid variant specified for result');
|
|
1815
1883
|
}
|
|
1816
1884
|
}
|
|
1817
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1885
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.write-via-stream"][Instruction::Return]', {
|
|
1818
1886
|
funcName: '[method]descriptor.write-via-stream',
|
|
1819
1887
|
paramCount: 0,
|
|
1820
1888
|
async: false,
|
|
@@ -1823,7 +1891,7 @@ let gen = (function* _initGenerator () {
|
|
|
1823
1891
|
}
|
|
1824
1892
|
|
|
1825
1893
|
|
|
1826
|
-
function
|
|
1894
|
+
function trampoline24(arg0, arg1) {
|
|
1827
1895
|
var handle1 = arg0;
|
|
1828
1896
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
1829
1897
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -1833,7 +1901,7 @@ let gen = (function* _initGenerator () {
|
|
|
1833
1901
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
1834
1902
|
}
|
|
1835
1903
|
curResourceBorrows.push(rsc0);
|
|
1836
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1904
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
1837
1905
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.append-via-stream');
|
|
1838
1906
|
let ret;
|
|
1839
1907
|
try {
|
|
@@ -1841,7 +1909,7 @@ let gen = (function* _initGenerator () {
|
|
|
1841
1909
|
} catch (e) {
|
|
1842
1910
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
1843
1911
|
}
|
|
1844
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
1912
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
1845
1913
|
for (const rsc of curResourceBorrows) {
|
|
1846
1914
|
rsc[symbolRscHandle] = undefined;
|
|
1847
1915
|
}
|
|
@@ -2033,7 +2101,7 @@ let gen = (function* _initGenerator () {
|
|
|
2033
2101
|
throw new TypeError('invalid variant specified for result');
|
|
2034
2102
|
}
|
|
2035
2103
|
}
|
|
2036
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2104
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.append-via-stream"][Instruction::Return]', {
|
|
2037
2105
|
funcName: '[method]descriptor.append-via-stream',
|
|
2038
2106
|
paramCount: 0,
|
|
2039
2107
|
async: false,
|
|
@@ -2042,7 +2110,7 @@ let gen = (function* _initGenerator () {
|
|
|
2042
2110
|
}
|
|
2043
2111
|
|
|
2044
2112
|
|
|
2045
|
-
function
|
|
2113
|
+
function trampoline25(arg0, arg1) {
|
|
2046
2114
|
var handle1 = arg0;
|
|
2047
2115
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2048
2116
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2052,7 +2120,7 @@ let gen = (function* _initGenerator () {
|
|
|
2052
2120
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2053
2121
|
}
|
|
2054
2122
|
curResourceBorrows.push(rsc0);
|
|
2055
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2123
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2056
2124
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.get-flags');
|
|
2057
2125
|
let ret;
|
|
2058
2126
|
try {
|
|
@@ -2060,7 +2128,7 @@ let gen = (function* _initGenerator () {
|
|
|
2060
2128
|
} catch (e) {
|
|
2061
2129
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2062
2130
|
}
|
|
2063
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2131
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2064
2132
|
for (const rsc of curResourceBorrows) {
|
|
2065
2133
|
rsc[symbolRscHandle] = undefined;
|
|
2066
2134
|
}
|
|
@@ -2249,7 +2317,7 @@ let gen = (function* _initGenerator () {
|
|
|
2249
2317
|
throw new TypeError('invalid variant specified for result');
|
|
2250
2318
|
}
|
|
2251
2319
|
}
|
|
2252
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2320
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.get-flags"][Instruction::Return]', {
|
|
2253
2321
|
funcName: '[method]descriptor.get-flags',
|
|
2254
2322
|
paramCount: 0,
|
|
2255
2323
|
async: false,
|
|
@@ -2258,7 +2326,7 @@ let gen = (function* _initGenerator () {
|
|
|
2258
2326
|
}
|
|
2259
2327
|
|
|
2260
2328
|
|
|
2261
|
-
function
|
|
2329
|
+
function trampoline26(arg0, arg1) {
|
|
2262
2330
|
var handle1 = arg0;
|
|
2263
2331
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2264
2332
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2268,7 +2336,7 @@ let gen = (function* _initGenerator () {
|
|
|
2268
2336
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2269
2337
|
}
|
|
2270
2338
|
curResourceBorrows.push(rsc0);
|
|
2271
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2339
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2272
2340
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.stat');
|
|
2273
2341
|
let ret;
|
|
2274
2342
|
try {
|
|
@@ -2276,7 +2344,7 @@ let gen = (function* _initGenerator () {
|
|
|
2276
2344
|
} catch (e) {
|
|
2277
2345
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2278
2346
|
}
|
|
2279
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2347
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2280
2348
|
for (const rsc of curResourceBorrows) {
|
|
2281
2349
|
rsc[symbolRscHandle] = undefined;
|
|
2282
2350
|
}
|
|
@@ -2535,7 +2603,7 @@ let gen = (function* _initGenerator () {
|
|
|
2535
2603
|
throw new TypeError('invalid variant specified for result');
|
|
2536
2604
|
}
|
|
2537
2605
|
}
|
|
2538
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2606
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat"][Instruction::Return]', {
|
|
2539
2607
|
funcName: '[method]descriptor.stat',
|
|
2540
2608
|
paramCount: 0,
|
|
2541
2609
|
async: false,
|
|
@@ -2544,7 +2612,7 @@ let gen = (function* _initGenerator () {
|
|
|
2544
2612
|
}
|
|
2545
2613
|
|
|
2546
2614
|
|
|
2547
|
-
function
|
|
2615
|
+
function trampoline27(arg0, arg1, arg2, arg3, arg4) {
|
|
2548
2616
|
var handle1 = arg0;
|
|
2549
2617
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2550
2618
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2563,7 +2631,7 @@ let gen = (function* _initGenerator () {
|
|
|
2563
2631
|
var ptr4 = arg2;
|
|
2564
2632
|
var len4 = arg3;
|
|
2565
2633
|
var result4 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr4, len4));
|
|
2566
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2634
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2567
2635
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.stat-at');
|
|
2568
2636
|
let ret;
|
|
2569
2637
|
try {
|
|
@@ -2571,7 +2639,7 @@ let gen = (function* _initGenerator () {
|
|
|
2571
2639
|
} catch (e) {
|
|
2572
2640
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2573
2641
|
}
|
|
2574
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2642
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2575
2643
|
for (const rsc of curResourceBorrows) {
|
|
2576
2644
|
rsc[symbolRscHandle] = undefined;
|
|
2577
2645
|
}
|
|
@@ -2830,7 +2898,7 @@ let gen = (function* _initGenerator () {
|
|
|
2830
2898
|
throw new TypeError('invalid variant specified for result');
|
|
2831
2899
|
}
|
|
2832
2900
|
}
|
|
2833
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2901
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.stat-at"][Instruction::Return]', {
|
|
2834
2902
|
funcName: '[method]descriptor.stat-at',
|
|
2835
2903
|
paramCount: 0,
|
|
2836
2904
|
async: false,
|
|
@@ -2839,7 +2907,7 @@ let gen = (function* _initGenerator () {
|
|
|
2839
2907
|
}
|
|
2840
2908
|
|
|
2841
2909
|
|
|
2842
|
-
function
|
|
2910
|
+
function trampoline28(arg0, arg1) {
|
|
2843
2911
|
var handle1 = arg0;
|
|
2844
2912
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
2845
2913
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -2849,7 +2917,7 @@ let gen = (function* _initGenerator () {
|
|
|
2849
2917
|
Object.defineProperty(rsc0, symbolRscRep, { writable: true, value: rep2});
|
|
2850
2918
|
}
|
|
2851
2919
|
curResourceBorrows.push(rsc0);
|
|
2852
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2920
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
2853
2921
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.metadata-hash');
|
|
2854
2922
|
let ret;
|
|
2855
2923
|
try {
|
|
@@ -2857,7 +2925,7 @@ let gen = (function* _initGenerator () {
|
|
|
2857
2925
|
} catch (e) {
|
|
2858
2926
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
2859
2927
|
}
|
|
2860
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
2928
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
2861
2929
|
for (const rsc of curResourceBorrows) {
|
|
2862
2930
|
rsc[symbolRscHandle] = undefined;
|
|
2863
2931
|
}
|
|
@@ -3042,7 +3110,7 @@ let gen = (function* _initGenerator () {
|
|
|
3042
3110
|
throw new TypeError('invalid variant specified for result');
|
|
3043
3111
|
}
|
|
3044
3112
|
}
|
|
3045
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3113
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash"][Instruction::Return]', {
|
|
3046
3114
|
funcName: '[method]descriptor.metadata-hash',
|
|
3047
3115
|
paramCount: 0,
|
|
3048
3116
|
async: false,
|
|
@@ -3051,7 +3119,7 @@ let gen = (function* _initGenerator () {
|
|
|
3051
3119
|
}
|
|
3052
3120
|
|
|
3053
3121
|
|
|
3054
|
-
function
|
|
3122
|
+
function trampoline29(arg0, arg1, arg2, arg3, arg4) {
|
|
3055
3123
|
var handle1 = arg0;
|
|
3056
3124
|
var rep2 = handleTable6[(handle1 << 1) + 1] & ~T_FLAG;
|
|
3057
3125
|
var rsc0 = captureTable6.get(rep2);
|
|
@@ -3070,7 +3138,7 @@ let gen = (function* _initGenerator () {
|
|
|
3070
3138
|
var ptr4 = arg2;
|
|
3071
3139
|
var len4 = arg3;
|
|
3072
3140
|
var result4 = utf8Decoder.decode(new Uint8Array(memory0.buffer, ptr4, len4));
|
|
3073
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3141
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3074
3142
|
const _interface_call_currentTaskID = startCurrentTask(0, false, '[method]descriptor.metadata-hash-at');
|
|
3075
3143
|
let ret;
|
|
3076
3144
|
try {
|
|
@@ -3078,7 +3146,7 @@ let gen = (function* _initGenerator () {
|
|
|
3078
3146
|
} catch (e) {
|
|
3079
3147
|
ret = { tag: 'err', val: getErrorPayload(e) };
|
|
3080
3148
|
}
|
|
3081
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3149
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3082
3150
|
for (const rsc of curResourceBorrows) {
|
|
3083
3151
|
rsc[symbolRscHandle] = undefined;
|
|
3084
3152
|
}
|
|
@@ -3263,7 +3331,7 @@ let gen = (function* _initGenerator () {
|
|
|
3263
3331
|
throw new TypeError('invalid variant specified for result');
|
|
3264
3332
|
}
|
|
3265
3333
|
}
|
|
3266
|
-
_debugLog('[iface="wasi:filesystem/types@0.2.
|
|
3334
|
+
_debugLog('[iface="wasi:filesystem/types@0.2.9", function="[method]descriptor.metadata-hash-at"][Instruction::Return]', {
|
|
3267
3335
|
funcName: '[method]descriptor.metadata-hash-at',
|
|
3268
3336
|
paramCount: 0,
|
|
3269
3337
|
async: false,
|
|
@@ -3272,11 +3340,11 @@ let gen = (function* _initGenerator () {
|
|
|
3272
3340
|
}
|
|
3273
3341
|
|
|
3274
3342
|
|
|
3275
|
-
function
|
|
3276
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3343
|
+
function trampoline30(arg0) {
|
|
3344
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3277
3345
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-environment');
|
|
3278
3346
|
const ret = getEnvironment();
|
|
3279
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3347
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3280
3348
|
endCurrentTask(0);
|
|
3281
3349
|
var vec3 = ret;
|
|
3282
3350
|
var len3 = vec3.length;
|
|
@@ -3295,7 +3363,7 @@ let gen = (function* _initGenerator () {
|
|
|
3295
3363
|
}
|
|
3296
3364
|
dataView(memory0).setUint32(arg0 + 4, len3, true);
|
|
3297
3365
|
dataView(memory0).setUint32(arg0 + 0, result3, true);
|
|
3298
|
-
_debugLog('[iface="wasi:cli/environment@0.2.
|
|
3366
|
+
_debugLog('[iface="wasi:cli/environment@0.2.9", function="get-environment"][Instruction::Return]', {
|
|
3299
3367
|
funcName: 'get-environment',
|
|
3300
3368
|
paramCount: 0,
|
|
3301
3369
|
async: false,
|
|
@@ -3308,11 +3376,11 @@ let gen = (function* _initGenerator () {
|
|
|
3308
3376
|
let captureCnt4 = 0;
|
|
3309
3377
|
handleTables[4] = handleTable4;
|
|
3310
3378
|
|
|
3311
|
-
function
|
|
3312
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3379
|
+
function trampoline31(arg0) {
|
|
3380
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3313
3381
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stdin');
|
|
3314
3382
|
const ret = getTerminalStdin();
|
|
3315
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3383
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3316
3384
|
endCurrentTask(0);
|
|
3317
3385
|
var variant1 = ret;
|
|
3318
3386
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3331,7 +3399,7 @@ let gen = (function* _initGenerator () {
|
|
|
3331
3399
|
}
|
|
3332
3400
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3333
3401
|
}
|
|
3334
|
-
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.
|
|
3402
|
+
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.9", function="get-terminal-stdin"][Instruction::Return]', {
|
|
3335
3403
|
funcName: 'get-terminal-stdin',
|
|
3336
3404
|
paramCount: 0,
|
|
3337
3405
|
async: false,
|
|
@@ -3344,11 +3412,11 @@ let gen = (function* _initGenerator () {
|
|
|
3344
3412
|
let captureCnt5 = 0;
|
|
3345
3413
|
handleTables[5] = handleTable5;
|
|
3346
3414
|
|
|
3347
|
-
function
|
|
3348
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3415
|
+
function trampoline32(arg0) {
|
|
3416
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3349
3417
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stdout');
|
|
3350
3418
|
const ret = getTerminalStdout();
|
|
3351
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3419
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3352
3420
|
endCurrentTask(0);
|
|
3353
3421
|
var variant1 = ret;
|
|
3354
3422
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3367,7 +3435,7 @@ let gen = (function* _initGenerator () {
|
|
|
3367
3435
|
}
|
|
3368
3436
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3369
3437
|
}
|
|
3370
|
-
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.
|
|
3438
|
+
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.9", function="get-terminal-stdout"][Instruction::Return]', {
|
|
3371
3439
|
funcName: 'get-terminal-stdout',
|
|
3372
3440
|
paramCount: 0,
|
|
3373
3441
|
async: false,
|
|
@@ -3376,11 +3444,11 @@ let gen = (function* _initGenerator () {
|
|
|
3376
3444
|
}
|
|
3377
3445
|
|
|
3378
3446
|
|
|
3379
|
-
function
|
|
3380
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3447
|
+
function trampoline33(arg0) {
|
|
3448
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3381
3449
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-terminal-stderr');
|
|
3382
3450
|
const ret = getTerminalStderr();
|
|
3383
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3451
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3384
3452
|
endCurrentTask(0);
|
|
3385
3453
|
var variant1 = ret;
|
|
3386
3454
|
if (variant1 === null || variant1=== undefined) {
|
|
@@ -3399,7 +3467,7 @@ let gen = (function* _initGenerator () {
|
|
|
3399
3467
|
}
|
|
3400
3468
|
dataView(memory0).setInt32(arg0 + 4, handle0, true);
|
|
3401
3469
|
}
|
|
3402
|
-
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.
|
|
3470
|
+
_debugLog('[iface="wasi:cli/terminal-stderr@0.2.9", function="get-terminal-stderr"][Instruction::Return]', {
|
|
3403
3471
|
funcName: 'get-terminal-stderr',
|
|
3404
3472
|
paramCount: 0,
|
|
3405
3473
|
async: false,
|
|
@@ -3408,11 +3476,11 @@ let gen = (function* _initGenerator () {
|
|
|
3408
3476
|
}
|
|
3409
3477
|
|
|
3410
3478
|
|
|
3411
|
-
function
|
|
3412
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3479
|
+
function trampoline34(arg0) {
|
|
3480
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"] [Instruction::CallInterface] (async? sync, @ enter)');
|
|
3413
3481
|
const _interface_call_currentTaskID = startCurrentTask(0, false, 'get-directories');
|
|
3414
3482
|
const ret = getDirectories();
|
|
3415
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3483
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"] [Instruction::CallInterface] (sync, @ post-call)');
|
|
3416
3484
|
endCurrentTask(0);
|
|
3417
3485
|
var vec3 = ret;
|
|
3418
3486
|
var len3 = vec3.length;
|
|
@@ -3437,7 +3505,7 @@ let gen = (function* _initGenerator () {
|
|
|
3437
3505
|
}
|
|
3438
3506
|
dataView(memory0).setUint32(arg0 + 4, len3, true);
|
|
3439
3507
|
dataView(memory0).setUint32(arg0 + 0, result3, true);
|
|
3440
|
-
_debugLog('[iface="wasi:filesystem/preopens@0.2.
|
|
3508
|
+
_debugLog('[iface="wasi:filesystem/preopens@0.2.9", function="get-directories"][Instruction::Return]', {
|
|
3441
3509
|
funcName: 'get-directories',
|
|
3442
3510
|
paramCount: 0,
|
|
3443
3511
|
async: false,
|
|
@@ -3553,7 +3621,7 @@ let gen = (function* _initGenerator () {
|
|
|
3553
3621
|
'read-file': exports0['0'],
|
|
3554
3622
|
},
|
|
3555
3623
|
'wasi:cli/environment@0.2.0': {
|
|
3556
|
-
'get-environment': exports0['
|
|
3624
|
+
'get-environment': exports0['16'],
|
|
3557
3625
|
},
|
|
3558
3626
|
'wasi:cli/exit@0.2.0': {
|
|
3559
3627
|
exit: trampoline7,
|
|
@@ -3574,26 +3642,29 @@ let gen = (function* _initGenerator () {
|
|
|
3574
3642
|
'[resource-drop]terminal-output': trampoline5,
|
|
3575
3643
|
},
|
|
3576
3644
|
'wasi:cli/terminal-stderr@0.2.0': {
|
|
3577
|
-
'get-terminal-stderr': exports0['
|
|
3645
|
+
'get-terminal-stderr': exports0['19'],
|
|
3578
3646
|
},
|
|
3579
3647
|
'wasi:cli/terminal-stdin@0.2.0': {
|
|
3580
|
-
'get-terminal-stdin': exports0['
|
|
3648
|
+
'get-terminal-stdin': exports0['17'],
|
|
3581
3649
|
},
|
|
3582
3650
|
'wasi:cli/terminal-stdout@0.2.0': {
|
|
3583
|
-
'get-terminal-stdout': exports0['
|
|
3651
|
+
'get-terminal-stdout': exports0['18'],
|
|
3652
|
+
},
|
|
3653
|
+
'wasi:clocks/monotonic-clock@0.2.0': {
|
|
3654
|
+
'subscribe-duration': trampoline13,
|
|
3584
3655
|
},
|
|
3585
3656
|
'wasi:filesystem/preopens@0.2.0': {
|
|
3586
|
-
'get-directories': exports0['
|
|
3657
|
+
'get-directories': exports0['20'],
|
|
3587
3658
|
},
|
|
3588
3659
|
'wasi:filesystem/types@0.2.0': {
|
|
3589
|
-
'[method]descriptor.append-via-stream': exports0['
|
|
3590
|
-
'[method]descriptor.get-flags': exports0['
|
|
3591
|
-
'[method]descriptor.metadata-hash': exports0['
|
|
3592
|
-
'[method]descriptor.metadata-hash-at': exports0['
|
|
3593
|
-
'[method]descriptor.read-via-stream': exports0['
|
|
3594
|
-
'[method]descriptor.stat': exports0['
|
|
3595
|
-
'[method]descriptor.stat-at': exports0['
|
|
3596
|
-
'[method]descriptor.write-via-stream': exports0['
|
|
3660
|
+
'[method]descriptor.append-via-stream': exports0['10'],
|
|
3661
|
+
'[method]descriptor.get-flags': exports0['11'],
|
|
3662
|
+
'[method]descriptor.metadata-hash': exports0['14'],
|
|
3663
|
+
'[method]descriptor.metadata-hash-at': exports0['15'],
|
|
3664
|
+
'[method]descriptor.read-via-stream': exports0['8'],
|
|
3665
|
+
'[method]descriptor.stat': exports0['12'],
|
|
3666
|
+
'[method]descriptor.stat-at': exports0['13'],
|
|
3667
|
+
'[method]descriptor.write-via-stream': exports0['9'],
|
|
3597
3668
|
'[resource-drop]descriptor': trampoline6,
|
|
3598
3669
|
},
|
|
3599
3670
|
'wasi:io/error@0.2.0': {
|
|
@@ -3602,16 +3673,17 @@ let gen = (function* _initGenerator () {
|
|
|
3602
3673
|
'wasi:io/poll@0.2.0': {
|
|
3603
3674
|
'[method]pollable.block': trampoline8,
|
|
3604
3675
|
'[resource-drop]pollable': trampoline1,
|
|
3676
|
+
poll: exports0['4'],
|
|
3605
3677
|
},
|
|
3606
3678
|
'wasi:io/streams@0.2.0': {
|
|
3607
|
-
'[method]output-stream.blocking-flush': exports0['
|
|
3608
|
-
'[method]output-stream.check-write': exports0['
|
|
3679
|
+
'[method]output-stream.blocking-flush': exports0['7'],
|
|
3680
|
+
'[method]output-stream.check-write': exports0['5'],
|
|
3609
3681
|
'[method]output-stream.subscribe': trampoline9,
|
|
3610
|
-
'[method]output-stream.write': exports0['
|
|
3682
|
+
'[method]output-stream.write': exports0['6'],
|
|
3611
3683
|
'[resource-drop]input-stream': trampoline2,
|
|
3612
3684
|
'[resource-drop]output-stream': trampoline3,
|
|
3613
3685
|
},
|
|
3614
|
-
'wasi:random/insecure-seed@0.2.
|
|
3686
|
+
'wasi:random/insecure-seed@0.2.9': {
|
|
3615
3687
|
'insecure-seed': exports0['3'],
|
|
3616
3688
|
},
|
|
3617
3689
|
}));
|
|
@@ -3620,26 +3692,27 @@ let gen = (function* _initGenerator () {
|
|
|
3620
3692
|
({ exports: exports2 } = yield instantiateCore(yield module2, {
|
|
3621
3693
|
'': {
|
|
3622
3694
|
$imports: exports0.$imports,
|
|
3623
|
-
'0':
|
|
3624
|
-
'1':
|
|
3625
|
-
'10':
|
|
3626
|
-
'11':
|
|
3627
|
-
'12':
|
|
3628
|
-
'13':
|
|
3629
|
-
'14':
|
|
3630
|
-
'15':
|
|
3631
|
-
'16':
|
|
3632
|
-
'17':
|
|
3633
|
-
'18':
|
|
3634
|
-
'19':
|
|
3635
|
-
'2':
|
|
3636
|
-
'
|
|
3637
|
-
'
|
|
3638
|
-
'
|
|
3639
|
-
'
|
|
3640
|
-
'
|
|
3641
|
-
'
|
|
3642
|
-
'
|
|
3695
|
+
'0': trampoline14,
|
|
3696
|
+
'1': trampoline15,
|
|
3697
|
+
'10': trampoline24,
|
|
3698
|
+
'11': trampoline25,
|
|
3699
|
+
'12': trampoline26,
|
|
3700
|
+
'13': trampoline27,
|
|
3701
|
+
'14': trampoline28,
|
|
3702
|
+
'15': trampoline29,
|
|
3703
|
+
'16': trampoline30,
|
|
3704
|
+
'17': trampoline31,
|
|
3705
|
+
'18': trampoline32,
|
|
3706
|
+
'19': trampoline33,
|
|
3707
|
+
'2': trampoline16,
|
|
3708
|
+
'20': trampoline34,
|
|
3709
|
+
'3': trampoline17,
|
|
3710
|
+
'4': trampoline18,
|
|
3711
|
+
'5': trampoline19,
|
|
3712
|
+
'6': trampoline20,
|
|
3713
|
+
'7': trampoline21,
|
|
3714
|
+
'8': trampoline22,
|
|
3715
|
+
'9': trampoline23,
|
|
3643
3716
|
},
|
|
3644
3717
|
}));
|
|
3645
3718
|
postReturn0 = exports1['cabi_post_evaluate-marker'];
|