@bytecodealliance/jco 1.19.0 → 1.21.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/LICENSE +220 -0
- package/README.md +1 -1
- package/obj/js-component-bindgen-component.core.wasm +0 -0
- package/obj/js-component-bindgen-component.js +1491 -497
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.js +1635 -545
- package/package.json +98 -96
- package/src/api.js +11 -16
- package/src/cmd/transpile.js +7 -0
- package/src/jco.js +1 -1
- package/types/api.d.ts +17 -23
- package/types/api.d.ts.map +1 -1
- package/{src → types}/cmd/componentize.d.ts +1 -1
- package/types/cmd/componentize.d.ts.map +1 -0
- package/{src → types}/cmd/opt.d.ts +7 -10
- package/types/cmd/opt.d.ts.map +1 -0
- package/{src → types}/cmd/run.d.ts +1 -1
- package/types/cmd/run.d.ts.map +1 -0
- package/types/cmd/transpile.d.ts +62 -0
- package/types/cmd/transpile.d.ts.map +1 -0
- package/types/cmd/types.d.ts +45 -0
- package/types/cmd/types.d.ts.map +1 -0
- package/{src → types}/cmd/wasm-tools.d.ts +1 -1
- package/types/cmd/wasm-tools.d.ts.map +1 -0
- package/src/cmd/componentize.d.ts.map +0 -1
- package/src/cmd/opt.d.ts.map +0 -1
- package/src/cmd/run.d.ts.map +0 -1
- package/src/cmd/transpile.d.ts +0 -138
- package/src/cmd/transpile.d.ts.map +0 -1
- package/src/cmd/types.d.ts +0 -38
- package/src/cmd/wasm-tools.d.ts.map +0 -1
|
@@ -11,7 +11,6 @@ if (getEnvironment=== undefined) {
|
|
|
11
11
|
throw err;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
getEnvironment._isHostProvided = true;
|
|
15
14
|
const { exit } = exit$1;
|
|
16
15
|
|
|
17
16
|
if (exit=== undefined) {
|
|
@@ -20,7 +19,6 @@ if (exit=== undefined) {
|
|
|
20
19
|
throw err;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
exit._isHostProvided = true;
|
|
24
22
|
const { getStderr } = stderr;
|
|
25
23
|
|
|
26
24
|
if (getStderr=== undefined) {
|
|
@@ -29,7 +27,6 @@ if (getStderr=== undefined) {
|
|
|
29
27
|
throw err;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
getStderr._isHostProvided = true;
|
|
33
30
|
const { getStdin } = stdin;
|
|
34
31
|
|
|
35
32
|
if (getStdin=== undefined) {
|
|
@@ -38,7 +35,6 @@ if (getStdin=== undefined) {
|
|
|
38
35
|
throw err;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
getStdin._isHostProvided = true;
|
|
42
38
|
const { getStdout } = stdout;
|
|
43
39
|
|
|
44
40
|
if (getStdout=== undefined) {
|
|
@@ -47,7 +43,6 @@ if (getStdout=== undefined) {
|
|
|
47
43
|
throw err;
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
getStdout._isHostProvided = true;
|
|
51
46
|
const { TerminalInput } = terminalInput;
|
|
52
47
|
|
|
53
48
|
if (TerminalInput=== undefined) {
|
|
@@ -56,7 +51,6 @@ if (TerminalInput=== undefined) {
|
|
|
56
51
|
throw err;
|
|
57
52
|
}
|
|
58
53
|
|
|
59
|
-
TerminalInput._isHostProvided = true;
|
|
60
54
|
const { TerminalOutput } = terminalOutput;
|
|
61
55
|
|
|
62
56
|
if (TerminalOutput=== undefined) {
|
|
@@ -65,7 +59,6 @@ if (TerminalOutput=== undefined) {
|
|
|
65
59
|
throw err;
|
|
66
60
|
}
|
|
67
61
|
|
|
68
|
-
TerminalOutput._isHostProvided = true;
|
|
69
62
|
const { getTerminalStderr } = terminalStderr;
|
|
70
63
|
|
|
71
64
|
if (getTerminalStderr=== undefined) {
|
|
@@ -74,7 +67,6 @@ if (getTerminalStderr=== undefined) {
|
|
|
74
67
|
throw err;
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
getTerminalStderr._isHostProvided = true;
|
|
78
70
|
const { getTerminalStdin } = terminalStdin;
|
|
79
71
|
|
|
80
72
|
if (getTerminalStdin=== undefined) {
|
|
@@ -83,7 +75,6 @@ if (getTerminalStdin=== undefined) {
|
|
|
83
75
|
throw err;
|
|
84
76
|
}
|
|
85
77
|
|
|
86
|
-
getTerminalStdin._isHostProvided = true;
|
|
87
78
|
const { getTerminalStdout } = terminalStdout;
|
|
88
79
|
|
|
89
80
|
if (getTerminalStdout=== undefined) {
|
|
@@ -92,7 +83,6 @@ if (getTerminalStdout=== undefined) {
|
|
|
92
83
|
throw err;
|
|
93
84
|
}
|
|
94
85
|
|
|
95
|
-
getTerminalStdout._isHostProvided = true;
|
|
96
86
|
const { getDirectories } = preopens;
|
|
97
87
|
|
|
98
88
|
if (getDirectories=== undefined) {
|
|
@@ -101,7 +91,6 @@ if (getDirectories=== undefined) {
|
|
|
101
91
|
throw err;
|
|
102
92
|
}
|
|
103
93
|
|
|
104
|
-
getDirectories._isHostProvided = true;
|
|
105
94
|
const { Descriptor,
|
|
106
95
|
DirectoryEntryStream,
|
|
107
96
|
filesystemErrorCode } = types;
|
|
@@ -112,7 +101,6 @@ if (Descriptor=== undefined) {
|
|
|
112
101
|
throw err;
|
|
113
102
|
}
|
|
114
103
|
|
|
115
|
-
Descriptor._isHostProvided = true;
|
|
116
104
|
|
|
117
105
|
if (DirectoryEntryStream=== undefined) {
|
|
118
106
|
const err = new Error("unexpectedly undefined local import 'DirectoryEntryStream', was 'DirectoryEntryStream' available at instantiation?");
|
|
@@ -120,7 +108,6 @@ if (DirectoryEntryStream=== undefined) {
|
|
|
120
108
|
throw err;
|
|
121
109
|
}
|
|
122
110
|
|
|
123
|
-
DirectoryEntryStream._isHostProvided = true;
|
|
124
111
|
|
|
125
112
|
if (filesystemErrorCode=== undefined) {
|
|
126
113
|
const err = new Error("unexpectedly undefined local import 'filesystemErrorCode', was 'filesystemErrorCode' available at instantiation?");
|
|
@@ -128,7 +115,6 @@ if (filesystemErrorCode=== undefined) {
|
|
|
128
115
|
throw err;
|
|
129
116
|
}
|
|
130
117
|
|
|
131
|
-
filesystemErrorCode._isHostProvided = true;
|
|
132
118
|
const { Error: Error$1 } = error;
|
|
133
119
|
|
|
134
120
|
if (Error$1=== undefined) {
|
|
@@ -137,7 +123,6 @@ if (Error$1=== undefined) {
|
|
|
137
123
|
throw err;
|
|
138
124
|
}
|
|
139
125
|
|
|
140
|
-
Error$1._isHostProvided = true;
|
|
141
126
|
const { InputStream,
|
|
142
127
|
OutputStream } = streams;
|
|
143
128
|
|
|
@@ -147,7 +132,6 @@ if (InputStream=== undefined) {
|
|
|
147
132
|
throw err;
|
|
148
133
|
}
|
|
149
134
|
|
|
150
|
-
InputStream._isHostProvided = true;
|
|
151
135
|
|
|
152
136
|
if (OutputStream=== undefined) {
|
|
153
137
|
const err = new Error("unexpectedly undefined local import 'OutputStream', was 'OutputStream' available at instantiation?");
|
|
@@ -155,7 +139,6 @@ if (OutputStream=== undefined) {
|
|
|
155
139
|
throw err;
|
|
156
140
|
}
|
|
157
141
|
|
|
158
|
-
OutputStream._isHostProvided = true;
|
|
159
142
|
const { getRandomBytes } = random;
|
|
160
143
|
|
|
161
144
|
if (getRandomBytes=== undefined) {
|
|
@@ -164,7 +147,6 @@ if (getRandomBytes=== undefined) {
|
|
|
164
147
|
throw err;
|
|
165
148
|
}
|
|
166
149
|
|
|
167
|
-
getRandomBytes._isHostProvided = true;
|
|
168
150
|
|
|
169
151
|
function promiseWithResolvers() {
|
|
170
152
|
if (Promise.withResolvers) {
|
|
@@ -193,10 +175,11 @@ const CURRENT_TASK_META = {};
|
|
|
193
175
|
|
|
194
176
|
function _getGlobalCurrentTaskMeta(componentIdx) {
|
|
195
177
|
const v = CURRENT_TASK_META[componentIdx];
|
|
196
|
-
if (v === undefined) { return
|
|
178
|
+
if (v === undefined || v === null) { return undefined; }
|
|
197
179
|
return { ...v };
|
|
198
180
|
}
|
|
199
181
|
|
|
182
|
+
|
|
200
183
|
function _setGlobalCurrentTaskMeta(args) {
|
|
201
184
|
if (!args) { throw new TypeError('args missing'); }
|
|
202
185
|
if (args.taskID === undefined) { throw new TypeError('missing task ID'); }
|
|
@@ -205,6 +188,7 @@ function _setGlobalCurrentTaskMeta(args) {
|
|
|
205
188
|
return CURRENT_TASK_META[componentIdx] = { taskID, componentIdx };
|
|
206
189
|
}
|
|
207
190
|
|
|
191
|
+
|
|
208
192
|
function _withGlobalCurrentTaskMeta(args) {
|
|
209
193
|
_debugLog('[_withGlobalCurrentTaskMeta()] args', args);
|
|
210
194
|
if (!args) { throw new TypeError('args missing'); }
|
|
@@ -383,7 +367,9 @@ class RepTable {
|
|
|
383
367
|
const _coinFlip = () => { return Math.random() > 0.5; };
|
|
384
368
|
let SCOPE_ID = 0;
|
|
385
369
|
const I32_MIN = -2_147_483_648;
|
|
386
|
-
|
|
370
|
+
|
|
371
|
+
const I32_MAX= 2_147_483_647;
|
|
372
|
+
|
|
387
373
|
|
|
388
374
|
function _isValidNumericPrimitive(ty, v) {
|
|
389
375
|
if (v === undefined || v === null) { return false; }
|
|
@@ -425,8 +411,10 @@ function _requireValidNumericPrimitive(ty, v) {
|
|
|
425
411
|
}
|
|
426
412
|
return true;
|
|
427
413
|
}
|
|
414
|
+
|
|
428
415
|
const _typeCheckValidI32 = (n) => typeof n === 'number' && n >= I32_MIN && n <= I32_MAX;
|
|
429
416
|
|
|
417
|
+
|
|
430
418
|
const _typeCheckAsyncFn= (f) => {
|
|
431
419
|
return f instanceof ASYNC_FN_CTOR;
|
|
432
420
|
};
|
|
@@ -462,7 +450,9 @@ function clearCurrentTask(componentIdx, taskID) {
|
|
|
462
450
|
const taskMeta = tasks.pop();
|
|
463
451
|
return taskMeta.task;
|
|
464
452
|
}
|
|
465
|
-
|
|
453
|
+
|
|
454
|
+
const CURRENT_TASK_MAY_BLOCK= globalThis.WebAssembly ? new globalThis.WebAssembly.Global({ value: 'i32', mutable: true }, 0) : false;
|
|
455
|
+
|
|
466
456
|
const ASYNC_CURRENT_TASK_IDS = [];
|
|
467
457
|
const ASYNC_CURRENT_COMPONENT_IDXS = [];
|
|
468
458
|
|
|
@@ -674,11 +664,7 @@ class AsyncSubtask {
|
|
|
674
664
|
|
|
675
665
|
if (this.#onProgressFn) { this.#onProgressFn(); }
|
|
676
666
|
|
|
677
|
-
if (subtaskValue === null) {
|
|
678
|
-
if (this.#cancelRequested) {
|
|
679
|
-
throw new Error('cancel was not requested, but no value present at return');
|
|
680
|
-
}
|
|
681
|
-
|
|
667
|
+
if (subtaskValue === null && this.#cancelRequested) {
|
|
682
668
|
if (this.#state === AsyncSubtask.State.STARTING) {
|
|
683
669
|
this.#state = AsyncSubtask.State.CANCELLED_BEFORE_STARTED;
|
|
684
670
|
} else {
|
|
@@ -1348,6 +1334,7 @@ class Waitable {
|
|
|
1348
1334
|
|
|
1349
1335
|
function rscTableCreateOwn(table, rep) {
|
|
1350
1336
|
const free = table[0] & ~T_FLAG;
|
|
1337
|
+
table._createdReps.add(rep);
|
|
1351
1338
|
if (free === 0) {
|
|
1352
1339
|
table.push(0);
|
|
1353
1340
|
table.push(rep | T_FLAG);
|
|
@@ -1493,8 +1480,6 @@ class Waitable {
|
|
|
1493
1480
|
|
|
1494
1481
|
#parentSubtask = null;
|
|
1495
1482
|
|
|
1496
|
-
#needsExclusiveLock = false;
|
|
1497
|
-
|
|
1498
1483
|
#errHandling;
|
|
1499
1484
|
|
|
1500
1485
|
#backpressurePromise;
|
|
@@ -1569,7 +1554,6 @@ class Waitable {
|
|
|
1569
1554
|
|
|
1570
1555
|
if (opts.parentSubtask) { this.#parentSubtask = opts.parentSubtask; }
|
|
1571
1556
|
|
|
1572
|
-
this.#needsExclusiveLock = this.isSync() || !this.hasCallback();
|
|
1573
1557
|
|
|
1574
1558
|
if (opts.errHandling) { this.#errHandling = opts.errHandling; }
|
|
1575
1559
|
}
|
|
@@ -1643,8 +1627,12 @@ class Waitable {
|
|
|
1643
1627
|
}
|
|
1644
1628
|
|
|
1645
1629
|
async runCallbackFn(...args) {
|
|
1646
|
-
if (!this.#callbackFn) { throw new Error('
|
|
1647
|
-
return
|
|
1630
|
+
if (!this.#callbackFn) { throw new Error('no callback function has been set for task'); }
|
|
1631
|
+
return _withGlobalCurrentTaskMetaAsync({
|
|
1632
|
+
taskID: this.#id,
|
|
1633
|
+
componentIdx: this.#componentIdx,
|
|
1634
|
+
fn: () => { return this.#callbackFn.apply(null, args); }
|
|
1635
|
+
});
|
|
1648
1636
|
}
|
|
1649
1637
|
|
|
1650
1638
|
getCalleeParams() {
|
|
@@ -1675,6 +1663,11 @@ class Waitable {
|
|
|
1675
1663
|
enterSync() {
|
|
1676
1664
|
if (this.needsExclusiveLock()) {
|
|
1677
1665
|
const cstate = getOrCreateAsyncState(this.#componentIdx);
|
|
1666
|
+
// TODO(???): it is *very possible* for a the line below to fail if
|
|
1667
|
+
// an async function is already running (and holding the exclusive lock)
|
|
1668
|
+
//
|
|
1669
|
+
// It's not really possible to fix this unless we turn every sync export into
|
|
1670
|
+
// an async export that will use the regular async enabled `enter()`.
|
|
1678
1671
|
cstate.exclusiveLock();
|
|
1679
1672
|
}
|
|
1680
1673
|
return true;
|
|
@@ -1685,6 +1678,7 @@ class Waitable {
|
|
|
1685
1678
|
taskID: this.#id,
|
|
1686
1679
|
componentIdx: this.#componentIdx,
|
|
1687
1680
|
subtaskID: this.getParentSubtask()?.id(),
|
|
1681
|
+
entryFnName: this.#entryFnName,
|
|
1688
1682
|
});
|
|
1689
1683
|
|
|
1690
1684
|
if (this.#entered) {
|
|
@@ -1693,12 +1687,14 @@ class Waitable {
|
|
|
1693
1687
|
|
|
1694
1688
|
const cstate = getOrCreateAsyncState(this.#componentIdx);
|
|
1695
1689
|
|
|
1690
|
+
await cstate.nextTaskExecutionSlot({ task: this });
|
|
1691
|
+
|
|
1696
1692
|
// If a task is either synchronous or host-provided (e.g. a host import, whether sync or async)
|
|
1697
1693
|
// then we can avoid component-relevant tracking and immediately enter
|
|
1698
1694
|
if (this.isSync() || opts?.isHost) {
|
|
1699
1695
|
this.#entered = true;
|
|
1700
1696
|
|
|
1701
|
-
// TODO(breaking): remove once manually-
|
|
1697
|
+
// TODO(breaking): remove once manually-specifying async fns is removed
|
|
1702
1698
|
// It is currently possible for an actually sync export to be specified
|
|
1703
1699
|
// as async via JSPI
|
|
1704
1700
|
if (this.#isManualAsync) {
|
|
@@ -1708,11 +1704,15 @@ class Waitable {
|
|
|
1708
1704
|
return this.#entered;
|
|
1709
1705
|
}
|
|
1710
1706
|
|
|
1711
|
-
|
|
1707
|
+
// Perform intial backpressure check
|
|
1708
|
+
if (cstate.hasBackpressure() || this.needsExclusiveLock() && cstate.isExclusivelyLocked()) {
|
|
1712
1709
|
cstate.addBackpressureWaiter();
|
|
1713
1710
|
|
|
1714
1711
|
const result = await this.waitUntil({
|
|
1715
|
-
readyFn: () =>
|
|
1712
|
+
readyFn: () => {
|
|
1713
|
+
return !(cstate.hasBackpressure()
|
|
1714
|
+
|| this.needsExclusiveLock() && cstate.isExclusivelyLocked());
|
|
1715
|
+
},
|
|
1716
1716
|
cancellable: true,
|
|
1717
1717
|
});
|
|
1718
1718
|
|
|
@@ -1724,7 +1724,32 @@ class Waitable {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
}
|
|
1726
1726
|
|
|
1727
|
-
|
|
1727
|
+
// Lock the component state or keep trying until we can/do
|
|
1728
|
+
try {
|
|
1729
|
+
if (this.needsExclusiveLock()) { cstate.exclusiveLock(); }
|
|
1730
|
+
} catch {
|
|
1731
|
+
// Continuously attempt to lock until we can
|
|
1732
|
+
while (cstate.hasBackpressure() || this.needsExclusiveLock() && cstate.isExclusivelyLocked()) {
|
|
1733
|
+
try {
|
|
1734
|
+
if (this.needsExclusiveLock()) { cstate.exclusiveLock(); }
|
|
1735
|
+
break;
|
|
1736
|
+
} catch(err) {
|
|
1737
|
+
cstate.addBackpressureWaiter();
|
|
1738
|
+
const result = await this.waitUntil({
|
|
1739
|
+
readyFn: () => {
|
|
1740
|
+
return !(cstate.hasBackpressure()
|
|
1741
|
+
|| this.needsExclusiveLock() && cstate.isExclusivelyLocked());
|
|
1742
|
+
},
|
|
1743
|
+
cancellable: true,
|
|
1744
|
+
});
|
|
1745
|
+
cstate.removeBackpressureWaiter();
|
|
1746
|
+
if (result === AsyncTask.BlockResult.CANCELLED) {
|
|
1747
|
+
this.cancel();
|
|
1748
|
+
return false;
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1728
1753
|
|
|
1729
1754
|
this.#entered = true;
|
|
1730
1755
|
return this.#entered;
|
|
@@ -1735,38 +1760,19 @@ class Waitable {
|
|
|
1735
1760
|
isResolved() { return this.#state === AsyncTask.State.RESOLVED; }
|
|
1736
1761
|
|
|
1737
1762
|
async waitUntil(opts) {
|
|
1738
|
-
const { readyFn,
|
|
1739
|
-
_debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id,
|
|
1740
|
-
|
|
1741
|
-
const state = getOrCreateAsyncState(this.#componentIdx);
|
|
1742
|
-
const wset = state.handles.get(waitableSetRep);
|
|
1743
|
-
|
|
1744
|
-
let event;
|
|
1763
|
+
const { readyFn, cancellable } = opts;
|
|
1764
|
+
_debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id, cancellable });
|
|
1745
1765
|
|
|
1746
|
-
|
|
1766
|
+
// TODO(fix): check for cancel
|
|
1767
|
+
// TODO(fix): determinism
|
|
1768
|
+
// TODO(threads): add this thread to waiting list
|
|
1747
1769
|
|
|
1748
1770
|
const keepGoing = await this.suspendUntil({
|
|
1749
|
-
readyFn
|
|
1750
|
-
const hasPendingEvent = wset.hasPendingEvent();
|
|
1751
|
-
const ready = readyFn();
|
|
1752
|
-
return ready && hasPendingEvent;
|
|
1753
|
-
},
|
|
1771
|
+
readyFn,
|
|
1754
1772
|
cancellable,
|
|
1755
1773
|
});
|
|
1756
1774
|
|
|
1757
|
-
|
|
1758
|
-
event = wset.getPendingEvent();
|
|
1759
|
-
} else {
|
|
1760
|
-
event = {
|
|
1761
|
-
code: ASYNC_EVENT_CODE.TASK_CANCELLED,
|
|
1762
|
-
payload0: 0,
|
|
1763
|
-
payload1: 0,
|
|
1764
|
-
};
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
wset.decrementNumWaiting();
|
|
1768
|
-
|
|
1769
|
-
return event;
|
|
1775
|
+
return keepGoing;
|
|
1770
1776
|
}
|
|
1771
1777
|
|
|
1772
1778
|
async yieldUntil(opts) {
|
|
@@ -1807,9 +1813,8 @@ class Waitable {
|
|
|
1807
1813
|
|
|
1808
1814
|
const ready = readyFn();
|
|
1809
1815
|
if (ready && ASYNC_DETERMINISM === 'random') {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
return true;
|
|
1816
|
+
const coinFlip = _coinFlip();
|
|
1817
|
+
if (coinFlip) { return true }
|
|
1813
1818
|
}
|
|
1814
1819
|
|
|
1815
1820
|
const keepGoing = await this.immediateSuspend({ cancellable, readyFn });
|
|
@@ -1936,7 +1941,6 @@ class Waitable {
|
|
|
1936
1941
|
|
|
1937
1942
|
// TODO: do cleanup here to reset the machinery so we can run again?
|
|
1938
1943
|
|
|
1939
|
-
|
|
1940
1944
|
this.cancel({ error: taskErr });
|
|
1941
1945
|
}
|
|
1942
1946
|
|
|
@@ -1978,7 +1982,7 @@ class Waitable {
|
|
|
1978
1982
|
}
|
|
1979
1983
|
}
|
|
1980
1984
|
|
|
1981
|
-
exit() {
|
|
1985
|
+
exit(args) {
|
|
1982
1986
|
_debugLog('[AsyncTask#exit()]', {
|
|
1983
1987
|
componentIdx: this.#componentIdx,
|
|
1984
1988
|
taskID: this.#id,
|
|
@@ -2013,8 +2017,10 @@ class Waitable {
|
|
|
2013
2017
|
if (!state) { throw new Error('missing async state for component [' + this.#componentIdx + ']'); }
|
|
2014
2018
|
|
|
2015
2019
|
// Exempt the host from exclusive lock check
|
|
2016
|
-
if (this.#componentIdx !== -1 &&
|
|
2017
|
-
|
|
2020
|
+
if (this.#componentIdx !== -1 && !args?.skipExclusiveLockCheck) {
|
|
2021
|
+
if (this.needsExclusiveLock() && !state.isExclusivelyLocked()) {
|
|
2022
|
+
throw new Error(`task [${this.#id}] exit: component [${this.#componentIdx}] should have been exclusively locked`);
|
|
2023
|
+
}
|
|
2018
2024
|
}
|
|
2019
2025
|
|
|
2020
2026
|
state.exclusiveRelease();
|
|
@@ -2100,6 +2106,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2100
2106
|
isManualAsync,
|
|
2101
2107
|
paramLiftFns,
|
|
2102
2108
|
resultLowerFns,
|
|
2109
|
+
hasResultPointer,
|
|
2103
2110
|
funcTypeIsAsync,
|
|
2104
2111
|
metadata,
|
|
2105
2112
|
memoryIdx,
|
|
@@ -2174,6 +2181,10 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2174
2181
|
|
|
2175
2182
|
// If there is an existing task, this should be part of a subtask
|
|
2176
2183
|
const memory = getMemoryFn();
|
|
2184
|
+
// Canonical ABI lower appends result storage as a trailing
|
|
2185
|
+
// param when async lower has any flat result, or sync lower
|
|
2186
|
+
// has more than one flat result.
|
|
2187
|
+
const resultPtr = hasResultPointer ? params[params.length - 1] : undefined;
|
|
2177
2188
|
const subtask = task.createSubtask({
|
|
2178
2189
|
componentIdx,
|
|
2179
2190
|
parentTask: task,
|
|
@@ -2183,8 +2194,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2183
2194
|
callMetadata: {
|
|
2184
2195
|
memoryIdx,
|
|
2185
2196
|
memory,
|
|
2186
|
-
realloc: getReallocFn(),
|
|
2187
|
-
|
|
2197
|
+
realloc: getReallocFn?.(),
|
|
2198
|
+
getReallocFn,
|
|
2199
|
+
resultPtr,
|
|
2188
2200
|
lowers: resultLowerFns,
|
|
2189
2201
|
stringEncoding,
|
|
2190
2202
|
}
|
|
@@ -2235,7 +2247,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2235
2247
|
// NOTE: at this point we know that we are working with an async lowered import
|
|
2236
2248
|
|
|
2237
2249
|
const subtaskState = subtask.getStateNumber();
|
|
2238
|
-
if (subtaskState < 0 || subtaskState
|
|
2250
|
+
if (subtaskState < 0 || subtaskState >= 2**4) {
|
|
2239
2251
|
throw new Error('invalid subtask state, out of valid range');
|
|
2240
2252
|
}
|
|
2241
2253
|
|
|
@@ -2334,7 +2346,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2334
2346
|
let val;
|
|
2335
2347
|
|
|
2336
2348
|
if (ctx.useDirectParams) {
|
|
2337
|
-
if (params.length === 0) { throw new Error('expected at least a single i32 argument'); }
|
|
2349
|
+
if (ctx.params.length === 0) { throw new Error('expected at least a single i32 argument'); }
|
|
2338
2350
|
val = ctx.params[0];
|
|
2339
2351
|
ctx.params = ctx.params.slice(1);
|
|
2340
2352
|
return [val, ctx];
|
|
@@ -2490,7 +2502,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2490
2502
|
caseIdx = liftRes[0];
|
|
2491
2503
|
ctx = liftRes[1];
|
|
2492
2504
|
|
|
2493
|
-
const [ tag, liftFn, size32, align32, payloadOffset32 ] = casesAndLiftFns[caseIdx];
|
|
2505
|
+
const [ tag, liftFn, size32, align32, payloadOffset32, caseFlatCount, variantFlatCount ] = casesAndLiftFns[caseIdx];
|
|
2494
2506
|
if (payloadOffset32 === undefined) { throw new Error('unexpectedly missing payload offset'); }
|
|
2495
2507
|
|
|
2496
2508
|
if (originalPtr !== undefined) {
|
|
@@ -2502,7 +2514,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2502
2514
|
val = { tag };
|
|
2503
2515
|
// NOTE: here we need to move past the entire object in memory
|
|
2504
2516
|
// despite moving to the payload which we now know is missing/unnecessary
|
|
2505
|
-
|
|
2517
|
+
if (originalPtr !== undefined) {
|
|
2518
|
+
ctx.storagePtr = originalPtr + size32;
|
|
2519
|
+
}
|
|
2506
2520
|
} else {
|
|
2507
2521
|
const [newVal, newCtx] = liftFn(ctx);
|
|
2508
2522
|
val = { tag, val: newVal };
|
|
@@ -2510,105 +2524,144 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2510
2524
|
|
|
2511
2525
|
// NOTE: Padding can be left over after doing the lift if it was less than
|
|
2512
2526
|
// space left for the payload normally.
|
|
2513
|
-
if (
|
|
2514
|
-
ctx.storagePtr = originalPtr + size32;
|
|
2527
|
+
if (originalPtr !== undefined) {
|
|
2528
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2515
2529
|
}
|
|
2516
2530
|
}
|
|
2517
2531
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2532
|
+
if (origUseParams) {
|
|
2533
|
+
if (caseFlatCount === undefined || variantFlatCount === undefined) {
|
|
2534
|
+
throw new Error('variant flat count metadata is missing');
|
|
2535
|
+
}
|
|
2536
|
+
if (caseFlatCount === null || variantFlatCount === null) {
|
|
2537
|
+
throw new Error('cannot lift variant with unknown flat count');
|
|
2538
|
+
}
|
|
2539
|
+
const remainingPayloadParams = variantFlatCount - 1 - caseFlatCount;
|
|
2540
|
+
if (remainingPayloadParams < 0) {
|
|
2541
|
+
throw new Error(`invalid variant flat count metadata`);
|
|
2542
|
+
}
|
|
2543
|
+
if (ctx.params.length < remainingPayloadParams) {
|
|
2544
|
+
throw new Error(`expected at least [${remainingPayloadParams}] remaining variant payload params, but got [${ctx.params.length}]`);
|
|
2545
|
+
}
|
|
2546
|
+
ctx.params = ctx.params.slice(remainingPayloadParams);
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
if (ctx.storagePtr !== undefined) {
|
|
2550
|
+
const rem = ctx.storagePtr % align32;
|
|
2551
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2552
|
+
}
|
|
2520
2553
|
|
|
2521
2554
|
return [val, ctx];
|
|
2522
2555
|
}
|
|
2523
2556
|
}
|
|
2524
2557
|
|
|
2525
2558
|
function _liftFlatList(meta) {
|
|
2526
|
-
const { elemLiftFn, elemSize32, elemAlign32, knownLen } = meta;
|
|
2559
|
+
const { elemLiftFn, elemSize32, elemAlign32, knownLen, typedArray } = meta;
|
|
2560
|
+
|
|
2561
|
+
const listValue =
|
|
2562
|
+
typedArray === undefined
|
|
2563
|
+
? values => values
|
|
2564
|
+
: values => new typedArray(values);
|
|
2527
2565
|
|
|
2528
2566
|
const readValuesAndReset = (ctx, originalPtr, dataPtr, len) => {
|
|
2529
2567
|
ctx.storagePtr = dataPtr;
|
|
2530
2568
|
const val = [];
|
|
2531
2569
|
for (var i = 0; i < len; i++) {
|
|
2570
|
+
const elemPtr = dataPtr + i * elemSize32;
|
|
2571
|
+
ctx.storagePtr = elemPtr;
|
|
2532
2572
|
const [res, nextCtx] = elemLiftFn(ctx);
|
|
2533
2573
|
val.push(res);
|
|
2534
2574
|
ctx = nextCtx;
|
|
2535
2575
|
|
|
2536
|
-
|
|
2537
|
-
if (rem !== 0) { ctx.storagePtr += elemAlign32 - rem; }
|
|
2576
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2538
2577
|
}
|
|
2539
2578
|
if (originalPtr !== null) { ctx.storagePtr = originalPtr; }
|
|
2540
|
-
return [val, ctx];
|
|
2579
|
+
return [listValue(val), ctx];
|
|
2541
2580
|
};
|
|
2542
2581
|
|
|
2543
|
-
// TODO(fix): special case for u8/u16/etc into appropriate type
|
|
2544
|
-
|
|
2545
2582
|
return function _liftFlatListInner(ctx) {
|
|
2546
2583
|
_debugLog('[_liftFlatList()] args', { ctx });
|
|
2547
2584
|
|
|
2548
2585
|
let liftResults;
|
|
2549
2586
|
if (knownLen !== undefined) { // list with known length
|
|
2550
|
-
|
|
2551
2587
|
if (ctx.useDirectParams) {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2588
|
+
if (ctx.memory === null) {
|
|
2589
|
+
// If this lift should be using direct params,
|
|
2590
|
+
// and the memory is missing, we are in the case where
|
|
2591
|
+
// a fixed length list (or other value) is being passed only
|
|
2592
|
+
// via parameters to the function.
|
|
2593
|
+
//
|
|
2594
|
+
// Normally, we would expect to use the direct parameters as a
|
|
2595
|
+
// memory location + size, but in this case, *all* values are being passed directly,
|
|
2596
|
+
// via params.
|
|
2597
|
+
//
|
|
2598
|
+
_debugLog('memory unexpectedly missing while lifting unknown length list', { ctx });
|
|
2599
|
+
liftResults = [listValue(ctx.params.slice(0, knownLen)), ctx];
|
|
2600
|
+
ctx.params = ctx.params.slice(knownLen);
|
|
2601
|
+
} else {
|
|
2602
|
+
// in-memory list with unknown length w/ direct params
|
|
2603
|
+
const dataPtr = ctx.params[0];
|
|
2604
|
+
ctx.params = ctx.params.slice(1);
|
|
2605
|
+
|
|
2606
|
+
ctx.useDirectParams = false;
|
|
2607
|
+
const originalPtr = ctx.storagePtr;
|
|
2608
|
+
ctx.storageLen = knownLen * elemSize32;
|
|
2609
|
+
|
|
2610
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, knownLen);
|
|
2611
|
+
|
|
2612
|
+
ctx.useDirectParams = true;
|
|
2613
|
+
ctx.storagePtr = undefined;
|
|
2614
|
+
ctx.storageLen = undefined;
|
|
2615
|
+
}
|
|
2616
|
+
} else { // indirect params
|
|
2617
|
+
if (ctx.memory === null) {
|
|
2618
|
+
_debugLog('memory unexpectedly missing while lifting known length list', { knownLen, ctx });
|
|
2619
|
+
throw new Error(`memory missing while lifting known length (${knownLen}) list`);
|
|
2571
2620
|
}
|
|
2572
2621
|
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
if (ctx.useDirectParams) {
|
|
2576
|
-
// unknown length list ptr w/ direct params
|
|
2577
|
-
const dataPtr = ctx.params[0];
|
|
2578
|
-
const len = ctx.params[1];
|
|
2579
|
-
ctx.params = ctx.params.slice(2);
|
|
2580
|
-
|
|
2581
|
-
ctx.useDirectParams = false;
|
|
2582
|
-
const originalPtr = ctx.storagePtr;
|
|
2583
|
-
ctx.storageLen = len * elemSize32;
|
|
2584
|
-
|
|
2585
|
-
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2586
|
-
|
|
2587
|
-
ctx.useDirectParams = true;
|
|
2588
|
-
ctx.storagePtr = null;
|
|
2589
|
-
ctx.storageLen = null;
|
|
2590
|
-
|
|
2591
|
-
} else {
|
|
2592
|
-
// unknown length list ptr w/ in-memory params
|
|
2593
|
-
ctx.storageLen = 8;
|
|
2594
|
-
|
|
2595
|
-
const dataPtrLiftRes = _liftFlatU32(ctx);
|
|
2596
|
-
const dataPtr = dataPtrLiftRes[0];
|
|
2597
|
-
ctx = dataPtrLiftRes[1];
|
|
2598
|
-
|
|
2599
|
-
const lenLiftRes = _liftFlatU32(ctx);
|
|
2600
|
-
const len = lenLiftRes[0];
|
|
2601
|
-
ctx = lenLiftRes[1];
|
|
2602
|
-
|
|
2603
|
-
const originalPtr = ctx.storagePtr;
|
|
2604
|
-
ctx.storagePtr = dataPtr;
|
|
2605
|
-
|
|
2606
|
-
ctx.storageLen = len * elemSize32;
|
|
2607
|
-
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2622
|
+
ctx.storageLen = knownLen * elemSize32;
|
|
2623
|
+
liftResults = readValuesAndReset(ctx, null, ctx.storagePtr, knownLen);
|
|
2608
2624
|
}
|
|
2609
|
-
|
|
2625
|
+
|
|
2626
|
+
} else { // unknown length list
|
|
2610
2627
|
|
|
2611
|
-
|
|
2628
|
+
if (ctx.useDirectParams) {
|
|
2629
|
+
// unknown length list ptr w/ direct params
|
|
2630
|
+
const dataPtr = ctx.params[0];
|
|
2631
|
+
const len = ctx.params[1];
|
|
2632
|
+
ctx.params = ctx.params.slice(2);
|
|
2633
|
+
|
|
2634
|
+
ctx.useDirectParams = false;
|
|
2635
|
+
const originalPtr = ctx.storagePtr;
|
|
2636
|
+
ctx.storageLen = len * elemSize32;
|
|
2637
|
+
|
|
2638
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2639
|
+
|
|
2640
|
+
ctx.useDirectParams = true;
|
|
2641
|
+
ctx.storagePtr = undefined;
|
|
2642
|
+
ctx.storageLen = undefined;
|
|
2643
|
+
|
|
2644
|
+
} else {
|
|
2645
|
+
// unknown length list ptr w/ in-memory params
|
|
2646
|
+
ctx.storageLen = 8;
|
|
2647
|
+
|
|
2648
|
+
const dataPtrLiftRes = _liftFlatU32(ctx);
|
|
2649
|
+
const dataPtr = dataPtrLiftRes[0];
|
|
2650
|
+
ctx = dataPtrLiftRes[1];
|
|
2651
|
+
|
|
2652
|
+
const lenLiftRes = _liftFlatU32(ctx);
|
|
2653
|
+
const len = lenLiftRes[0];
|
|
2654
|
+
ctx = lenLiftRes[1];
|
|
2655
|
+
|
|
2656
|
+
const originalPtr = ctx.storagePtr;
|
|
2657
|
+
ctx.storagePtr = dataPtr;
|
|
2658
|
+
|
|
2659
|
+
ctx.storageLen = len * elemSize32;
|
|
2660
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
return liftResults;
|
|
2612
2665
|
}
|
|
2613
2666
|
}
|
|
2614
2667
|
|
|
@@ -2773,14 +2826,29 @@ function _lowerFlatStringUTF16(ctx) {
|
|
|
2773
2826
|
ctx.storagePtr += len;
|
|
2774
2827
|
}
|
|
2775
2828
|
|
|
2776
|
-
function _lowerFlatRecord(
|
|
2829
|
+
function _lowerFlatRecord(meta) {
|
|
2830
|
+
const { fieldMetas, size32: recordSize32, align32: recordAlign32 } = meta;
|
|
2777
2831
|
return function _lowerFlatRecordInner(ctx) {
|
|
2778
2832
|
_debugLog('[_lowerFlatRecord()] args', { ctx });
|
|
2779
2833
|
|
|
2834
|
+
const originalPtr = ctx.storagePtr;
|
|
2780
2835
|
const r = ctx.vals[0];
|
|
2781
2836
|
for (const [tag, lowerFn, size32, align32 ] of fieldMetas) {
|
|
2837
|
+
const rem = ctx.storagePtr % align32;
|
|
2838
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2839
|
+
|
|
2840
|
+
const fieldPtr = ctx.storagePtr;
|
|
2782
2841
|
ctx.vals = [r[tag]];
|
|
2783
2842
|
lowerFn(ctx);
|
|
2843
|
+
|
|
2844
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, fieldPtr + size32);
|
|
2845
|
+
}
|
|
2846
|
+
|
|
2847
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + recordSize32);
|
|
2848
|
+
|
|
2849
|
+
const rem = ctx.storagePtr % recordAlign32;
|
|
2850
|
+
if (rem !== 0) {
|
|
2851
|
+
ctx.storagePtr += recordAlign32 - rem;
|
|
2784
2852
|
}
|
|
2785
2853
|
}
|
|
2786
2854
|
}
|
|
@@ -2821,16 +2889,10 @@ function _lowerFlatVariant(lowerMetas) {
|
|
|
2821
2889
|
ctx.vals = [val];
|
|
2822
2890
|
if (lowerFn) { lowerFn(ctx); }
|
|
2823
2891
|
|
|
2824
|
-
|
|
2892
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2825
2893
|
|
|
2826
2894
|
const rem = ctx.storagePtr % align32;
|
|
2827
|
-
if (rem !== 0) {
|
|
2828
|
-
const pad = align32 - rem;
|
|
2829
|
-
ctx.storagePtr += pad;
|
|
2830
|
-
bytesWritten += pad;
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
ctx.storagePtr += bytesWritten;
|
|
2895
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2834
2896
|
}
|
|
2835
2897
|
}
|
|
2836
2898
|
|
|
@@ -2864,16 +2926,16 @@ function _lowerFlatList(meta) {
|
|
|
2864
2926
|
stringEncoding: ctx.stringEncoding,
|
|
2865
2927
|
};
|
|
2866
2928
|
for (let idx = 0; idx < list.length; idx++) {
|
|
2929
|
+
const elemPtr = storagePtr + idx * elemSize32;
|
|
2930
|
+
lowerCtx.storagePtr = elemPtr;
|
|
2867
2931
|
lowerCtx.vals = list.slice(idx, idx+1);
|
|
2868
2932
|
elemLowerFn(lowerCtx);
|
|
2933
|
+
lowerCtx.storagePtr = Math.max(lowerCtx.storagePtr, elemPtr + elemSize32);
|
|
2869
2934
|
}
|
|
2870
|
-
|
|
2871
|
-
const bytesLowered = lowerCtx.storagePtr - ctx.storagePtr;
|
|
2872
2935
|
ctx.storagePtr = lowerCtx.storagePtr;
|
|
2873
2936
|
|
|
2874
2937
|
// TODO: implement parma-only known-length processing
|
|
2875
2938
|
|
|
2876
|
-
ctx.storagePtr += bytesLowered;
|
|
2877
2939
|
return;
|
|
2878
2940
|
}
|
|
2879
2941
|
|
|
@@ -2895,10 +2957,12 @@ function _lowerFlatList(meta) {
|
|
|
2895
2957
|
const origPtr = ctx.storagePtr;
|
|
2896
2958
|
ctx.storagePtr = dataPtr;
|
|
2897
2959
|
|
|
2898
|
-
|
|
2899
|
-
|
|
2960
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2961
|
+
const elemPtr = dataPtr + idx * elemSize32;
|
|
2962
|
+
ctx.storagePtr = elemPtr;
|
|
2900
2963
|
ctx.vals = [elem];
|
|
2901
2964
|
elemLowerFn(ctx);
|
|
2965
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2902
2966
|
}
|
|
2903
2967
|
|
|
2904
2968
|
ctx.storagePtr = origPtr;
|
|
@@ -2910,9 +2974,13 @@ function _lowerFlatList(meta) {
|
|
|
2910
2974
|
throw new TypeError(`invalid list input of length [${elems.length}], must be length [${knownLen}]`);
|
|
2911
2975
|
}
|
|
2912
2976
|
|
|
2913
|
-
|
|
2977
|
+
const originalPtr = ctx.storagePtr;
|
|
2978
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2979
|
+
const elemPtr = originalPtr + idx * elemSize32;
|
|
2980
|
+
ctx.storagePtr = elemPtr;
|
|
2914
2981
|
ctx.vals = [elem];
|
|
2915
2982
|
elemLowerFn(ctx);
|
|
2983
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2916
2984
|
}
|
|
2917
2985
|
}
|
|
2918
2986
|
|
|
@@ -2925,13 +2993,27 @@ function _lowerFlatList(meta) {
|
|
|
2925
2993
|
}
|
|
2926
2994
|
}
|
|
2927
2995
|
|
|
2928
|
-
function _lowerFlatTuple(
|
|
2996
|
+
function _lowerFlatTuple(meta) {
|
|
2997
|
+
const { elemLowerMetas, size32: tupleSize32, align32: tupleAlign32 } = meta;
|
|
2929
2998
|
return function _lowerFlatTupleInner(ctx) {
|
|
2930
2999
|
_debugLog('[_lowerFlatTuple()] args', { ctx });
|
|
3000
|
+
const originalPtr = ctx.storagePtr;
|
|
2931
3001
|
const tuple = ctx.vals[0];
|
|
2932
3002
|
for (const [idx, [ lowerFn, size32, align32 ]] of elemLowerMetas.entries()) {
|
|
3003
|
+
const rem = ctx.storagePtr % align32;
|
|
3004
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
3005
|
+
|
|
3006
|
+
const elemPtr = ctx.storagePtr;
|
|
2933
3007
|
ctx.vals = [tuple[idx]];
|
|
2934
3008
|
lowerFn(ctx);
|
|
3009
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + size32);
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + tupleSize32);
|
|
3013
|
+
|
|
3014
|
+
const rem = ctx.storagePtr % tupleAlign32;
|
|
3015
|
+
if (rem !== 0) {
|
|
3016
|
+
ctx.storagePtr += tupleAlign32 - rem;
|
|
2935
3017
|
}
|
|
2936
3018
|
}
|
|
2937
3019
|
}
|
|
@@ -2945,10 +3027,14 @@ function _lowerFlatFlags(meta) {
|
|
|
2945
3027
|
|
|
2946
3028
|
let flagObj = ctx.vals[0];
|
|
2947
3029
|
let flagValue = 0;
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
3030
|
+
if (typeof flagObj === 'object' && flagObj !== null) {
|
|
3031
|
+
for (const [idx, name] of names.entries()) {
|
|
3032
|
+
if (flagObj[name] === true) {
|
|
3033
|
+
flagValue |= 1 << idx;
|
|
3034
|
+
}
|
|
2951
3035
|
}
|
|
3036
|
+
} else if (flagObj !== null && flagObj !== undefined) {
|
|
3037
|
+
throw new TypeError('only an object, undefined or null can be converted to flags');
|
|
2952
3038
|
}
|
|
2953
3039
|
|
|
2954
3040
|
const rem = ctx.storagePtr % align32;
|
|
@@ -3220,8 +3306,6 @@ class ComponentAsyncState {
|
|
|
3220
3306
|
this.#locked = locked;
|
|
3221
3307
|
}
|
|
3222
3308
|
|
|
3223
|
-
// TODO(fix): we might want to check for pre-locked status here, we should be deterministically
|
|
3224
|
-
// going from locked -> unlocked and vice versa
|
|
3225
3309
|
exclusiveLock() {
|
|
3226
3310
|
_debugLog('[ComponentAsyncState#exclusiveLock()]', {
|
|
3227
3311
|
locked: this.#locked,
|
|
@@ -3254,6 +3338,54 @@ class ComponentAsyncState {
|
|
|
3254
3338
|
this.#onExclusiveReleaseHandlers.push(fn);
|
|
3255
3339
|
}
|
|
3256
3340
|
|
|
3341
|
+
// nextTaskPromise & nextTaskQueue are used to await current task completion and queues
|
|
3342
|
+
// any tasks attempting to enter() and complete.
|
|
3343
|
+
//
|
|
3344
|
+
// see: nextTaskExecutionSlot()
|
|
3345
|
+
//
|
|
3346
|
+
// TODO(threads): this should be unnecessary once threads are properly implemented,
|
|
3347
|
+
// as the task.enter() logic should suffice (it should be guaranteed that we cannot re-enter
|
|
3348
|
+
// unless the task in question is the current task in the thread execution, and only one can
|
|
3349
|
+
// run at a time)
|
|
3350
|
+
#nextTaskPromise = Promise.resolve(true);
|
|
3351
|
+
#nextTaskQueue = [];
|
|
3352
|
+
|
|
3353
|
+
async nextTaskExecutionSlot(args) {
|
|
3354
|
+
const { task } = args;
|
|
3355
|
+
|
|
3356
|
+
const placeholder = {
|
|
3357
|
+
completed: false,
|
|
3358
|
+
task,
|
|
3359
|
+
promise: task.exitPromise().then(() => {
|
|
3360
|
+
placeholder.completed = true;
|
|
3361
|
+
}),
|
|
3362
|
+
};
|
|
3363
|
+
this.#nextTaskQueue.push(placeholder);
|
|
3364
|
+
|
|
3365
|
+
let next;
|
|
3366
|
+
while (true) {
|
|
3367
|
+
await this.#nextTaskPromise;
|
|
3368
|
+
|
|
3369
|
+
next = this.#nextTaskQueue.find(placeholder => !placeholder.completed);
|
|
3370
|
+
|
|
3371
|
+
// This task is next in the queue, we can continue
|
|
3372
|
+
if (next === undefined || next === placeholder) {
|
|
3373
|
+
this.#nextTaskPromise = next.promise;
|
|
3374
|
+
if (this.#nextTaskQueue.length > 1000) {
|
|
3375
|
+
this.#nextTaskQueue = this.#nextTaskQueue.filter(p => !p.completed);
|
|
3376
|
+
if (this.#nextTaskQueue.length > 1000) {
|
|
3377
|
+
_debugLog('[ComponentAsyncState#()nextTaskExecutionSlot] next task queue length > 1000 even after cleanup, tasks may be leaking');
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
break;
|
|
3381
|
+
}
|
|
3382
|
+
|
|
3383
|
+
// If we get here, this task was *not* next in the queue, continue waiting
|
|
3384
|
+
// (at this point the task that *is* next will likely have already set itself
|
|
3385
|
+
// as this.#nextTaskPromise)
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3388
|
+
|
|
3257
3389
|
#getSuspendedTaskMeta(taskID) {
|
|
3258
3390
|
return this.#suspendedTasksByTaskID.get(taskID);
|
|
3259
3391
|
}
|
|
@@ -3699,7 +3831,12 @@ class ComponentAsyncState {
|
|
|
3699
3831
|
|
|
3700
3832
|
}
|
|
3701
3833
|
|
|
3702
|
-
const base64Compile = str => WebAssembly.compile(
|
|
3834
|
+
const base64Compile = str => WebAssembly.compile(
|
|
3835
|
+
typeof Buffer !== 'undefined'
|
|
3836
|
+
? Buffer.from(str, 'base64')
|
|
3837
|
+
: Uint8Array.from(atob(str), b => b.charCodeAt(0))
|
|
3838
|
+
);
|
|
3839
|
+
|
|
3703
3840
|
|
|
3704
3841
|
const isNode = typeof process !== 'undefined' && process.versions && process.versions.node;
|
|
3705
3842
|
let _fs;
|
|
@@ -3717,7 +3854,8 @@ const symbolRscHandle = Symbol('handle');
|
|
|
3717
3854
|
|
|
3718
3855
|
const symbolRscRep = Symbol.for('cabiRep');
|
|
3719
3856
|
|
|
3720
|
-
const
|
|
3857
|
+
const HANDLE_TABLES= [];
|
|
3858
|
+
|
|
3721
3859
|
|
|
3722
3860
|
class ComponentError extends Error {
|
|
3723
3861
|
constructor (value) {
|
|
@@ -3746,10 +3884,15 @@ const instantiateCore = WebAssembly.instantiate;
|
|
|
3746
3884
|
|
|
3747
3885
|
let exports0;
|
|
3748
3886
|
let exports1;
|
|
3887
|
+
|
|
3749
3888
|
const handleTable2 = [T_FLAG, 0];
|
|
3889
|
+
handleTable2._createdReps = new Set();
|
|
3890
|
+
|
|
3891
|
+
|
|
3750
3892
|
const captureTable2= new Map();
|
|
3751
|
-
let captureCnt2
|
|
3752
|
-
|
|
3893
|
+
let captureCnt2= 0;
|
|
3894
|
+
|
|
3895
|
+
HANDLE_TABLES[2] = handleTable2;
|
|
3753
3896
|
|
|
3754
3897
|
const _trampoline5 = function() {
|
|
3755
3898
|
_debugLog('[iface="wasi:cli/stderr@0.2.3", function="get-stderr"] [Instruction::CallInterface] (sync, @ enter)');
|
|
@@ -3761,11 +3904,11 @@ const _trampoline5 = function() {
|
|
|
3761
3904
|
|
|
3762
3905
|
const createTask = () => {
|
|
3763
3906
|
const results = createNewCurrentTask({
|
|
3764
|
-
componentIdx: -1,
|
|
3907
|
+
componentIdx: -1,
|
|
3765
3908
|
isAsync: false,
|
|
3766
3909
|
entryFnName: 'getStderr',
|
|
3767
3910
|
getCallbackFn: () => null,
|
|
3768
|
-
callbackFnName:
|
|
3911
|
+
callbackFnName: null,
|
|
3769
3912
|
errHandling: 'none',
|
|
3770
3913
|
callingWasmExport: false,
|
|
3771
3914
|
});
|
|
@@ -3773,7 +3916,11 @@ const _trampoline5 = function() {
|
|
|
3773
3916
|
};
|
|
3774
3917
|
|
|
3775
3918
|
taskCreation: {
|
|
3776
|
-
parentTask = getCurrentTask(
|
|
3919
|
+
parentTask = getCurrentTask(
|
|
3920
|
+
0,
|
|
3921
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
3922
|
+
)?.task;
|
|
3923
|
+
|
|
3777
3924
|
if (!parentTask) {
|
|
3778
3925
|
createTask();
|
|
3779
3926
|
break taskCreation;
|
|
@@ -3791,12 +3938,25 @@ const _trampoline5 = function() {
|
|
|
3791
3938
|
}
|
|
3792
3939
|
|
|
3793
3940
|
const started = task.enterSync();
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3941
|
+
|
|
3942
|
+
let ret;
|
|
3943
|
+
|
|
3944
|
+
try {
|
|
3945
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
3946
|
+
componentIdx: task.componentIdx(),
|
|
3947
|
+
taskID: task.id(),
|
|
3948
|
+
fn: () => getStderr(),
|
|
3949
|
+
})
|
|
3950
|
+
;
|
|
3951
|
+
} catch (err) {
|
|
3952
|
+
|
|
3953
|
+
task.setErrored(err);
|
|
3954
|
+
task.reject(err);
|
|
3955
|
+
task.exit();
|
|
3956
|
+
throw err;
|
|
3957
|
+
|
|
3958
|
+
}
|
|
3959
|
+
|
|
3800
3960
|
|
|
3801
3961
|
if (!(ret instanceof OutputStream)) {
|
|
3802
3962
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3819,10 +3979,15 @@ const _trampoline5 = function() {
|
|
|
3819
3979
|
return handle0;
|
|
3820
3980
|
}
|
|
3821
3981
|
_trampoline5.fnName = 'wasi:cli/stderr@0.2.3#getStderr';
|
|
3982
|
+
|
|
3822
3983
|
const handleTable1 = [T_FLAG, 0];
|
|
3984
|
+
handleTable1._createdReps = new Set();
|
|
3985
|
+
|
|
3986
|
+
|
|
3823
3987
|
const captureTable1= new Map();
|
|
3824
|
-
let captureCnt1
|
|
3825
|
-
|
|
3988
|
+
let captureCnt1= 0;
|
|
3989
|
+
|
|
3990
|
+
HANDLE_TABLES[1] = handleTable1;
|
|
3826
3991
|
|
|
3827
3992
|
const _trampoline8 = function() {
|
|
3828
3993
|
_debugLog('[iface="wasi:cli/stdin@0.2.3", function="get-stdin"] [Instruction::CallInterface] (sync, @ enter)');
|
|
@@ -3834,11 +3999,11 @@ const _trampoline8 = function() {
|
|
|
3834
3999
|
|
|
3835
4000
|
const createTask = () => {
|
|
3836
4001
|
const results = createNewCurrentTask({
|
|
3837
|
-
componentIdx: -1,
|
|
4002
|
+
componentIdx: -1,
|
|
3838
4003
|
isAsync: false,
|
|
3839
4004
|
entryFnName: 'getStdin',
|
|
3840
4005
|
getCallbackFn: () => null,
|
|
3841
|
-
callbackFnName:
|
|
4006
|
+
callbackFnName: null,
|
|
3842
4007
|
errHandling: 'none',
|
|
3843
4008
|
callingWasmExport: false,
|
|
3844
4009
|
});
|
|
@@ -3846,7 +4011,11 @@ const _trampoline8 = function() {
|
|
|
3846
4011
|
};
|
|
3847
4012
|
|
|
3848
4013
|
taskCreation: {
|
|
3849
|
-
parentTask = getCurrentTask(
|
|
4014
|
+
parentTask = getCurrentTask(
|
|
4015
|
+
0,
|
|
4016
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4017
|
+
)?.task;
|
|
4018
|
+
|
|
3850
4019
|
if (!parentTask) {
|
|
3851
4020
|
createTask();
|
|
3852
4021
|
break taskCreation;
|
|
@@ -3864,12 +4033,25 @@ const _trampoline8 = function() {
|
|
|
3864
4033
|
}
|
|
3865
4034
|
|
|
3866
4035
|
const started = task.enterSync();
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
4036
|
+
|
|
4037
|
+
let ret;
|
|
4038
|
+
|
|
4039
|
+
try {
|
|
4040
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4041
|
+
componentIdx: task.componentIdx(),
|
|
4042
|
+
taskID: task.id(),
|
|
4043
|
+
fn: () => getStdin(),
|
|
4044
|
+
})
|
|
4045
|
+
;
|
|
4046
|
+
} catch (err) {
|
|
4047
|
+
|
|
4048
|
+
task.setErrored(err);
|
|
4049
|
+
task.reject(err);
|
|
4050
|
+
task.exit();
|
|
4051
|
+
throw err;
|
|
4052
|
+
|
|
4053
|
+
}
|
|
4054
|
+
|
|
3873
4055
|
|
|
3874
4056
|
if (!(ret instanceof InputStream)) {
|
|
3875
4057
|
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
@@ -3903,11 +4085,11 @@ const _trampoline9 = function() {
|
|
|
3903
4085
|
|
|
3904
4086
|
const createTask = () => {
|
|
3905
4087
|
const results = createNewCurrentTask({
|
|
3906
|
-
componentIdx: -1,
|
|
4088
|
+
componentIdx: -1,
|
|
3907
4089
|
isAsync: false,
|
|
3908
4090
|
entryFnName: 'getStdout',
|
|
3909
4091
|
getCallbackFn: () => null,
|
|
3910
|
-
callbackFnName:
|
|
4092
|
+
callbackFnName: null,
|
|
3911
4093
|
errHandling: 'none',
|
|
3912
4094
|
callingWasmExport: false,
|
|
3913
4095
|
});
|
|
@@ -3915,7 +4097,11 @@ const _trampoline9 = function() {
|
|
|
3915
4097
|
};
|
|
3916
4098
|
|
|
3917
4099
|
taskCreation: {
|
|
3918
|
-
parentTask = getCurrentTask(
|
|
4100
|
+
parentTask = getCurrentTask(
|
|
4101
|
+
0,
|
|
4102
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4103
|
+
)?.task;
|
|
4104
|
+
|
|
3919
4105
|
if (!parentTask) {
|
|
3920
4106
|
createTask();
|
|
3921
4107
|
break taskCreation;
|
|
@@ -3933,12 +4119,25 @@ const _trampoline9 = function() {
|
|
|
3933
4119
|
}
|
|
3934
4120
|
|
|
3935
4121
|
const started = task.enterSync();
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
4122
|
+
|
|
4123
|
+
let ret;
|
|
4124
|
+
|
|
4125
|
+
try {
|
|
4126
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4127
|
+
componentIdx: task.componentIdx(),
|
|
4128
|
+
taskID: task.id(),
|
|
4129
|
+
fn: () => getStdout(),
|
|
4130
|
+
})
|
|
4131
|
+
;
|
|
4132
|
+
} catch (err) {
|
|
4133
|
+
|
|
4134
|
+
task.setErrored(err);
|
|
4135
|
+
task.reject(err);
|
|
4136
|
+
task.exit();
|
|
4137
|
+
throw err;
|
|
4138
|
+
|
|
4139
|
+
}
|
|
4140
|
+
|
|
3942
4141
|
|
|
3943
4142
|
if (!(ret instanceof OutputStream)) {
|
|
3944
4143
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3992,11 +4191,11 @@ const _trampoline10 = function(arg0) {
|
|
|
3992
4191
|
|
|
3993
4192
|
const createTask = () => {
|
|
3994
4193
|
const results = createNewCurrentTask({
|
|
3995
|
-
componentIdx: -1,
|
|
4194
|
+
componentIdx: -1,
|
|
3996
4195
|
isAsync: false,
|
|
3997
4196
|
entryFnName: 'exit',
|
|
3998
4197
|
getCallbackFn: () => null,
|
|
3999
|
-
callbackFnName:
|
|
4198
|
+
callbackFnName: null,
|
|
4000
4199
|
errHandling: 'none',
|
|
4001
4200
|
callingWasmExport: false,
|
|
4002
4201
|
});
|
|
@@ -4004,7 +4203,11 @@ const _trampoline10 = function(arg0) {
|
|
|
4004
4203
|
};
|
|
4005
4204
|
|
|
4006
4205
|
taskCreation: {
|
|
4007
|
-
parentTask = getCurrentTask(
|
|
4206
|
+
parentTask = getCurrentTask(
|
|
4207
|
+
0,
|
|
4208
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4209
|
+
)?.task;
|
|
4210
|
+
|
|
4008
4211
|
if (!parentTask) {
|
|
4009
4212
|
createTask();
|
|
4010
4213
|
break taskCreation;
|
|
@@ -4022,12 +4225,25 @@ const _trampoline10 = function(arg0) {
|
|
|
4022
4225
|
}
|
|
4023
4226
|
|
|
4024
4227
|
const started = task.enterSync();
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4228
|
+
|
|
4229
|
+
let ret;
|
|
4230
|
+
|
|
4231
|
+
try {
|
|
4232
|
+
_withGlobalCurrentTaskMeta({
|
|
4233
|
+
componentIdx: task.componentIdx(),
|
|
4234
|
+
taskID: task.id(),
|
|
4235
|
+
fn: () => exit(variant0),
|
|
4236
|
+
})
|
|
4237
|
+
;
|
|
4238
|
+
} catch (err) {
|
|
4239
|
+
|
|
4240
|
+
task.setErrored(err);
|
|
4241
|
+
task.reject(err);
|
|
4242
|
+
task.exit();
|
|
4243
|
+
throw err;
|
|
4244
|
+
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4031
4247
|
_debugLog('[iface="wasi:cli/exit@0.2.3", function="exit"][Instruction::Return]', {
|
|
4032
4248
|
funcName: 'exit',
|
|
4033
4249
|
paramCount: 0,
|
|
@@ -4053,11 +4269,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4053
4269
|
|
|
4054
4270
|
const createTask = () => {
|
|
4055
4271
|
const results = createNewCurrentTask({
|
|
4056
|
-
componentIdx: -1,
|
|
4272
|
+
componentIdx: -1,
|
|
4057
4273
|
isAsync: false,
|
|
4058
4274
|
entryFnName: 'getEnvironment',
|
|
4059
4275
|
getCallbackFn: () => null,
|
|
4060
|
-
callbackFnName:
|
|
4276
|
+
callbackFnName: null,
|
|
4061
4277
|
errHandling: 'none',
|
|
4062
4278
|
callingWasmExport: false,
|
|
4063
4279
|
});
|
|
@@ -4065,7 +4281,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4065
4281
|
};
|
|
4066
4282
|
|
|
4067
4283
|
taskCreation: {
|
|
4068
|
-
parentTask = getCurrentTask(
|
|
4284
|
+
parentTask = getCurrentTask(
|
|
4285
|
+
0,
|
|
4286
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4287
|
+
)?.task;
|
|
4288
|
+
|
|
4069
4289
|
if (!parentTask) {
|
|
4070
4290
|
createTask();
|
|
4071
4291
|
break taskCreation;
|
|
@@ -4083,12 +4303,25 @@ const _trampoline11 = function(arg0) {
|
|
|
4083
4303
|
}
|
|
4084
4304
|
|
|
4085
4305
|
const started = task.enterSync();
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4306
|
+
|
|
4307
|
+
let ret;
|
|
4308
|
+
|
|
4309
|
+
try {
|
|
4310
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4311
|
+
componentIdx: task.componentIdx(),
|
|
4312
|
+
taskID: task.id(),
|
|
4313
|
+
fn: () => getEnvironment(),
|
|
4314
|
+
})
|
|
4315
|
+
;
|
|
4316
|
+
} catch (err) {
|
|
4317
|
+
|
|
4318
|
+
task.setErrored(err);
|
|
4319
|
+
task.reject(err);
|
|
4320
|
+
task.exit();
|
|
4321
|
+
throw err;
|
|
4322
|
+
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4092
4325
|
var vec3 = ret;
|
|
4093
4326
|
var len3 = vec3.length;
|
|
4094
4327
|
var result3 = realloc0(0, 0, 4, len3 * 16);
|
|
@@ -4122,10 +4355,15 @@ const _trampoline11 = function(arg0) {
|
|
|
4122
4355
|
task.exit();
|
|
4123
4356
|
}
|
|
4124
4357
|
_trampoline11.fnName = 'wasi:cli/environment@0.2.3#getEnvironment';
|
|
4358
|
+
|
|
4125
4359
|
const handleTable6 = [T_FLAG, 0];
|
|
4360
|
+
handleTable6._createdReps = new Set();
|
|
4361
|
+
|
|
4362
|
+
|
|
4126
4363
|
const captureTable6= new Map();
|
|
4127
|
-
let captureCnt6
|
|
4128
|
-
|
|
4364
|
+
let captureCnt6= 0;
|
|
4365
|
+
|
|
4366
|
+
HANDLE_TABLES[6] = handleTable6;
|
|
4129
4367
|
|
|
4130
4368
|
const _trampoline12 = function(arg0, arg1) {
|
|
4131
4369
|
var handle1 = arg0;
|
|
@@ -4148,11 +4386,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4148
4386
|
|
|
4149
4387
|
const createTask = () => {
|
|
4150
4388
|
const results = createNewCurrentTask({
|
|
4151
|
-
componentIdx: -1,
|
|
4389
|
+
componentIdx: -1,
|
|
4152
4390
|
isAsync: false,
|
|
4153
4391
|
entryFnName: 'getFlags',
|
|
4154
4392
|
getCallbackFn: () => null,
|
|
4155
|
-
callbackFnName:
|
|
4393
|
+
callbackFnName: null,
|
|
4156
4394
|
errHandling: 'result-catch-handler',
|
|
4157
4395
|
callingWasmExport: false,
|
|
4158
4396
|
});
|
|
@@ -4160,7 +4398,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4160
4398
|
};
|
|
4161
4399
|
|
|
4162
4400
|
taskCreation: {
|
|
4163
|
-
parentTask = getCurrentTask(
|
|
4401
|
+
parentTask = getCurrentTask(
|
|
4402
|
+
0,
|
|
4403
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4404
|
+
)?.task;
|
|
4405
|
+
|
|
4164
4406
|
if (!parentTask) {
|
|
4165
4407
|
createTask();
|
|
4166
4408
|
break taskCreation;
|
|
@@ -4184,7 +4426,7 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4184
4426
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4185
4427
|
componentIdx: task.componentIdx(),
|
|
4186
4428
|
taskID: task.id(),
|
|
4187
|
-
fn: () => rsc0.getFlags()
|
|
4429
|
+
fn: () => rsc0.getFlags(),
|
|
4188
4430
|
})
|
|
4189
4431
|
};
|
|
4190
4432
|
} catch (e) {
|
|
@@ -4413,11 +4655,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4413
4655
|
|
|
4414
4656
|
const createTask = () => {
|
|
4415
4657
|
const results = createNewCurrentTask({
|
|
4416
|
-
componentIdx: -1,
|
|
4658
|
+
componentIdx: -1,
|
|
4417
4659
|
isAsync: false,
|
|
4418
4660
|
entryFnName: 'getType',
|
|
4419
4661
|
getCallbackFn: () => null,
|
|
4420
|
-
callbackFnName:
|
|
4662
|
+
callbackFnName: null,
|
|
4421
4663
|
errHandling: 'result-catch-handler',
|
|
4422
4664
|
callingWasmExport: false,
|
|
4423
4665
|
});
|
|
@@ -4425,7 +4667,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4425
4667
|
};
|
|
4426
4668
|
|
|
4427
4669
|
taskCreation: {
|
|
4428
|
-
parentTask = getCurrentTask(
|
|
4670
|
+
parentTask = getCurrentTask(
|
|
4671
|
+
0,
|
|
4672
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4673
|
+
)?.task;
|
|
4674
|
+
|
|
4429
4675
|
if (!parentTask) {
|
|
4430
4676
|
createTask();
|
|
4431
4677
|
break taskCreation;
|
|
@@ -4449,7 +4695,7 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4449
4695
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4450
4696
|
componentIdx: task.componentIdx(),
|
|
4451
4697
|
taskID: task.id(),
|
|
4452
|
-
fn: () => rsc0.getType()
|
|
4698
|
+
fn: () => rsc0.getType(),
|
|
4453
4699
|
})
|
|
4454
4700
|
};
|
|
4455
4701
|
} catch (e) {
|
|
@@ -4715,11 +4961,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4715
4961
|
|
|
4716
4962
|
const createTask = () => {
|
|
4717
4963
|
const results = createNewCurrentTask({
|
|
4718
|
-
componentIdx: -1,
|
|
4964
|
+
componentIdx: -1,
|
|
4719
4965
|
isAsync: false,
|
|
4720
4966
|
entryFnName: 'metadataHash',
|
|
4721
4967
|
getCallbackFn: () => null,
|
|
4722
|
-
callbackFnName:
|
|
4968
|
+
callbackFnName: null,
|
|
4723
4969
|
errHandling: 'result-catch-handler',
|
|
4724
4970
|
callingWasmExport: false,
|
|
4725
4971
|
});
|
|
@@ -4727,7 +4973,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4727
4973
|
};
|
|
4728
4974
|
|
|
4729
4975
|
taskCreation: {
|
|
4730
|
-
parentTask = getCurrentTask(
|
|
4976
|
+
parentTask = getCurrentTask(
|
|
4977
|
+
0,
|
|
4978
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4979
|
+
)?.task;
|
|
4980
|
+
|
|
4731
4981
|
if (!parentTask) {
|
|
4732
4982
|
createTask();
|
|
4733
4983
|
break taskCreation;
|
|
@@ -4751,7 +5001,7 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4751
5001
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4752
5002
|
componentIdx: task.componentIdx(),
|
|
4753
5003
|
taskID: task.id(),
|
|
4754
|
-
fn: () => rsc0.metadataHash()
|
|
5004
|
+
fn: () => rsc0.metadataHash(),
|
|
4755
5005
|
})
|
|
4756
5006
|
};
|
|
4757
5007
|
} catch (e) {
|
|
@@ -4954,10 +5204,15 @@ task.resolve([ret]);
|
|
|
4954
5204
|
task.exit();
|
|
4955
5205
|
}
|
|
4956
5206
|
_trampoline14.fnName = 'wasi:filesystem/types@0.2.3#metadataHash';
|
|
5207
|
+
|
|
4957
5208
|
const handleTable0 = [T_FLAG, 0];
|
|
5209
|
+
handleTable0._createdReps = new Set();
|
|
5210
|
+
|
|
5211
|
+
|
|
4958
5212
|
const captureTable0= new Map();
|
|
4959
|
-
let captureCnt0
|
|
4960
|
-
|
|
5213
|
+
let captureCnt0= 0;
|
|
5214
|
+
|
|
5215
|
+
HANDLE_TABLES[0] = handleTable0;
|
|
4961
5216
|
|
|
4962
5217
|
const _trampoline15 = function(arg0, arg1) {
|
|
4963
5218
|
var handle1 = arg0;
|
|
@@ -4980,11 +5235,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4980
5235
|
|
|
4981
5236
|
const createTask = () => {
|
|
4982
5237
|
const results = createNewCurrentTask({
|
|
4983
|
-
componentIdx: -1,
|
|
5238
|
+
componentIdx: -1,
|
|
4984
5239
|
isAsync: false,
|
|
4985
5240
|
entryFnName: 'filesystemErrorCode',
|
|
4986
5241
|
getCallbackFn: () => null,
|
|
4987
|
-
callbackFnName:
|
|
5242
|
+
callbackFnName: null,
|
|
4988
5243
|
errHandling: 'none',
|
|
4989
5244
|
callingWasmExport: false,
|
|
4990
5245
|
});
|
|
@@ -4992,7 +5247,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4992
5247
|
};
|
|
4993
5248
|
|
|
4994
5249
|
taskCreation: {
|
|
4995
|
-
parentTask = getCurrentTask(
|
|
5250
|
+
parentTask = getCurrentTask(
|
|
5251
|
+
0,
|
|
5252
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5253
|
+
)?.task;
|
|
5254
|
+
|
|
4996
5255
|
if (!parentTask) {
|
|
4997
5256
|
createTask();
|
|
4998
5257
|
break taskCreation;
|
|
@@ -5010,12 +5269,25 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
5010
5269
|
}
|
|
5011
5270
|
|
|
5012
5271
|
const started = task.enterSync();
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5272
|
+
|
|
5273
|
+
let ret;
|
|
5274
|
+
|
|
5275
|
+
try {
|
|
5276
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
5277
|
+
componentIdx: task.componentIdx(),
|
|
5278
|
+
taskID: task.id(),
|
|
5279
|
+
fn: () => filesystemErrorCode(rsc0),
|
|
5280
|
+
})
|
|
5281
|
+
;
|
|
5282
|
+
} catch (err) {
|
|
5283
|
+
|
|
5284
|
+
task.setErrored(err);
|
|
5285
|
+
task.reject(err);
|
|
5286
|
+
task.exit();
|
|
5287
|
+
throw err;
|
|
5288
|
+
|
|
5289
|
+
}
|
|
5290
|
+
|
|
5019
5291
|
for (const rsc of curResourceBorrows) {
|
|
5020
5292
|
rsc[symbolRscHandle] = undefined;
|
|
5021
5293
|
}
|
|
@@ -5228,11 +5500,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5228
5500
|
|
|
5229
5501
|
const createTask = () => {
|
|
5230
5502
|
const results = createNewCurrentTask({
|
|
5231
|
-
componentIdx: -1,
|
|
5503
|
+
componentIdx: -1,
|
|
5232
5504
|
isAsync: false,
|
|
5233
5505
|
entryFnName: 'metadataHashAt',
|
|
5234
5506
|
getCallbackFn: () => null,
|
|
5235
|
-
callbackFnName:
|
|
5507
|
+
callbackFnName: null,
|
|
5236
5508
|
errHandling: 'result-catch-handler',
|
|
5237
5509
|
callingWasmExport: false,
|
|
5238
5510
|
});
|
|
@@ -5240,7 +5512,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5240
5512
|
};
|
|
5241
5513
|
|
|
5242
5514
|
taskCreation: {
|
|
5243
|
-
parentTask = getCurrentTask(
|
|
5515
|
+
parentTask = getCurrentTask(
|
|
5516
|
+
0,
|
|
5517
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5518
|
+
)?.task;
|
|
5519
|
+
|
|
5244
5520
|
if (!parentTask) {
|
|
5245
5521
|
createTask();
|
|
5246
5522
|
break taskCreation;
|
|
@@ -5264,7 +5540,7 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5264
5540
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5265
5541
|
componentIdx: task.componentIdx(),
|
|
5266
5542
|
taskID: task.id(),
|
|
5267
|
-
fn: () => rsc0.metadataHashAt(flags3, result4)
|
|
5543
|
+
fn: () => rsc0.metadataHashAt(flags3, result4),
|
|
5268
5544
|
})
|
|
5269
5545
|
};
|
|
5270
5546
|
} catch (e) {
|
|
@@ -5489,11 +5765,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5489
5765
|
|
|
5490
5766
|
const createTask = () => {
|
|
5491
5767
|
const results = createNewCurrentTask({
|
|
5492
|
-
componentIdx: -1,
|
|
5768
|
+
componentIdx: -1,
|
|
5493
5769
|
isAsync: false,
|
|
5494
5770
|
entryFnName: 'readViaStream',
|
|
5495
5771
|
getCallbackFn: () => null,
|
|
5496
|
-
callbackFnName:
|
|
5772
|
+
callbackFnName: null,
|
|
5497
5773
|
errHandling: 'result-catch-handler',
|
|
5498
5774
|
callingWasmExport: false,
|
|
5499
5775
|
});
|
|
@@ -5501,7 +5777,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5501
5777
|
};
|
|
5502
5778
|
|
|
5503
5779
|
taskCreation: {
|
|
5504
|
-
parentTask = getCurrentTask(
|
|
5780
|
+
parentTask = getCurrentTask(
|
|
5781
|
+
0,
|
|
5782
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5783
|
+
)?.task;
|
|
5784
|
+
|
|
5505
5785
|
if (!parentTask) {
|
|
5506
5786
|
createTask();
|
|
5507
5787
|
break taskCreation;
|
|
@@ -5525,7 +5805,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5525
5805
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5526
5806
|
componentIdx: task.componentIdx(),
|
|
5527
5807
|
taskID: task.id(),
|
|
5528
|
-
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
5808
|
+
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5529
5809
|
})
|
|
5530
5810
|
};
|
|
5531
5811
|
} catch (e) {
|
|
@@ -5759,11 +6039,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5759
6039
|
|
|
5760
6040
|
const createTask = () => {
|
|
5761
6041
|
const results = createNewCurrentTask({
|
|
5762
|
-
componentIdx: -1,
|
|
6042
|
+
componentIdx: -1,
|
|
5763
6043
|
isAsync: false,
|
|
5764
6044
|
entryFnName: 'writeViaStream',
|
|
5765
6045
|
getCallbackFn: () => null,
|
|
5766
|
-
callbackFnName:
|
|
6046
|
+
callbackFnName: null,
|
|
5767
6047
|
errHandling: 'result-catch-handler',
|
|
5768
6048
|
callingWasmExport: false,
|
|
5769
6049
|
});
|
|
@@ -5771,7 +6051,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5771
6051
|
};
|
|
5772
6052
|
|
|
5773
6053
|
taskCreation: {
|
|
5774
|
-
parentTask = getCurrentTask(
|
|
6054
|
+
parentTask = getCurrentTask(
|
|
6055
|
+
0,
|
|
6056
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6057
|
+
)?.task;
|
|
6058
|
+
|
|
5775
6059
|
if (!parentTask) {
|
|
5776
6060
|
createTask();
|
|
5777
6061
|
break taskCreation;
|
|
@@ -5795,7 +6079,7 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5795
6079
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5796
6080
|
componentIdx: task.componentIdx(),
|
|
5797
6081
|
taskID: task.id(),
|
|
5798
|
-
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
6082
|
+
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5799
6083
|
})
|
|
5800
6084
|
};
|
|
5801
6085
|
} catch (e) {
|
|
@@ -6029,11 +6313,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6029
6313
|
|
|
6030
6314
|
const createTask = () => {
|
|
6031
6315
|
const results = createNewCurrentTask({
|
|
6032
|
-
componentIdx: -1,
|
|
6316
|
+
componentIdx: -1,
|
|
6033
6317
|
isAsync: false,
|
|
6034
6318
|
entryFnName: 'appendViaStream',
|
|
6035
6319
|
getCallbackFn: () => null,
|
|
6036
|
-
callbackFnName:
|
|
6320
|
+
callbackFnName: null,
|
|
6037
6321
|
errHandling: 'result-catch-handler',
|
|
6038
6322
|
callingWasmExport: false,
|
|
6039
6323
|
});
|
|
@@ -6041,7 +6325,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6041
6325
|
};
|
|
6042
6326
|
|
|
6043
6327
|
taskCreation: {
|
|
6044
|
-
parentTask = getCurrentTask(
|
|
6328
|
+
parentTask = getCurrentTask(
|
|
6329
|
+
0,
|
|
6330
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6331
|
+
)?.task;
|
|
6332
|
+
|
|
6045
6333
|
if (!parentTask) {
|
|
6046
6334
|
createTask();
|
|
6047
6335
|
break taskCreation;
|
|
@@ -6065,7 +6353,7 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6065
6353
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6066
6354
|
componentIdx: task.componentIdx(),
|
|
6067
6355
|
taskID: task.id(),
|
|
6068
|
-
fn: () => rsc0.appendViaStream()
|
|
6356
|
+
fn: () => rsc0.appendViaStream(),
|
|
6069
6357
|
})
|
|
6070
6358
|
};
|
|
6071
6359
|
} catch (e) {
|
|
@@ -6277,10 +6565,15 @@ task.resolve([ret]);
|
|
|
6277
6565
|
task.exit();
|
|
6278
6566
|
}
|
|
6279
6567
|
_trampoline19.fnName = 'wasi:filesystem/types@0.2.3#appendViaStream';
|
|
6568
|
+
|
|
6280
6569
|
const handleTable5 = [T_FLAG, 0];
|
|
6570
|
+
handleTable5._createdReps = new Set();
|
|
6571
|
+
|
|
6572
|
+
|
|
6281
6573
|
const captureTable5= new Map();
|
|
6282
|
-
let captureCnt5
|
|
6283
|
-
|
|
6574
|
+
let captureCnt5= 0;
|
|
6575
|
+
|
|
6576
|
+
HANDLE_TABLES[5] = handleTable5;
|
|
6284
6577
|
|
|
6285
6578
|
const _trampoline20 = function(arg0, arg1) {
|
|
6286
6579
|
var handle1 = arg0;
|
|
@@ -6303,11 +6596,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6303
6596
|
|
|
6304
6597
|
const createTask = () => {
|
|
6305
6598
|
const results = createNewCurrentTask({
|
|
6306
|
-
componentIdx: -1,
|
|
6599
|
+
componentIdx: -1,
|
|
6307
6600
|
isAsync: false,
|
|
6308
6601
|
entryFnName: 'readDirectory',
|
|
6309
6602
|
getCallbackFn: () => null,
|
|
6310
|
-
callbackFnName:
|
|
6603
|
+
callbackFnName: null,
|
|
6311
6604
|
errHandling: 'result-catch-handler',
|
|
6312
6605
|
callingWasmExport: false,
|
|
6313
6606
|
});
|
|
@@ -6315,7 +6608,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6315
6608
|
};
|
|
6316
6609
|
|
|
6317
6610
|
taskCreation: {
|
|
6318
|
-
parentTask = getCurrentTask(
|
|
6611
|
+
parentTask = getCurrentTask(
|
|
6612
|
+
0,
|
|
6613
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6614
|
+
)?.task;
|
|
6615
|
+
|
|
6319
6616
|
if (!parentTask) {
|
|
6320
6617
|
createTask();
|
|
6321
6618
|
break taskCreation;
|
|
@@ -6339,7 +6636,7 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6339
6636
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6340
6637
|
componentIdx: task.componentIdx(),
|
|
6341
6638
|
taskID: task.id(),
|
|
6342
|
-
fn: () => rsc0.readDirectory()
|
|
6639
|
+
fn: () => rsc0.readDirectory(),
|
|
6343
6640
|
})
|
|
6344
6641
|
};
|
|
6345
6642
|
} catch (e) {
|
|
@@ -6573,11 +6870,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6573
6870
|
|
|
6574
6871
|
const createTask = () => {
|
|
6575
6872
|
const results = createNewCurrentTask({
|
|
6576
|
-
componentIdx: -1,
|
|
6873
|
+
componentIdx: -1,
|
|
6577
6874
|
isAsync: false,
|
|
6578
6875
|
entryFnName: 'stat',
|
|
6579
6876
|
getCallbackFn: () => null,
|
|
6580
|
-
callbackFnName:
|
|
6877
|
+
callbackFnName: null,
|
|
6581
6878
|
errHandling: 'result-catch-handler',
|
|
6582
6879
|
callingWasmExport: false,
|
|
6583
6880
|
});
|
|
@@ -6585,7 +6882,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6585
6882
|
};
|
|
6586
6883
|
|
|
6587
6884
|
taskCreation: {
|
|
6588
|
-
parentTask = getCurrentTask(
|
|
6885
|
+
parentTask = getCurrentTask(
|
|
6886
|
+
0,
|
|
6887
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6888
|
+
)?.task;
|
|
6889
|
+
|
|
6589
6890
|
if (!parentTask) {
|
|
6590
6891
|
createTask();
|
|
6591
6892
|
break taskCreation;
|
|
@@ -6609,7 +6910,7 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6609
6910
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6610
6911
|
componentIdx: task.componentIdx(),
|
|
6611
6912
|
taskID: task.id(),
|
|
6612
|
-
fn: () => rsc0.stat()
|
|
6913
|
+
fn: () => rsc0.stat(),
|
|
6613
6914
|
})
|
|
6614
6915
|
};
|
|
6615
6916
|
} catch (e) {
|
|
@@ -6917,11 +7218,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6917
7218
|
|
|
6918
7219
|
const createTask = () => {
|
|
6919
7220
|
const results = createNewCurrentTask({
|
|
6920
|
-
componentIdx: -1,
|
|
7221
|
+
componentIdx: -1,
|
|
6921
7222
|
isAsync: false,
|
|
6922
7223
|
entryFnName: 'statAt',
|
|
6923
7224
|
getCallbackFn: () => null,
|
|
6924
|
-
callbackFnName:
|
|
7225
|
+
callbackFnName: null,
|
|
6925
7226
|
errHandling: 'result-catch-handler',
|
|
6926
7227
|
callingWasmExport: false,
|
|
6927
7228
|
});
|
|
@@ -6929,7 +7230,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6929
7230
|
};
|
|
6930
7231
|
|
|
6931
7232
|
taskCreation: {
|
|
6932
|
-
parentTask = getCurrentTask(
|
|
7233
|
+
parentTask = getCurrentTask(
|
|
7234
|
+
0,
|
|
7235
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7236
|
+
)?.task;
|
|
7237
|
+
|
|
6933
7238
|
if (!parentTask) {
|
|
6934
7239
|
createTask();
|
|
6935
7240
|
break taskCreation;
|
|
@@ -6953,7 +7258,7 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6953
7258
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6954
7259
|
componentIdx: task.componentIdx(),
|
|
6955
7260
|
taskID: task.id(),
|
|
6956
|
-
fn: () => rsc0.statAt(flags3, result4)
|
|
7261
|
+
fn: () => rsc0.statAt(flags3, result4),
|
|
6957
7262
|
})
|
|
6958
7263
|
};
|
|
6959
7264
|
} catch (e) {
|
|
@@ -7281,11 +7586,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7281
7586
|
|
|
7282
7587
|
const createTask = () => {
|
|
7283
7588
|
const results = createNewCurrentTask({
|
|
7284
|
-
componentIdx: -1,
|
|
7589
|
+
componentIdx: -1,
|
|
7285
7590
|
isAsync: false,
|
|
7286
7591
|
entryFnName: 'openAt',
|
|
7287
7592
|
getCallbackFn: () => null,
|
|
7288
|
-
callbackFnName:
|
|
7593
|
+
callbackFnName: null,
|
|
7289
7594
|
errHandling: 'result-catch-handler',
|
|
7290
7595
|
callingWasmExport: false,
|
|
7291
7596
|
});
|
|
@@ -7293,7 +7598,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7293
7598
|
};
|
|
7294
7599
|
|
|
7295
7600
|
taskCreation: {
|
|
7296
|
-
parentTask = getCurrentTask(
|
|
7601
|
+
parentTask = getCurrentTask(
|
|
7602
|
+
0,
|
|
7603
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7604
|
+
)?.task;
|
|
7605
|
+
|
|
7297
7606
|
if (!parentTask) {
|
|
7298
7607
|
createTask();
|
|
7299
7608
|
break taskCreation;
|
|
@@ -7317,7 +7626,7 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7317
7626
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7318
7627
|
componentIdx: task.componentIdx(),
|
|
7319
7628
|
taskID: task.id(),
|
|
7320
|
-
fn: () => rsc0.openAt(flags3, result4, flags5, flags6)
|
|
7629
|
+
fn: () => rsc0.openAt(flags3, result4, flags5, flags6),
|
|
7321
7630
|
})
|
|
7322
7631
|
};
|
|
7323
7632
|
} catch (e) {
|
|
@@ -7551,11 +7860,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7551
7860
|
|
|
7552
7861
|
const createTask = () => {
|
|
7553
7862
|
const results = createNewCurrentTask({
|
|
7554
|
-
componentIdx: -1,
|
|
7863
|
+
componentIdx: -1,
|
|
7555
7864
|
isAsync: false,
|
|
7556
7865
|
entryFnName: 'readDirectoryEntry',
|
|
7557
7866
|
getCallbackFn: () => null,
|
|
7558
|
-
callbackFnName:
|
|
7867
|
+
callbackFnName: null,
|
|
7559
7868
|
errHandling: 'result-catch-handler',
|
|
7560
7869
|
callingWasmExport: false,
|
|
7561
7870
|
});
|
|
@@ -7563,7 +7872,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7563
7872
|
};
|
|
7564
7873
|
|
|
7565
7874
|
taskCreation: {
|
|
7566
|
-
parentTask = getCurrentTask(
|
|
7875
|
+
parentTask = getCurrentTask(
|
|
7876
|
+
0,
|
|
7877
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7878
|
+
)?.task;
|
|
7879
|
+
|
|
7567
7880
|
if (!parentTask) {
|
|
7568
7881
|
createTask();
|
|
7569
7882
|
break taskCreation;
|
|
@@ -7587,7 +7900,7 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7587
7900
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7588
7901
|
componentIdx: task.componentIdx(),
|
|
7589
7902
|
taskID: task.id(),
|
|
7590
|
-
fn: () => rsc0.readDirectoryEntry()
|
|
7903
|
+
fn: () => rsc0.readDirectoryEntry(),
|
|
7591
7904
|
})
|
|
7592
7905
|
};
|
|
7593
7906
|
} catch (e) {
|
|
@@ -7868,11 +8181,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7868
8181
|
|
|
7869
8182
|
const createTask = () => {
|
|
7870
8183
|
const results = createNewCurrentTask({
|
|
7871
|
-
componentIdx: -1,
|
|
8184
|
+
componentIdx: -1,
|
|
7872
8185
|
isAsync: false,
|
|
7873
8186
|
entryFnName: 'read',
|
|
7874
8187
|
getCallbackFn: () => null,
|
|
7875
|
-
callbackFnName:
|
|
8188
|
+
callbackFnName: null,
|
|
7876
8189
|
errHandling: 'result-catch-handler',
|
|
7877
8190
|
callingWasmExport: false,
|
|
7878
8191
|
});
|
|
@@ -7880,7 +8193,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7880
8193
|
};
|
|
7881
8194
|
|
|
7882
8195
|
taskCreation: {
|
|
7883
|
-
parentTask = getCurrentTask(
|
|
8196
|
+
parentTask = getCurrentTask(
|
|
8197
|
+
0,
|
|
8198
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8199
|
+
)?.task;
|
|
8200
|
+
|
|
7884
8201
|
if (!parentTask) {
|
|
7885
8202
|
createTask();
|
|
7886
8203
|
break taskCreation;
|
|
@@ -7904,7 +8221,7 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7904
8221
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7905
8222
|
componentIdx: task.componentIdx(),
|
|
7906
8223
|
taskID: task.id(),
|
|
7907
|
-
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1)))
|
|
8224
|
+
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1))),
|
|
7908
8225
|
})
|
|
7909
8226
|
};
|
|
7910
8227
|
} catch (e) {
|
|
@@ -8017,11 +8334,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8017
8334
|
|
|
8018
8335
|
const createTask = () => {
|
|
8019
8336
|
const results = createNewCurrentTask({
|
|
8020
|
-
componentIdx: -1,
|
|
8337
|
+
componentIdx: -1,
|
|
8021
8338
|
isAsync: false,
|
|
8022
8339
|
entryFnName: 'blockingRead',
|
|
8023
8340
|
getCallbackFn: () => null,
|
|
8024
|
-
callbackFnName:
|
|
8341
|
+
callbackFnName: null,
|
|
8025
8342
|
errHandling: 'result-catch-handler',
|
|
8026
8343
|
callingWasmExport: false,
|
|
8027
8344
|
});
|
|
@@ -8029,7 +8346,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8029
8346
|
};
|
|
8030
8347
|
|
|
8031
8348
|
taskCreation: {
|
|
8032
|
-
parentTask = getCurrentTask(
|
|
8349
|
+
parentTask = getCurrentTask(
|
|
8350
|
+
0,
|
|
8351
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8352
|
+
)?.task;
|
|
8353
|
+
|
|
8033
8354
|
if (!parentTask) {
|
|
8034
8355
|
createTask();
|
|
8035
8356
|
break taskCreation;
|
|
@@ -8053,7 +8374,7 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8053
8374
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8054
8375
|
componentIdx: task.componentIdx(),
|
|
8055
8376
|
taskID: task.id(),
|
|
8056
|
-
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1)))
|
|
8377
|
+
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1))),
|
|
8057
8378
|
})
|
|
8058
8379
|
};
|
|
8059
8380
|
} catch (e) {
|
|
@@ -8166,11 +8487,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8166
8487
|
|
|
8167
8488
|
const createTask = () => {
|
|
8168
8489
|
const results = createNewCurrentTask({
|
|
8169
|
-
componentIdx: -1,
|
|
8490
|
+
componentIdx: -1,
|
|
8170
8491
|
isAsync: false,
|
|
8171
8492
|
entryFnName: 'checkWrite',
|
|
8172
8493
|
getCallbackFn: () => null,
|
|
8173
|
-
callbackFnName:
|
|
8494
|
+
callbackFnName: null,
|
|
8174
8495
|
errHandling: 'result-catch-handler',
|
|
8175
8496
|
callingWasmExport: false,
|
|
8176
8497
|
});
|
|
@@ -8178,7 +8499,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8178
8499
|
};
|
|
8179
8500
|
|
|
8180
8501
|
taskCreation: {
|
|
8181
|
-
parentTask = getCurrentTask(
|
|
8502
|
+
parentTask = getCurrentTask(
|
|
8503
|
+
0,
|
|
8504
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8505
|
+
)?.task;
|
|
8506
|
+
|
|
8182
8507
|
if (!parentTask) {
|
|
8183
8508
|
createTask();
|
|
8184
8509
|
break taskCreation;
|
|
@@ -8202,7 +8527,7 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8202
8527
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8203
8528
|
componentIdx: task.componentIdx(),
|
|
8204
8529
|
taskID: task.id(),
|
|
8205
|
-
fn: () => rsc0.checkWrite()
|
|
8530
|
+
fn: () => rsc0.checkWrite(),
|
|
8206
8531
|
})
|
|
8207
8532
|
};
|
|
8208
8533
|
} catch (e) {
|
|
@@ -8295,11 +8620,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8295
8620
|
|
|
8296
8621
|
const createTask = () => {
|
|
8297
8622
|
const results = createNewCurrentTask({
|
|
8298
|
-
componentIdx: -1,
|
|
8623
|
+
componentIdx: -1,
|
|
8299
8624
|
isAsync: false,
|
|
8300
8625
|
entryFnName: 'write',
|
|
8301
8626
|
getCallbackFn: () => null,
|
|
8302
|
-
callbackFnName:
|
|
8627
|
+
callbackFnName: null,
|
|
8303
8628
|
errHandling: 'result-catch-handler',
|
|
8304
8629
|
callingWasmExport: false,
|
|
8305
8630
|
});
|
|
@@ -8307,7 +8632,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8307
8632
|
};
|
|
8308
8633
|
|
|
8309
8634
|
taskCreation: {
|
|
8310
|
-
parentTask = getCurrentTask(
|
|
8635
|
+
parentTask = getCurrentTask(
|
|
8636
|
+
0,
|
|
8637
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8638
|
+
)?.task;
|
|
8639
|
+
|
|
8311
8640
|
if (!parentTask) {
|
|
8312
8641
|
createTask();
|
|
8313
8642
|
break taskCreation;
|
|
@@ -8331,7 +8660,7 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8331
8660
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8332
8661
|
componentIdx: task.componentIdx(),
|
|
8333
8662
|
taskID: task.id(),
|
|
8334
|
-
fn: () => rsc0.write(result3)
|
|
8663
|
+
fn: () => rsc0.write(result3),
|
|
8335
8664
|
})
|
|
8336
8665
|
};
|
|
8337
8666
|
} catch (e) {
|
|
@@ -8423,11 +8752,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8423
8752
|
|
|
8424
8753
|
const createTask = () => {
|
|
8425
8754
|
const results = createNewCurrentTask({
|
|
8426
|
-
componentIdx: -1,
|
|
8755
|
+
componentIdx: -1,
|
|
8427
8756
|
isAsync: false,
|
|
8428
8757
|
entryFnName: 'blockingWriteAndFlush',
|
|
8429
8758
|
getCallbackFn: () => null,
|
|
8430
|
-
callbackFnName:
|
|
8759
|
+
callbackFnName: null,
|
|
8431
8760
|
errHandling: 'result-catch-handler',
|
|
8432
8761
|
callingWasmExport: false,
|
|
8433
8762
|
});
|
|
@@ -8435,7 +8764,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8435
8764
|
};
|
|
8436
8765
|
|
|
8437
8766
|
taskCreation: {
|
|
8438
|
-
parentTask = getCurrentTask(
|
|
8767
|
+
parentTask = getCurrentTask(
|
|
8768
|
+
0,
|
|
8769
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8770
|
+
)?.task;
|
|
8771
|
+
|
|
8439
8772
|
if (!parentTask) {
|
|
8440
8773
|
createTask();
|
|
8441
8774
|
break taskCreation;
|
|
@@ -8459,7 +8792,7 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8459
8792
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8460
8793
|
componentIdx: task.componentIdx(),
|
|
8461
8794
|
taskID: task.id(),
|
|
8462
|
-
fn: () => rsc0.blockingWriteAndFlush(result3)
|
|
8795
|
+
fn: () => rsc0.blockingWriteAndFlush(result3),
|
|
8463
8796
|
})
|
|
8464
8797
|
};
|
|
8465
8798
|
} catch (e) {
|
|
@@ -8548,11 +8881,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8548
8881
|
|
|
8549
8882
|
const createTask = () => {
|
|
8550
8883
|
const results = createNewCurrentTask({
|
|
8551
|
-
componentIdx: -1,
|
|
8884
|
+
componentIdx: -1,
|
|
8552
8885
|
isAsync: false,
|
|
8553
8886
|
entryFnName: 'blockingFlush',
|
|
8554
8887
|
getCallbackFn: () => null,
|
|
8555
|
-
callbackFnName:
|
|
8888
|
+
callbackFnName: null,
|
|
8556
8889
|
errHandling: 'result-catch-handler',
|
|
8557
8890
|
callingWasmExport: false,
|
|
8558
8891
|
});
|
|
@@ -8560,7 +8893,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8560
8893
|
};
|
|
8561
8894
|
|
|
8562
8895
|
taskCreation: {
|
|
8563
|
-
parentTask = getCurrentTask(
|
|
8896
|
+
parentTask = getCurrentTask(
|
|
8897
|
+
0,
|
|
8898
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8899
|
+
)?.task;
|
|
8900
|
+
|
|
8564
8901
|
if (!parentTask) {
|
|
8565
8902
|
createTask();
|
|
8566
8903
|
break taskCreation;
|
|
@@ -8584,7 +8921,7 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8584
8921
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8585
8922
|
componentIdx: task.componentIdx(),
|
|
8586
8923
|
taskID: task.id(),
|
|
8587
|
-
fn: () => rsc0.blockingFlush()
|
|
8924
|
+
fn: () => rsc0.blockingFlush(),
|
|
8588
8925
|
})
|
|
8589
8926
|
};
|
|
8590
8927
|
} catch (e) {
|
|
@@ -8662,11 +8999,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8662
8999
|
|
|
8663
9000
|
const createTask = () => {
|
|
8664
9001
|
const results = createNewCurrentTask({
|
|
8665
|
-
componentIdx: -1,
|
|
9002
|
+
componentIdx: -1,
|
|
8666
9003
|
isAsync: false,
|
|
8667
9004
|
entryFnName: 'getRandomBytes',
|
|
8668
9005
|
getCallbackFn: () => null,
|
|
8669
|
-
callbackFnName:
|
|
9006
|
+
callbackFnName: null,
|
|
8670
9007
|
errHandling: 'none',
|
|
8671
9008
|
callingWasmExport: false,
|
|
8672
9009
|
});
|
|
@@ -8674,7 +9011,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8674
9011
|
};
|
|
8675
9012
|
|
|
8676
9013
|
taskCreation: {
|
|
8677
|
-
parentTask = getCurrentTask(
|
|
9014
|
+
parentTask = getCurrentTask(
|
|
9015
|
+
0,
|
|
9016
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9017
|
+
)?.task;
|
|
9018
|
+
|
|
8678
9019
|
if (!parentTask) {
|
|
8679
9020
|
createTask();
|
|
8680
9021
|
break taskCreation;
|
|
@@ -8692,12 +9033,25 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8692
9033
|
}
|
|
8693
9034
|
|
|
8694
9035
|
const started = task.enterSync();
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
9036
|
+
|
|
9037
|
+
let ret;
|
|
9038
|
+
|
|
9039
|
+
try {
|
|
9040
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9041
|
+
componentIdx: task.componentIdx(),
|
|
9042
|
+
taskID: task.id(),
|
|
9043
|
+
fn: () => getRandomBytes(BigInt.asUintN(64, BigInt(arg0))),
|
|
9044
|
+
})
|
|
9045
|
+
;
|
|
9046
|
+
} catch (err) {
|
|
9047
|
+
|
|
9048
|
+
task.setErrored(err);
|
|
9049
|
+
task.reject(err);
|
|
9050
|
+
task.exit();
|
|
9051
|
+
throw err;
|
|
9052
|
+
|
|
9053
|
+
}
|
|
9054
|
+
|
|
8701
9055
|
var val0 = ret;
|
|
8702
9056
|
var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
|
|
8703
9057
|
var ptr0 = realloc0(0, 0, 1, len0 * 1);
|
|
@@ -8743,11 +9097,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8743
9097
|
|
|
8744
9098
|
const createTask = () => {
|
|
8745
9099
|
const results = createNewCurrentTask({
|
|
8746
|
-
componentIdx: -1,
|
|
9100
|
+
componentIdx: -1,
|
|
8747
9101
|
isAsync: false,
|
|
8748
9102
|
entryFnName: 'getDirectories',
|
|
8749
9103
|
getCallbackFn: () => null,
|
|
8750
|
-
callbackFnName:
|
|
9104
|
+
callbackFnName: null,
|
|
8751
9105
|
errHandling: 'none',
|
|
8752
9106
|
callingWasmExport: false,
|
|
8753
9107
|
});
|
|
@@ -8755,7 +9109,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8755
9109
|
};
|
|
8756
9110
|
|
|
8757
9111
|
taskCreation: {
|
|
8758
|
-
parentTask = getCurrentTask(
|
|
9112
|
+
parentTask = getCurrentTask(
|
|
9113
|
+
0,
|
|
9114
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9115
|
+
)?.task;
|
|
9116
|
+
|
|
8759
9117
|
if (!parentTask) {
|
|
8760
9118
|
createTask();
|
|
8761
9119
|
break taskCreation;
|
|
@@ -8773,12 +9131,25 @@ const _trampoline32 = function(arg0) {
|
|
|
8773
9131
|
}
|
|
8774
9132
|
|
|
8775
9133
|
const started = task.enterSync();
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
9134
|
+
|
|
9135
|
+
let ret;
|
|
9136
|
+
|
|
9137
|
+
try {
|
|
9138
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9139
|
+
componentIdx: task.componentIdx(),
|
|
9140
|
+
taskID: task.id(),
|
|
9141
|
+
fn: () => getDirectories(),
|
|
9142
|
+
})
|
|
9143
|
+
;
|
|
9144
|
+
} catch (err) {
|
|
9145
|
+
|
|
9146
|
+
task.setErrored(err);
|
|
9147
|
+
task.reject(err);
|
|
9148
|
+
task.exit();
|
|
9149
|
+
throw err;
|
|
9150
|
+
|
|
9151
|
+
}
|
|
9152
|
+
|
|
8782
9153
|
var vec3 = ret;
|
|
8783
9154
|
var len3 = vec3.length;
|
|
8784
9155
|
var result3 = realloc0(0, 0, 4, len3 * 12);
|
|
@@ -8817,10 +9188,15 @@ const _trampoline32 = function(arg0) {
|
|
|
8817
9188
|
task.exit();
|
|
8818
9189
|
}
|
|
8819
9190
|
_trampoline32.fnName = 'wasi:filesystem/preopens@0.2.3#getDirectories';
|
|
9191
|
+
|
|
8820
9192
|
const handleTable3 = [T_FLAG, 0];
|
|
9193
|
+
handleTable3._createdReps = new Set();
|
|
9194
|
+
|
|
9195
|
+
|
|
8821
9196
|
const captureTable3= new Map();
|
|
8822
|
-
let captureCnt3
|
|
8823
|
-
|
|
9197
|
+
let captureCnt3= 0;
|
|
9198
|
+
|
|
9199
|
+
HANDLE_TABLES[3] = handleTable3;
|
|
8824
9200
|
|
|
8825
9201
|
const _trampoline33 = function(arg0) {
|
|
8826
9202
|
_debugLog('[iface="wasi:cli/terminal-stdin@0.2.3", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ enter)');
|
|
@@ -8832,11 +9208,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8832
9208
|
|
|
8833
9209
|
const createTask = () => {
|
|
8834
9210
|
const results = createNewCurrentTask({
|
|
8835
|
-
componentIdx: -1,
|
|
9211
|
+
componentIdx: -1,
|
|
8836
9212
|
isAsync: false,
|
|
8837
9213
|
entryFnName: 'getTerminalStdin',
|
|
8838
9214
|
getCallbackFn: () => null,
|
|
8839
|
-
callbackFnName:
|
|
9215
|
+
callbackFnName: null,
|
|
8840
9216
|
errHandling: 'none',
|
|
8841
9217
|
callingWasmExport: false,
|
|
8842
9218
|
});
|
|
@@ -8844,7 +9220,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8844
9220
|
};
|
|
8845
9221
|
|
|
8846
9222
|
taskCreation: {
|
|
8847
|
-
parentTask = getCurrentTask(
|
|
9223
|
+
parentTask = getCurrentTask(
|
|
9224
|
+
0,
|
|
9225
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9226
|
+
)?.task;
|
|
9227
|
+
|
|
8848
9228
|
if (!parentTask) {
|
|
8849
9229
|
createTask();
|
|
8850
9230
|
break taskCreation;
|
|
@@ -8862,12 +9242,25 @@ const _trampoline33 = function(arg0) {
|
|
|
8862
9242
|
}
|
|
8863
9243
|
|
|
8864
9244
|
const started = task.enterSync();
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
9245
|
+
|
|
9246
|
+
let ret;
|
|
9247
|
+
|
|
9248
|
+
try {
|
|
9249
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9250
|
+
componentIdx: task.componentIdx(),
|
|
9251
|
+
taskID: task.id(),
|
|
9252
|
+
fn: () => getTerminalStdin(),
|
|
9253
|
+
})
|
|
9254
|
+
;
|
|
9255
|
+
} catch (err) {
|
|
9256
|
+
|
|
9257
|
+
task.setErrored(err);
|
|
9258
|
+
task.reject(err);
|
|
9259
|
+
task.exit();
|
|
9260
|
+
throw err;
|
|
9261
|
+
|
|
9262
|
+
}
|
|
9263
|
+
|
|
8871
9264
|
var variant1 = ret;
|
|
8872
9265
|
if (variant1 === null || variant1=== undefined) {
|
|
8873
9266
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8897,10 +9290,15 @@ const _trampoline33 = function(arg0) {
|
|
|
8897
9290
|
task.exit();
|
|
8898
9291
|
}
|
|
8899
9292
|
_trampoline33.fnName = 'wasi:cli/terminal-stdin@0.2.3#getTerminalStdin';
|
|
9293
|
+
|
|
8900
9294
|
const handleTable4 = [T_FLAG, 0];
|
|
9295
|
+
handleTable4._createdReps = new Set();
|
|
9296
|
+
|
|
9297
|
+
|
|
8901
9298
|
const captureTable4= new Map();
|
|
8902
|
-
let captureCnt4
|
|
8903
|
-
|
|
9299
|
+
let captureCnt4= 0;
|
|
9300
|
+
|
|
9301
|
+
HANDLE_TABLES[4] = handleTable4;
|
|
8904
9302
|
|
|
8905
9303
|
const _trampoline34 = function(arg0) {
|
|
8906
9304
|
_debugLog('[iface="wasi:cli/terminal-stdout@0.2.3", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ enter)');
|
|
@@ -8912,11 +9310,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8912
9310
|
|
|
8913
9311
|
const createTask = () => {
|
|
8914
9312
|
const results = createNewCurrentTask({
|
|
8915
|
-
componentIdx: -1,
|
|
9313
|
+
componentIdx: -1,
|
|
8916
9314
|
isAsync: false,
|
|
8917
9315
|
entryFnName: 'getTerminalStdout',
|
|
8918
9316
|
getCallbackFn: () => null,
|
|
8919
|
-
callbackFnName:
|
|
9317
|
+
callbackFnName: null,
|
|
8920
9318
|
errHandling: 'none',
|
|
8921
9319
|
callingWasmExport: false,
|
|
8922
9320
|
});
|
|
@@ -8924,7 +9322,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8924
9322
|
};
|
|
8925
9323
|
|
|
8926
9324
|
taskCreation: {
|
|
8927
|
-
parentTask = getCurrentTask(
|
|
9325
|
+
parentTask = getCurrentTask(
|
|
9326
|
+
0,
|
|
9327
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9328
|
+
)?.task;
|
|
9329
|
+
|
|
8928
9330
|
if (!parentTask) {
|
|
8929
9331
|
createTask();
|
|
8930
9332
|
break taskCreation;
|
|
@@ -8942,12 +9344,25 @@ const _trampoline34 = function(arg0) {
|
|
|
8942
9344
|
}
|
|
8943
9345
|
|
|
8944
9346
|
const started = task.enterSync();
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
9347
|
+
|
|
9348
|
+
let ret;
|
|
9349
|
+
|
|
9350
|
+
try {
|
|
9351
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9352
|
+
componentIdx: task.componentIdx(),
|
|
9353
|
+
taskID: task.id(),
|
|
9354
|
+
fn: () => getTerminalStdout(),
|
|
9355
|
+
})
|
|
9356
|
+
;
|
|
9357
|
+
} catch (err) {
|
|
9358
|
+
|
|
9359
|
+
task.setErrored(err);
|
|
9360
|
+
task.reject(err);
|
|
9361
|
+
task.exit();
|
|
9362
|
+
throw err;
|
|
9363
|
+
|
|
9364
|
+
}
|
|
9365
|
+
|
|
8951
9366
|
var variant1 = ret;
|
|
8952
9367
|
if (variant1 === null || variant1=== undefined) {
|
|
8953
9368
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8988,11 +9403,11 @@ const _trampoline35 = function(arg0) {
|
|
|
8988
9403
|
|
|
8989
9404
|
const createTask = () => {
|
|
8990
9405
|
const results = createNewCurrentTask({
|
|
8991
|
-
componentIdx: -1,
|
|
9406
|
+
componentIdx: -1,
|
|
8992
9407
|
isAsync: false,
|
|
8993
9408
|
entryFnName: 'getTerminalStderr',
|
|
8994
9409
|
getCallbackFn: () => null,
|
|
8995
|
-
callbackFnName:
|
|
9410
|
+
callbackFnName: null,
|
|
8996
9411
|
errHandling: 'none',
|
|
8997
9412
|
callingWasmExport: false,
|
|
8998
9413
|
});
|
|
@@ -9000,7 +9415,11 @@ const _trampoline35 = function(arg0) {
|
|
|
9000
9415
|
};
|
|
9001
9416
|
|
|
9002
9417
|
taskCreation: {
|
|
9003
|
-
parentTask = getCurrentTask(
|
|
9418
|
+
parentTask = getCurrentTask(
|
|
9419
|
+
0,
|
|
9420
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9421
|
+
)?.task;
|
|
9422
|
+
|
|
9004
9423
|
if (!parentTask) {
|
|
9005
9424
|
createTask();
|
|
9006
9425
|
break taskCreation;
|
|
@@ -9018,12 +9437,25 @@ const _trampoline35 = function(arg0) {
|
|
|
9018
9437
|
}
|
|
9019
9438
|
|
|
9020
9439
|
const started = task.enterSync();
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9440
|
+
|
|
9441
|
+
let ret;
|
|
9442
|
+
|
|
9443
|
+
try {
|
|
9444
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9445
|
+
componentIdx: task.componentIdx(),
|
|
9446
|
+
taskID: task.id(),
|
|
9447
|
+
fn: () => getTerminalStderr(),
|
|
9448
|
+
})
|
|
9449
|
+
;
|
|
9450
|
+
} catch (err) {
|
|
9451
|
+
|
|
9452
|
+
task.setErrored(err);
|
|
9453
|
+
task.reject(err);
|
|
9454
|
+
task.exit();
|
|
9455
|
+
throw err;
|
|
9456
|
+
|
|
9457
|
+
}
|
|
9458
|
+
|
|
9027
9459
|
var variant1 = ret;
|
|
9028
9460
|
if (variant1 === null || variant1=== undefined) {
|
|
9029
9461
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -9340,19 +9772,35 @@ function generate(arg0, arg1) {
|
|
|
9340
9772
|
isManualAsync: false,
|
|
9341
9773
|
entryFnName: 'exports1Generate',
|
|
9342
9774
|
getCallbackFn: () => null,
|
|
9343
|
-
callbackFnName:
|
|
9775
|
+
callbackFnName: null,
|
|
9344
9776
|
errHandling: 'throw-result-err',
|
|
9345
9777
|
callingWasmExport: true,
|
|
9346
9778
|
});
|
|
9347
9779
|
|
|
9348
9780
|
const started = task.enterSync();
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9781
|
+
|
|
9782
|
+
if (0!== null) {
|
|
9783
|
+
task.setReturnMemoryIdx(0);
|
|
9784
|
+
task.setReturnMemory(() => memory0());
|
|
9785
|
+
}
|
|
9786
|
+
|
|
9787
|
+
|
|
9788
|
+
let ret;
|
|
9789
|
+
|
|
9790
|
+
try {
|
|
9791
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9792
|
+
taskID: task.id(),
|
|
9793
|
+
componentIdx: task.componentIdx(),
|
|
9794
|
+
fn: () => exports1Generate(ptr0),
|
|
9795
|
+
});
|
|
9796
|
+
} catch (err) {
|
|
9797
|
+
|
|
9798
|
+
task.setErrored(err);
|
|
9799
|
+
task.reject(err);
|
|
9800
|
+
task.exit();
|
|
9801
|
+
throw err;
|
|
9802
|
+
|
|
9803
|
+
}
|
|
9356
9804
|
|
|
9357
9805
|
let variant41;
|
|
9358
9806
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9716,19 +10164,35 @@ function generateTypes(arg0, arg1) {
|
|
|
9716
10164
|
isManualAsync: false,
|
|
9717
10165
|
entryFnName: 'exports1GenerateTypes',
|
|
9718
10166
|
getCallbackFn: () => null,
|
|
9719
|
-
callbackFnName:
|
|
10167
|
+
callbackFnName: null,
|
|
9720
10168
|
errHandling: 'throw-result-err',
|
|
9721
10169
|
callingWasmExport: true,
|
|
9722
10170
|
});
|
|
9723
10171
|
|
|
9724
10172
|
const started = task.enterSync();
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
10173
|
+
|
|
10174
|
+
if (0!== null) {
|
|
10175
|
+
task.setReturnMemoryIdx(0);
|
|
10176
|
+
task.setReturnMemory(() => memory0());
|
|
10177
|
+
}
|
|
10178
|
+
|
|
10179
|
+
|
|
10180
|
+
let ret;
|
|
10181
|
+
|
|
10182
|
+
try {
|
|
10183
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10184
|
+
taskID: task.id(),
|
|
10185
|
+
componentIdx: task.componentIdx(),
|
|
10186
|
+
fn: () => exports1GenerateTypes(ptr0),
|
|
10187
|
+
});
|
|
10188
|
+
} catch (err) {
|
|
10189
|
+
|
|
10190
|
+
task.setErrored(err);
|
|
10191
|
+
task.reject(err);
|
|
10192
|
+
task.exit();
|
|
10193
|
+
throw err;
|
|
10194
|
+
|
|
10195
|
+
}
|
|
9732
10196
|
|
|
9733
10197
|
let variant34;
|
|
9734
10198
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9864,8 +10328,22 @@ null,
|
|
|
9864
10328
|
paramLiftFns: [],
|
|
9865
10329
|
resultLowerFns: [_lowerFlatOwn({
|
|
9866
10330
|
componentIdx: 0,
|
|
9867
|
-
lowerFn:
|
|
10331
|
+
lowerFn:
|
|
10332
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10333
|
+
if (!(obj instanceof OutputStream)) {
|
|
10334
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10335
|
+
}
|
|
10336
|
+
let handle = obj[symbolRscHandle];
|
|
10337
|
+
if (!handle) {
|
|
10338
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10339
|
+
captureTable2.set(rep, obj);
|
|
10340
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10341
|
+
}
|
|
10342
|
+
return handle;
|
|
10343
|
+
}
|
|
10344
|
+
,
|
|
9868
10345
|
})],
|
|
10346
|
+
hasResultPointer: false,
|
|
9869
10347
|
funcTypeIsAsync: false,
|
|
9870
10348
|
getCallbackFn: () => null,
|
|
9871
10349
|
getPostReturnFn: () => null,
|
|
@@ -9873,7 +10351,7 @@ null,
|
|
|
9873
10351
|
memoryIdx: null,
|
|
9874
10352
|
stringEncoding: 'utf8',
|
|
9875
10353
|
getMemoryFn: () => null,
|
|
9876
|
-
getReallocFn:
|
|
10354
|
+
getReallocFn: undefined,
|
|
9877
10355
|
importFn: _trampoline5,
|
|
9878
10356
|
},
|
|
9879
10357
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9886,8 +10364,22 @@ null,
|
|
|
9886
10364
|
paramLiftFns: [],
|
|
9887
10365
|
resultLowerFns: [_lowerFlatOwn({
|
|
9888
10366
|
componentIdx: 0,
|
|
9889
|
-
lowerFn:
|
|
10367
|
+
lowerFn:
|
|
10368
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10369
|
+
if (!(obj instanceof OutputStream)) {
|
|
10370
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10371
|
+
}
|
|
10372
|
+
let handle = obj[symbolRscHandle];
|
|
10373
|
+
if (!handle) {
|
|
10374
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10375
|
+
captureTable2.set(rep, obj);
|
|
10376
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10377
|
+
}
|
|
10378
|
+
return handle;
|
|
10379
|
+
}
|
|
10380
|
+
,
|
|
9890
10381
|
})],
|
|
10382
|
+
hasResultPointer: false,
|
|
9891
10383
|
funcTypeIsAsync: false,
|
|
9892
10384
|
getCallbackFn: () => null,
|
|
9893
10385
|
getPostReturnFn: () => null,
|
|
@@ -9895,7 +10387,7 @@ null,
|
|
|
9895
10387
|
memoryIdx: null,
|
|
9896
10388
|
stringEncoding: 'utf8',
|
|
9897
10389
|
getMemoryFn: () => null,
|
|
9898
|
-
getReallocFn:
|
|
10390
|
+
getReallocFn: undefined,
|
|
9899
10391
|
importFn: _trampoline5,
|
|
9900
10392
|
},
|
|
9901
10393
|
);
|
|
@@ -9935,8 +10427,22 @@ null,
|
|
|
9935
10427
|
paramLiftFns: [],
|
|
9936
10428
|
resultLowerFns: [_lowerFlatOwn({
|
|
9937
10429
|
componentIdx: 0,
|
|
9938
|
-
lowerFn:
|
|
10430
|
+
lowerFn:
|
|
10431
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10432
|
+
if (!(obj instanceof InputStream)) {
|
|
10433
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10434
|
+
}
|
|
10435
|
+
let handle = obj[symbolRscHandle];
|
|
10436
|
+
if (!handle) {
|
|
10437
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10438
|
+
captureTable1.set(rep, obj);
|
|
10439
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10440
|
+
}
|
|
10441
|
+
return handle;
|
|
10442
|
+
}
|
|
10443
|
+
,
|
|
9939
10444
|
})],
|
|
10445
|
+
hasResultPointer: false,
|
|
9940
10446
|
funcTypeIsAsync: false,
|
|
9941
10447
|
getCallbackFn: () => null,
|
|
9942
10448
|
getPostReturnFn: () => null,
|
|
@@ -9944,7 +10450,7 @@ null,
|
|
|
9944
10450
|
memoryIdx: null,
|
|
9945
10451
|
stringEncoding: 'utf8',
|
|
9946
10452
|
getMemoryFn: () => null,
|
|
9947
|
-
getReallocFn:
|
|
10453
|
+
getReallocFn: undefined,
|
|
9948
10454
|
importFn: _trampoline8,
|
|
9949
10455
|
},
|
|
9950
10456
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9957,8 +10463,22 @@ null,
|
|
|
9957
10463
|
paramLiftFns: [],
|
|
9958
10464
|
resultLowerFns: [_lowerFlatOwn({
|
|
9959
10465
|
componentIdx: 0,
|
|
9960
|
-
lowerFn:
|
|
10466
|
+
lowerFn:
|
|
10467
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10468
|
+
if (!(obj instanceof InputStream)) {
|
|
10469
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10470
|
+
}
|
|
10471
|
+
let handle = obj[symbolRscHandle];
|
|
10472
|
+
if (!handle) {
|
|
10473
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10474
|
+
captureTable1.set(rep, obj);
|
|
10475
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10476
|
+
}
|
|
10477
|
+
return handle;
|
|
10478
|
+
}
|
|
10479
|
+
,
|
|
9961
10480
|
})],
|
|
10481
|
+
hasResultPointer: false,
|
|
9962
10482
|
funcTypeIsAsync: false,
|
|
9963
10483
|
getCallbackFn: () => null,
|
|
9964
10484
|
getPostReturnFn: () => null,
|
|
@@ -9966,7 +10486,7 @@ null,
|
|
|
9966
10486
|
memoryIdx: null,
|
|
9967
10487
|
stringEncoding: 'utf8',
|
|
9968
10488
|
getMemoryFn: () => null,
|
|
9969
|
-
getReallocFn:
|
|
10489
|
+
getReallocFn: undefined,
|
|
9970
10490
|
importFn: _trampoline8,
|
|
9971
10491
|
},
|
|
9972
10492
|
);
|
|
@@ -9980,8 +10500,22 @@ null,
|
|
|
9980
10500
|
paramLiftFns: [],
|
|
9981
10501
|
resultLowerFns: [_lowerFlatOwn({
|
|
9982
10502
|
componentIdx: 0,
|
|
9983
|
-
lowerFn:
|
|
10503
|
+
lowerFn:
|
|
10504
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10505
|
+
if (!(obj instanceof OutputStream)) {
|
|
10506
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10507
|
+
}
|
|
10508
|
+
let handle = obj[symbolRscHandle];
|
|
10509
|
+
if (!handle) {
|
|
10510
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10511
|
+
captureTable2.set(rep, obj);
|
|
10512
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10513
|
+
}
|
|
10514
|
+
return handle;
|
|
10515
|
+
}
|
|
10516
|
+
,
|
|
9984
10517
|
})],
|
|
10518
|
+
hasResultPointer: false,
|
|
9985
10519
|
funcTypeIsAsync: false,
|
|
9986
10520
|
getCallbackFn: () => null,
|
|
9987
10521
|
getPostReturnFn: () => null,
|
|
@@ -9989,7 +10523,7 @@ null,
|
|
|
9989
10523
|
memoryIdx: null,
|
|
9990
10524
|
stringEncoding: 'utf8',
|
|
9991
10525
|
getMemoryFn: () => null,
|
|
9992
|
-
getReallocFn:
|
|
10526
|
+
getReallocFn: undefined,
|
|
9993
10527
|
importFn: _trampoline9,
|
|
9994
10528
|
},
|
|
9995
10529
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10002,8 +10536,22 @@ null,
|
|
|
10002
10536
|
paramLiftFns: [],
|
|
10003
10537
|
resultLowerFns: [_lowerFlatOwn({
|
|
10004
10538
|
componentIdx: 0,
|
|
10005
|
-
lowerFn:
|
|
10539
|
+
lowerFn:
|
|
10540
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10541
|
+
if (!(obj instanceof OutputStream)) {
|
|
10542
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10543
|
+
}
|
|
10544
|
+
let handle = obj[symbolRscHandle];
|
|
10545
|
+
if (!handle) {
|
|
10546
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10547
|
+
captureTable2.set(rep, obj);
|
|
10548
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10549
|
+
}
|
|
10550
|
+
return handle;
|
|
10551
|
+
}
|
|
10552
|
+
,
|
|
10006
10553
|
})],
|
|
10554
|
+
hasResultPointer: false,
|
|
10007
10555
|
funcTypeIsAsync: false,
|
|
10008
10556
|
getCallbackFn: () => null,
|
|
10009
10557
|
getPostReturnFn: () => null,
|
|
@@ -10011,7 +10559,7 @@ null,
|
|
|
10011
10559
|
memoryIdx: null,
|
|
10012
10560
|
stringEncoding: 'utf8',
|
|
10013
10561
|
getMemoryFn: () => null,
|
|
10014
|
-
getReallocFn:
|
|
10562
|
+
getReallocFn: undefined,
|
|
10015
10563
|
importFn: _trampoline9,
|
|
10016
10564
|
},
|
|
10017
10565
|
);
|
|
@@ -10022,8 +10570,9 @@ null,
|
|
|
10022
10570
|
componentIdx: 0,
|
|
10023
10571
|
isAsync: false,
|
|
10024
10572
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10025
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10573
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10026
10574
|
resultLowerFns: [],
|
|
10575
|
+
hasResultPointer: false,
|
|
10027
10576
|
funcTypeIsAsync: false,
|
|
10028
10577
|
getCallbackFn: () => null,
|
|
10029
10578
|
getPostReturnFn: () => null,
|
|
@@ -10031,7 +10580,7 @@ null,
|
|
|
10031
10580
|
memoryIdx: null,
|
|
10032
10581
|
stringEncoding: 'utf8',
|
|
10033
10582
|
getMemoryFn: () => null,
|
|
10034
|
-
getReallocFn:
|
|
10583
|
+
getReallocFn: undefined,
|
|
10035
10584
|
importFn: _trampoline10,
|
|
10036
10585
|
},
|
|
10037
10586
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10041,8 +10590,9 @@ null,
|
|
|
10041
10590
|
componentIdx: 0,
|
|
10042
10591
|
isAsync: false,
|
|
10043
10592
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10044
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10593
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10045
10594
|
resultLowerFns: [],
|
|
10595
|
+
hasResultPointer: false,
|
|
10046
10596
|
funcTypeIsAsync: false,
|
|
10047
10597
|
getCallbackFn: () => null,
|
|
10048
10598
|
getPostReturnFn: () => null,
|
|
@@ -10050,7 +10600,7 @@ null,
|
|
|
10050
10600
|
memoryIdx: null,
|
|
10051
10601
|
stringEncoding: 'utf8',
|
|
10052
10602
|
getMemoryFn: () => null,
|
|
10053
|
-
getReallocFn:
|
|
10603
|
+
getReallocFn: undefined,
|
|
10054
10604
|
importFn: _trampoline10,
|
|
10055
10605
|
},
|
|
10056
10606
|
);
|
|
@@ -10063,10 +10613,11 @@ null,
|
|
|
10063
10613
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10064
10614
|
paramLiftFns: [],
|
|
10065
10615
|
resultLowerFns: [_lowerFlatList({
|
|
10066
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10616
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10067
10617
|
elemSize32: 16,
|
|
10068
10618
|
elemAlign32: 4,
|
|
10069
10619
|
})],
|
|
10620
|
+
hasResultPointer: true,
|
|
10070
10621
|
funcTypeIsAsync: false,
|
|
10071
10622
|
getCallbackFn: () => null,
|
|
10072
10623
|
getPostReturnFn: () => null,
|
|
@@ -10086,10 +10637,11 @@ null,
|
|
|
10086
10637
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10087
10638
|
paramLiftFns: [],
|
|
10088
10639
|
resultLowerFns: [_lowerFlatList({
|
|
10089
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10640
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10090
10641
|
elemSize32: 16,
|
|
10091
10642
|
elemAlign32: 4,
|
|
10092
10643
|
})],
|
|
10644
|
+
hasResultPointer: true,
|
|
10093
10645
|
funcTypeIsAsync: false,
|
|
10094
10646
|
getCallbackFn: () => null,
|
|
10095
10647
|
getPostReturnFn: () => null,
|
|
@@ -10110,10 +10662,11 @@ null,
|
|
|
10110
10662
|
isManualAsync: _trampoline12.manuallyAsync,
|
|
10111
10663
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10112
10664
|
resultLowerFns: [_lowerFlatResult([
|
|
10113
|
-
[ 'ok', _lowerFlatFlags({ names: ['read','write','
|
|
10665
|
+
[ 'ok', _lowerFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
|
|
10114
10666
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10115
10667
|
])
|
|
10116
10668
|
],
|
|
10669
|
+
hasResultPointer: true,
|
|
10117
10670
|
funcTypeIsAsync: false,
|
|
10118
10671
|
getCallbackFn: () => null,
|
|
10119
10672
|
getPostReturnFn: () => null,
|
|
@@ -10121,7 +10674,7 @@ null,
|
|
|
10121
10674
|
memoryIdx: 0,
|
|
10122
10675
|
stringEncoding: 'utf8',
|
|
10123
10676
|
getMemoryFn: () => memory0,
|
|
10124
|
-
getReallocFn:
|
|
10677
|
+
getReallocFn: undefined,
|
|
10125
10678
|
importFn: _trampoline12,
|
|
10126
10679
|
},
|
|
10127
10680
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10133,10 +10686,11 @@ null,
|
|
|
10133
10686
|
isManualAsync: _trampoline12.manuallyAsync,
|
|
10134
10687
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10135
10688
|
resultLowerFns: [_lowerFlatResult([
|
|
10136
|
-
[ 'ok', _lowerFlatFlags({ names: ['read','write','
|
|
10689
|
+
[ 'ok', _lowerFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
|
|
10137
10690
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10138
10691
|
])
|
|
10139
10692
|
],
|
|
10693
|
+
hasResultPointer: true,
|
|
10140
10694
|
funcTypeIsAsync: false,
|
|
10141
10695
|
getCallbackFn: () => null,
|
|
10142
10696
|
getPostReturnFn: () => null,
|
|
@@ -10144,7 +10698,7 @@ null,
|
|
|
10144
10698
|
memoryIdx: 0,
|
|
10145
10699
|
stringEncoding: 'utf8',
|
|
10146
10700
|
getMemoryFn: () => memory0,
|
|
10147
|
-
getReallocFn:
|
|
10701
|
+
getReallocFn: undefined,
|
|
10148
10702
|
importFn: _trampoline12,
|
|
10149
10703
|
},
|
|
10150
10704
|
);
|
|
@@ -10161,6 +10715,7 @@ null,
|
|
|
10161
10715
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10162
10716
|
])
|
|
10163
10717
|
],
|
|
10718
|
+
hasResultPointer: true,
|
|
10164
10719
|
funcTypeIsAsync: false,
|
|
10165
10720
|
getCallbackFn: () => null,
|
|
10166
10721
|
getPostReturnFn: () => null,
|
|
@@ -10168,7 +10723,7 @@ null,
|
|
|
10168
10723
|
memoryIdx: 0,
|
|
10169
10724
|
stringEncoding: 'utf8',
|
|
10170
10725
|
getMemoryFn: () => memory0,
|
|
10171
|
-
getReallocFn:
|
|
10726
|
+
getReallocFn: undefined,
|
|
10172
10727
|
importFn: _trampoline13,
|
|
10173
10728
|
},
|
|
10174
10729
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10184,6 +10739,7 @@ null,
|
|
|
10184
10739
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10185
10740
|
])
|
|
10186
10741
|
],
|
|
10742
|
+
hasResultPointer: true,
|
|
10187
10743
|
funcTypeIsAsync: false,
|
|
10188
10744
|
getCallbackFn: () => null,
|
|
10189
10745
|
getPostReturnFn: () => null,
|
|
@@ -10191,7 +10747,7 @@ null,
|
|
|
10191
10747
|
memoryIdx: 0,
|
|
10192
10748
|
stringEncoding: 'utf8',
|
|
10193
10749
|
getMemoryFn: () => memory0,
|
|
10194
|
-
getReallocFn:
|
|
10750
|
+
getReallocFn: undefined,
|
|
10195
10751
|
importFn: _trampoline13,
|
|
10196
10752
|
},
|
|
10197
10753
|
);
|
|
@@ -10204,10 +10760,11 @@ null,
|
|
|
10204
10760
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10205
10761
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10206
10762
|
resultLowerFns: [_lowerFlatResult([
|
|
10207
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10763
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10208
10764
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10209
10765
|
])
|
|
10210
10766
|
],
|
|
10767
|
+
hasResultPointer: true,
|
|
10211
10768
|
funcTypeIsAsync: false,
|
|
10212
10769
|
getCallbackFn: () => null,
|
|
10213
10770
|
getPostReturnFn: () => null,
|
|
@@ -10215,7 +10772,7 @@ null,
|
|
|
10215
10772
|
memoryIdx: 0,
|
|
10216
10773
|
stringEncoding: 'utf8',
|
|
10217
10774
|
getMemoryFn: () => memory0,
|
|
10218
|
-
getReallocFn:
|
|
10775
|
+
getReallocFn: undefined,
|
|
10219
10776
|
importFn: _trampoline14,
|
|
10220
10777
|
},
|
|
10221
10778
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10227,10 +10784,11 @@ null,
|
|
|
10227
10784
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10228
10785
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10229
10786
|
resultLowerFns: [_lowerFlatResult([
|
|
10230
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10787
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10231
10788
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10232
10789
|
])
|
|
10233
10790
|
],
|
|
10791
|
+
hasResultPointer: true,
|
|
10234
10792
|
funcTypeIsAsync: false,
|
|
10235
10793
|
getCallbackFn: () => null,
|
|
10236
10794
|
getPostReturnFn: () => null,
|
|
@@ -10238,7 +10796,7 @@ null,
|
|
|
10238
10796
|
memoryIdx: 0,
|
|
10239
10797
|
stringEncoding: 'utf8',
|
|
10240
10798
|
getMemoryFn: () => memory0,
|
|
10241
|
-
getReallocFn:
|
|
10799
|
+
getReallocFn: undefined,
|
|
10242
10800
|
importFn: _trampoline14,
|
|
10243
10801
|
},
|
|
10244
10802
|
);
|
|
@@ -10255,6 +10813,7 @@ null,
|
|
|
10255
10813
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10256
10814
|
])
|
|
10257
10815
|
],
|
|
10816
|
+
hasResultPointer: true,
|
|
10258
10817
|
funcTypeIsAsync: false,
|
|
10259
10818
|
getCallbackFn: () => null,
|
|
10260
10819
|
getPostReturnFn: () => null,
|
|
@@ -10262,7 +10821,7 @@ null,
|
|
|
10262
10821
|
memoryIdx: 0,
|
|
10263
10822
|
stringEncoding: 'utf8',
|
|
10264
10823
|
getMemoryFn: () => memory0,
|
|
10265
|
-
getReallocFn:
|
|
10824
|
+
getReallocFn: undefined,
|
|
10266
10825
|
importFn: _trampoline15,
|
|
10267
10826
|
},
|
|
10268
10827
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10278,6 +10837,7 @@ null,
|
|
|
10278
10837
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10279
10838
|
])
|
|
10280
10839
|
],
|
|
10840
|
+
hasResultPointer: true,
|
|
10281
10841
|
funcTypeIsAsync: false,
|
|
10282
10842
|
getCallbackFn: () => null,
|
|
10283
10843
|
getPostReturnFn: () => null,
|
|
@@ -10285,7 +10845,7 @@ null,
|
|
|
10285
10845
|
memoryIdx: 0,
|
|
10286
10846
|
stringEncoding: 'utf8',
|
|
10287
10847
|
getMemoryFn: () => memory0,
|
|
10288
|
-
getReallocFn:
|
|
10848
|
+
getReallocFn: undefined,
|
|
10289
10849
|
importFn: _trampoline15,
|
|
10290
10850
|
},
|
|
10291
10851
|
);
|
|
@@ -10296,12 +10856,13 @@ null,
|
|
|
10296
10856
|
componentIdx: 0,
|
|
10297
10857
|
isAsync: false,
|
|
10298
10858
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10299
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
10859
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10300
10860
|
resultLowerFns: [_lowerFlatResult([
|
|
10301
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10861
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10302
10862
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10303
10863
|
])
|
|
10304
10864
|
],
|
|
10865
|
+
hasResultPointer: true,
|
|
10305
10866
|
funcTypeIsAsync: false,
|
|
10306
10867
|
getCallbackFn: () => null,
|
|
10307
10868
|
getPostReturnFn: () => null,
|
|
@@ -10309,7 +10870,7 @@ null,
|
|
|
10309
10870
|
memoryIdx: 0,
|
|
10310
10871
|
stringEncoding: 'utf8',
|
|
10311
10872
|
getMemoryFn: () => memory0,
|
|
10312
|
-
getReallocFn:
|
|
10873
|
+
getReallocFn: undefined,
|
|
10313
10874
|
importFn: _trampoline16,
|
|
10314
10875
|
},
|
|
10315
10876
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10319,12 +10880,13 @@ null,
|
|
|
10319
10880
|
componentIdx: 0,
|
|
10320
10881
|
isAsync: false,
|
|
10321
10882
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10322
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
10883
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10323
10884
|
resultLowerFns: [_lowerFlatResult([
|
|
10324
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10885
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10325
10886
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10326
10887
|
])
|
|
10327
10888
|
],
|
|
10889
|
+
hasResultPointer: true,
|
|
10328
10890
|
funcTypeIsAsync: false,
|
|
10329
10891
|
getCallbackFn: () => null,
|
|
10330
10892
|
getPostReturnFn: () => null,
|
|
@@ -10332,7 +10894,7 @@ null,
|
|
|
10332
10894
|
memoryIdx: 0,
|
|
10333
10895
|
stringEncoding: 'utf8',
|
|
10334
10896
|
getMemoryFn: () => memory0,
|
|
10335
|
-
getReallocFn:
|
|
10897
|
+
getReallocFn: undefined,
|
|
10336
10898
|
importFn: _trampoline16,
|
|
10337
10899
|
},
|
|
10338
10900
|
);
|
|
@@ -10347,11 +10909,25 @@ null,
|
|
|
10347
10909
|
resultLowerFns: [_lowerFlatResult([
|
|
10348
10910
|
[ 'ok', _lowerFlatOwn({
|
|
10349
10911
|
componentIdx: 0,
|
|
10350
|
-
lowerFn:
|
|
10912
|
+
lowerFn:
|
|
10913
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10914
|
+
if (!(obj instanceof InputStream)) {
|
|
10915
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10916
|
+
}
|
|
10917
|
+
let handle = obj[symbolRscHandle];
|
|
10918
|
+
if (!handle) {
|
|
10919
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10920
|
+
captureTable1.set(rep, obj);
|
|
10921
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10922
|
+
}
|
|
10923
|
+
return handle;
|
|
10924
|
+
}
|
|
10925
|
+
,
|
|
10351
10926
|
}), 8, 4, 4 ],
|
|
10352
10927
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10353
10928
|
])
|
|
10354
10929
|
],
|
|
10930
|
+
hasResultPointer: true,
|
|
10355
10931
|
funcTypeIsAsync: false,
|
|
10356
10932
|
getCallbackFn: () => null,
|
|
10357
10933
|
getPostReturnFn: () => null,
|
|
@@ -10359,7 +10935,7 @@ null,
|
|
|
10359
10935
|
memoryIdx: 0,
|
|
10360
10936
|
stringEncoding: 'utf8',
|
|
10361
10937
|
getMemoryFn: () => memory0,
|
|
10362
|
-
getReallocFn:
|
|
10938
|
+
getReallocFn: undefined,
|
|
10363
10939
|
importFn: _trampoline17,
|
|
10364
10940
|
},
|
|
10365
10941
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10373,11 +10949,25 @@ null,
|
|
|
10373
10949
|
resultLowerFns: [_lowerFlatResult([
|
|
10374
10950
|
[ 'ok', _lowerFlatOwn({
|
|
10375
10951
|
componentIdx: 0,
|
|
10376
|
-
lowerFn:
|
|
10952
|
+
lowerFn:
|
|
10953
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10954
|
+
if (!(obj instanceof InputStream)) {
|
|
10955
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10956
|
+
}
|
|
10957
|
+
let handle = obj[symbolRscHandle];
|
|
10958
|
+
if (!handle) {
|
|
10959
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10960
|
+
captureTable1.set(rep, obj);
|
|
10961
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10962
|
+
}
|
|
10963
|
+
return handle;
|
|
10964
|
+
}
|
|
10965
|
+
,
|
|
10377
10966
|
}), 8, 4, 4 ],
|
|
10378
10967
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10379
10968
|
])
|
|
10380
10969
|
],
|
|
10970
|
+
hasResultPointer: true,
|
|
10381
10971
|
funcTypeIsAsync: false,
|
|
10382
10972
|
getCallbackFn: () => null,
|
|
10383
10973
|
getPostReturnFn: () => null,
|
|
@@ -10385,7 +10975,7 @@ null,
|
|
|
10385
10975
|
memoryIdx: 0,
|
|
10386
10976
|
stringEncoding: 'utf8',
|
|
10387
10977
|
getMemoryFn: () => memory0,
|
|
10388
|
-
getReallocFn:
|
|
10978
|
+
getReallocFn: undefined,
|
|
10389
10979
|
importFn: _trampoline17,
|
|
10390
10980
|
},
|
|
10391
10981
|
);
|
|
@@ -10400,11 +10990,25 @@ null,
|
|
|
10400
10990
|
resultLowerFns: [_lowerFlatResult([
|
|
10401
10991
|
[ 'ok', _lowerFlatOwn({
|
|
10402
10992
|
componentIdx: 0,
|
|
10403
|
-
lowerFn:
|
|
10993
|
+
lowerFn:
|
|
10994
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10995
|
+
if (!(obj instanceof OutputStream)) {
|
|
10996
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10997
|
+
}
|
|
10998
|
+
let handle = obj[symbolRscHandle];
|
|
10999
|
+
if (!handle) {
|
|
11000
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11001
|
+
captureTable2.set(rep, obj);
|
|
11002
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11003
|
+
}
|
|
11004
|
+
return handle;
|
|
11005
|
+
}
|
|
11006
|
+
,
|
|
10404
11007
|
}), 8, 4, 4 ],
|
|
10405
11008
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10406
11009
|
])
|
|
10407
11010
|
],
|
|
11011
|
+
hasResultPointer: true,
|
|
10408
11012
|
funcTypeIsAsync: false,
|
|
10409
11013
|
getCallbackFn: () => null,
|
|
10410
11014
|
getPostReturnFn: () => null,
|
|
@@ -10412,7 +11016,7 @@ null,
|
|
|
10412
11016
|
memoryIdx: 0,
|
|
10413
11017
|
stringEncoding: 'utf8',
|
|
10414
11018
|
getMemoryFn: () => memory0,
|
|
10415
|
-
getReallocFn:
|
|
11019
|
+
getReallocFn: undefined,
|
|
10416
11020
|
importFn: _trampoline18,
|
|
10417
11021
|
},
|
|
10418
11022
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10426,11 +11030,25 @@ null,
|
|
|
10426
11030
|
resultLowerFns: [_lowerFlatResult([
|
|
10427
11031
|
[ 'ok', _lowerFlatOwn({
|
|
10428
11032
|
componentIdx: 0,
|
|
10429
|
-
lowerFn:
|
|
11033
|
+
lowerFn:
|
|
11034
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11035
|
+
if (!(obj instanceof OutputStream)) {
|
|
11036
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11037
|
+
}
|
|
11038
|
+
let handle = obj[symbolRscHandle];
|
|
11039
|
+
if (!handle) {
|
|
11040
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11041
|
+
captureTable2.set(rep, obj);
|
|
11042
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11043
|
+
}
|
|
11044
|
+
return handle;
|
|
11045
|
+
}
|
|
11046
|
+
,
|
|
10430
11047
|
}), 8, 4, 4 ],
|
|
10431
11048
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10432
11049
|
])
|
|
10433
11050
|
],
|
|
11051
|
+
hasResultPointer: true,
|
|
10434
11052
|
funcTypeIsAsync: false,
|
|
10435
11053
|
getCallbackFn: () => null,
|
|
10436
11054
|
getPostReturnFn: () => null,
|
|
@@ -10438,7 +11056,7 @@ null,
|
|
|
10438
11056
|
memoryIdx: 0,
|
|
10439
11057
|
stringEncoding: 'utf8',
|
|
10440
11058
|
getMemoryFn: () => memory0,
|
|
10441
|
-
getReallocFn:
|
|
11059
|
+
getReallocFn: undefined,
|
|
10442
11060
|
importFn: _trampoline18,
|
|
10443
11061
|
},
|
|
10444
11062
|
);
|
|
@@ -10453,11 +11071,25 @@ null,
|
|
|
10453
11071
|
resultLowerFns: [_lowerFlatResult([
|
|
10454
11072
|
[ 'ok', _lowerFlatOwn({
|
|
10455
11073
|
componentIdx: 0,
|
|
10456
|
-
lowerFn:
|
|
11074
|
+
lowerFn:
|
|
11075
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11076
|
+
if (!(obj instanceof OutputStream)) {
|
|
11077
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11078
|
+
}
|
|
11079
|
+
let handle = obj[symbolRscHandle];
|
|
11080
|
+
if (!handle) {
|
|
11081
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11082
|
+
captureTable2.set(rep, obj);
|
|
11083
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11084
|
+
}
|
|
11085
|
+
return handle;
|
|
11086
|
+
}
|
|
11087
|
+
,
|
|
10457
11088
|
}), 8, 4, 4 ],
|
|
10458
11089
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10459
11090
|
])
|
|
10460
11091
|
],
|
|
11092
|
+
hasResultPointer: true,
|
|
10461
11093
|
funcTypeIsAsync: false,
|
|
10462
11094
|
getCallbackFn: () => null,
|
|
10463
11095
|
getPostReturnFn: () => null,
|
|
@@ -10465,7 +11097,7 @@ null,
|
|
|
10465
11097
|
memoryIdx: 0,
|
|
10466
11098
|
stringEncoding: 'utf8',
|
|
10467
11099
|
getMemoryFn: () => memory0,
|
|
10468
|
-
getReallocFn:
|
|
11100
|
+
getReallocFn: undefined,
|
|
10469
11101
|
importFn: _trampoline19,
|
|
10470
11102
|
},
|
|
10471
11103
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10479,11 +11111,25 @@ null,
|
|
|
10479
11111
|
resultLowerFns: [_lowerFlatResult([
|
|
10480
11112
|
[ 'ok', _lowerFlatOwn({
|
|
10481
11113
|
componentIdx: 0,
|
|
10482
|
-
lowerFn:
|
|
11114
|
+
lowerFn:
|
|
11115
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11116
|
+
if (!(obj instanceof OutputStream)) {
|
|
11117
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11118
|
+
}
|
|
11119
|
+
let handle = obj[symbolRscHandle];
|
|
11120
|
+
if (!handle) {
|
|
11121
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11122
|
+
captureTable2.set(rep, obj);
|
|
11123
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11124
|
+
}
|
|
11125
|
+
return handle;
|
|
11126
|
+
}
|
|
11127
|
+
,
|
|
10483
11128
|
}), 8, 4, 4 ],
|
|
10484
11129
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10485
11130
|
])
|
|
10486
11131
|
],
|
|
11132
|
+
hasResultPointer: true,
|
|
10487
11133
|
funcTypeIsAsync: false,
|
|
10488
11134
|
getCallbackFn: () => null,
|
|
10489
11135
|
getPostReturnFn: () => null,
|
|
@@ -10491,7 +11137,7 @@ null,
|
|
|
10491
11137
|
memoryIdx: 0,
|
|
10492
11138
|
stringEncoding: 'utf8',
|
|
10493
11139
|
getMemoryFn: () => memory0,
|
|
10494
|
-
getReallocFn:
|
|
11140
|
+
getReallocFn: undefined,
|
|
10495
11141
|
importFn: _trampoline19,
|
|
10496
11142
|
},
|
|
10497
11143
|
);
|
|
@@ -10506,11 +11152,25 @@ null,
|
|
|
10506
11152
|
resultLowerFns: [_lowerFlatResult([
|
|
10507
11153
|
[ 'ok', _lowerFlatOwn({
|
|
10508
11154
|
componentIdx: 0,
|
|
10509
|
-
lowerFn:
|
|
11155
|
+
lowerFn:
|
|
11156
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11157
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11158
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11159
|
+
}
|
|
11160
|
+
let handle = obj[symbolRscHandle];
|
|
11161
|
+
if (!handle) {
|
|
11162
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11163
|
+
captureTable5.set(rep, obj);
|
|
11164
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11165
|
+
}
|
|
11166
|
+
return handle;
|
|
11167
|
+
}
|
|
11168
|
+
,
|
|
10510
11169
|
}), 8, 4, 4 ],
|
|
10511
11170
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10512
11171
|
])
|
|
10513
11172
|
],
|
|
11173
|
+
hasResultPointer: true,
|
|
10514
11174
|
funcTypeIsAsync: false,
|
|
10515
11175
|
getCallbackFn: () => null,
|
|
10516
11176
|
getPostReturnFn: () => null,
|
|
@@ -10518,7 +11178,7 @@ null,
|
|
|
10518
11178
|
memoryIdx: 0,
|
|
10519
11179
|
stringEncoding: 'utf8',
|
|
10520
11180
|
getMemoryFn: () => memory0,
|
|
10521
|
-
getReallocFn:
|
|
11181
|
+
getReallocFn: undefined,
|
|
10522
11182
|
importFn: _trampoline20,
|
|
10523
11183
|
},
|
|
10524
11184
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10532,11 +11192,25 @@ null,
|
|
|
10532
11192
|
resultLowerFns: [_lowerFlatResult([
|
|
10533
11193
|
[ 'ok', _lowerFlatOwn({
|
|
10534
11194
|
componentIdx: 0,
|
|
10535
|
-
lowerFn:
|
|
11195
|
+
lowerFn:
|
|
11196
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11197
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11198
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11199
|
+
}
|
|
11200
|
+
let handle = obj[symbolRscHandle];
|
|
11201
|
+
if (!handle) {
|
|
11202
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11203
|
+
captureTable5.set(rep, obj);
|
|
11204
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11205
|
+
}
|
|
11206
|
+
return handle;
|
|
11207
|
+
}
|
|
11208
|
+
,
|
|
10536
11209
|
}), 8, 4, 4 ],
|
|
10537
11210
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10538
11211
|
])
|
|
10539
11212
|
],
|
|
11213
|
+
hasResultPointer: true,
|
|
10540
11214
|
funcTypeIsAsync: false,
|
|
10541
11215
|
getCallbackFn: () => null,
|
|
10542
11216
|
getPostReturnFn: () => null,
|
|
@@ -10544,7 +11218,7 @@ null,
|
|
|
10544
11218
|
memoryIdx: 0,
|
|
10545
11219
|
stringEncoding: 'utf8',
|
|
10546
11220
|
getMemoryFn: () => memory0,
|
|
10547
|
-
getReallocFn:
|
|
11221
|
+
getReallocFn: undefined,
|
|
10548
11222
|
importFn: _trampoline20,
|
|
10549
11223
|
},
|
|
10550
11224
|
);
|
|
@@ -10557,22 +11231,23 @@ null,
|
|
|
10557
11231
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10558
11232
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10559
11233
|
resultLowerFns: [_lowerFlatResult([
|
|
10560
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11234
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10561
11235
|
[ 'none', null, 24, 8, 8 ],
|
|
10562
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11236
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10563
11237
|
])
|
|
10564
|
-
,
|
|
11238
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10565
11239
|
[ 'none', null, 24, 8, 8 ],
|
|
10566
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11240
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10567
11241
|
])
|
|
10568
|
-
,
|
|
11242
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10569
11243
|
[ 'none', null, 24, 8, 8 ],
|
|
10570
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11244
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10571
11245
|
])
|
|
10572
|
-
,
|
|
11246
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10573
11247
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10574
11248
|
])
|
|
10575
11249
|
],
|
|
11250
|
+
hasResultPointer: true,
|
|
10576
11251
|
funcTypeIsAsync: false,
|
|
10577
11252
|
getCallbackFn: () => null,
|
|
10578
11253
|
getPostReturnFn: () => null,
|
|
@@ -10580,7 +11255,7 @@ null,
|
|
|
10580
11255
|
memoryIdx: 0,
|
|
10581
11256
|
stringEncoding: 'utf8',
|
|
10582
11257
|
getMemoryFn: () => memory0,
|
|
10583
|
-
getReallocFn:
|
|
11258
|
+
getReallocFn: undefined,
|
|
10584
11259
|
importFn: _trampoline21,
|
|
10585
11260
|
},
|
|
10586
11261
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10592,22 +11267,23 @@ null,
|
|
|
10592
11267
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10593
11268
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10594
11269
|
resultLowerFns: [_lowerFlatResult([
|
|
10595
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11270
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10596
11271
|
[ 'none', null, 24, 8, 8 ],
|
|
10597
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11272
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10598
11273
|
])
|
|
10599
|
-
,
|
|
11274
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10600
11275
|
[ 'none', null, 24, 8, 8 ],
|
|
10601
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11276
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10602
11277
|
])
|
|
10603
|
-
,
|
|
11278
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10604
11279
|
[ 'none', null, 24, 8, 8 ],
|
|
10605
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11280
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10606
11281
|
])
|
|
10607
|
-
,
|
|
11282
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10608
11283
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10609
11284
|
])
|
|
10610
11285
|
],
|
|
11286
|
+
hasResultPointer: true,
|
|
10611
11287
|
funcTypeIsAsync: false,
|
|
10612
11288
|
getCallbackFn: () => null,
|
|
10613
11289
|
getPostReturnFn: () => null,
|
|
@@ -10615,7 +11291,7 @@ null,
|
|
|
10615
11291
|
memoryIdx: 0,
|
|
10616
11292
|
stringEncoding: 'utf8',
|
|
10617
11293
|
getMemoryFn: () => memory0,
|
|
10618
|
-
getReallocFn:
|
|
11294
|
+
getReallocFn: undefined,
|
|
10619
11295
|
importFn: _trampoline21,
|
|
10620
11296
|
},
|
|
10621
11297
|
);
|
|
@@ -10626,24 +11302,25 @@ null,
|
|
|
10626
11302
|
componentIdx: 0,
|
|
10627
11303
|
isAsync: false,
|
|
10628
11304
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10629
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
11305
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10630
11306
|
resultLowerFns: [_lowerFlatResult([
|
|
10631
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11307
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10632
11308
|
[ 'none', null, 24, 8, 8 ],
|
|
10633
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11309
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10634
11310
|
])
|
|
10635
|
-
,
|
|
11311
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10636
11312
|
[ 'none', null, 24, 8, 8 ],
|
|
10637
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11313
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10638
11314
|
])
|
|
10639
|
-
,
|
|
11315
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10640
11316
|
[ 'none', null, 24, 8, 8 ],
|
|
10641
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11317
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10642
11318
|
])
|
|
10643
|
-
,
|
|
11319
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10644
11320
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10645
11321
|
])
|
|
10646
11322
|
],
|
|
11323
|
+
hasResultPointer: true,
|
|
10647
11324
|
funcTypeIsAsync: false,
|
|
10648
11325
|
getCallbackFn: () => null,
|
|
10649
11326
|
getPostReturnFn: () => null,
|
|
@@ -10651,7 +11328,7 @@ null,
|
|
|
10651
11328
|
memoryIdx: 0,
|
|
10652
11329
|
stringEncoding: 'utf8',
|
|
10653
11330
|
getMemoryFn: () => memory0,
|
|
10654
|
-
getReallocFn:
|
|
11331
|
+
getReallocFn: undefined,
|
|
10655
11332
|
importFn: _trampoline22,
|
|
10656
11333
|
},
|
|
10657
11334
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10661,24 +11338,25 @@ null,
|
|
|
10661
11338
|
componentIdx: 0,
|
|
10662
11339
|
isAsync: false,
|
|
10663
11340
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10664
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
11341
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10665
11342
|
resultLowerFns: [_lowerFlatResult([
|
|
10666
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11343
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10667
11344
|
[ 'none', null, 24, 8, 8 ],
|
|
10668
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11345
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10669
11346
|
])
|
|
10670
|
-
,
|
|
11347
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10671
11348
|
[ 'none', null, 24, 8, 8 ],
|
|
10672
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11349
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10673
11350
|
])
|
|
10674
|
-
,
|
|
11351
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10675
11352
|
[ 'none', null, 24, 8, 8 ],
|
|
10676
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11353
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10677
11354
|
])
|
|
10678
|
-
,
|
|
11355
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10679
11356
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10680
11357
|
])
|
|
10681
11358
|
],
|
|
11359
|
+
hasResultPointer: true,
|
|
10682
11360
|
funcTypeIsAsync: false,
|
|
10683
11361
|
getCallbackFn: () => null,
|
|
10684
11362
|
getPostReturnFn: () => null,
|
|
@@ -10686,7 +11364,7 @@ null,
|
|
|
10686
11364
|
memoryIdx: 0,
|
|
10687
11365
|
stringEncoding: 'utf8',
|
|
10688
11366
|
getMemoryFn: () => memory0,
|
|
10689
|
-
getReallocFn:
|
|
11367
|
+
getReallocFn: undefined,
|
|
10690
11368
|
importFn: _trampoline22,
|
|
10691
11369
|
},
|
|
10692
11370
|
);
|
|
@@ -10697,15 +11375,29 @@ null,
|
|
|
10697
11375
|
componentIdx: 0,
|
|
10698
11376
|
isAsync: false,
|
|
10699
11377
|
isManualAsync: _trampoline23.manuallyAsync,
|
|
10700
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
11378
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 })],
|
|
10701
11379
|
resultLowerFns: [_lowerFlatResult([
|
|
10702
11380
|
[ 'ok', _lowerFlatOwn({
|
|
10703
11381
|
componentIdx: 0,
|
|
10704
|
-
lowerFn:
|
|
11382
|
+
lowerFn:
|
|
11383
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11384
|
+
if (!(obj instanceof Descriptor)) {
|
|
11385
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11386
|
+
}
|
|
11387
|
+
let handle = obj[symbolRscHandle];
|
|
11388
|
+
if (!handle) {
|
|
11389
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11390
|
+
captureTable6.set(rep, obj);
|
|
11391
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11392
|
+
}
|
|
11393
|
+
return handle;
|
|
11394
|
+
}
|
|
11395
|
+
,
|
|
10705
11396
|
}), 8, 4, 4 ],
|
|
10706
11397
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10707
11398
|
])
|
|
10708
11399
|
],
|
|
11400
|
+
hasResultPointer: true,
|
|
10709
11401
|
funcTypeIsAsync: false,
|
|
10710
11402
|
getCallbackFn: () => null,
|
|
10711
11403
|
getPostReturnFn: () => null,
|
|
@@ -10713,7 +11405,7 @@ null,
|
|
|
10713
11405
|
memoryIdx: 0,
|
|
10714
11406
|
stringEncoding: 'utf8',
|
|
10715
11407
|
getMemoryFn: () => memory0,
|
|
10716
|
-
getReallocFn:
|
|
11408
|
+
getReallocFn: undefined,
|
|
10717
11409
|
importFn: _trampoline23,
|
|
10718
11410
|
},
|
|
10719
11411
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10723,15 +11415,29 @@ null,
|
|
|
10723
11415
|
componentIdx: 0,
|
|
10724
11416
|
isAsync: false,
|
|
10725
11417
|
isManualAsync: _trampoline23.manuallyAsync,
|
|
10726
|
-
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['
|
|
11418
|
+
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 })],
|
|
10727
11419
|
resultLowerFns: [_lowerFlatResult([
|
|
10728
11420
|
[ 'ok', _lowerFlatOwn({
|
|
10729
11421
|
componentIdx: 0,
|
|
10730
|
-
lowerFn:
|
|
11422
|
+
lowerFn:
|
|
11423
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11424
|
+
if (!(obj instanceof Descriptor)) {
|
|
11425
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11426
|
+
}
|
|
11427
|
+
let handle = obj[symbolRscHandle];
|
|
11428
|
+
if (!handle) {
|
|
11429
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11430
|
+
captureTable6.set(rep, obj);
|
|
11431
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11432
|
+
}
|
|
11433
|
+
return handle;
|
|
11434
|
+
}
|
|
11435
|
+
,
|
|
10731
11436
|
}), 8, 4, 4 ],
|
|
10732
11437
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10733
11438
|
])
|
|
10734
11439
|
],
|
|
11440
|
+
hasResultPointer: true,
|
|
10735
11441
|
funcTypeIsAsync: false,
|
|
10736
11442
|
getCallbackFn: () => null,
|
|
10737
11443
|
getPostReturnFn: () => null,
|
|
@@ -10739,7 +11445,7 @@ null,
|
|
|
10739
11445
|
memoryIdx: 0,
|
|
10740
11446
|
stringEncoding: 'utf8',
|
|
10741
11447
|
getMemoryFn: () => memory0,
|
|
10742
|
-
getReallocFn:
|
|
11448
|
+
getReallocFn: undefined,
|
|
10743
11449
|
importFn: _trampoline23,
|
|
10744
11450
|
},
|
|
10745
11451
|
);
|
|
@@ -10754,12 +11460,13 @@ null,
|
|
|
10754
11460
|
resultLowerFns: [_lowerFlatResult([
|
|
10755
11461
|
[ 'ok', _lowerFlatOption([
|
|
10756
11462
|
[ 'none', null, 16, 4, 4 ],
|
|
10757
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11463
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10758
11464
|
])
|
|
10759
11465
|
, 20, 4, 4 ],
|
|
10760
11466
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10761
11467
|
])
|
|
10762
11468
|
],
|
|
11469
|
+
hasResultPointer: true,
|
|
10763
11470
|
funcTypeIsAsync: false,
|
|
10764
11471
|
getCallbackFn: () => null,
|
|
10765
11472
|
getPostReturnFn: () => null,
|
|
@@ -10781,12 +11488,13 @@ null,
|
|
|
10781
11488
|
resultLowerFns: [_lowerFlatResult([
|
|
10782
11489
|
[ 'ok', _lowerFlatOption([
|
|
10783
11490
|
[ 'none', null, 16, 4, 4 ],
|
|
10784
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11491
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10785
11492
|
])
|
|
10786
11493
|
, 20, 4, 4 ],
|
|
10787
11494
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10788
11495
|
])
|
|
10789
11496
|
],
|
|
11497
|
+
hasResultPointer: true,
|
|
10790
11498
|
funcTypeIsAsync: false,
|
|
10791
11499
|
getCallbackFn: () => null,
|
|
10792
11500
|
getPostReturnFn: () => null,
|
|
@@ -10814,10 +11522,24 @@ null,
|
|
|
10814
11522
|
}), 12, 4, 4 ],
|
|
10815
11523
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10816
11524
|
componentIdx: 0,
|
|
10817
|
-
lowerFn:
|
|
11525
|
+
lowerFn:
|
|
11526
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11527
|
+
if (!(obj instanceof Error$1)) {
|
|
11528
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11529
|
+
}
|
|
11530
|
+
let handle = obj[symbolRscHandle];
|
|
11531
|
+
if (!handle) {
|
|
11532
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11533
|
+
captureTable0.set(rep, obj);
|
|
11534
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11535
|
+
}
|
|
11536
|
+
return handle;
|
|
11537
|
+
}
|
|
11538
|
+
,
|
|
10818
11539
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10819
11540
|
])
|
|
10820
11541
|
],
|
|
11542
|
+
hasResultPointer: true,
|
|
10821
11543
|
funcTypeIsAsync: false,
|
|
10822
11544
|
getCallbackFn: () => null,
|
|
10823
11545
|
getPostReturnFn: () => null,
|
|
@@ -10844,10 +11566,24 @@ null,
|
|
|
10844
11566
|
}), 12, 4, 4 ],
|
|
10845
11567
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10846
11568
|
componentIdx: 0,
|
|
10847
|
-
lowerFn:
|
|
11569
|
+
lowerFn:
|
|
11570
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11571
|
+
if (!(obj instanceof Error$1)) {
|
|
11572
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11573
|
+
}
|
|
11574
|
+
let handle = obj[symbolRscHandle];
|
|
11575
|
+
if (!handle) {
|
|
11576
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11577
|
+
captureTable0.set(rep, obj);
|
|
11578
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11579
|
+
}
|
|
11580
|
+
return handle;
|
|
11581
|
+
}
|
|
11582
|
+
,
|
|
10848
11583
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10849
11584
|
])
|
|
10850
11585
|
],
|
|
11586
|
+
hasResultPointer: true,
|
|
10851
11587
|
funcTypeIsAsync: false,
|
|
10852
11588
|
getCallbackFn: () => null,
|
|
10853
11589
|
getPostReturnFn: () => null,
|
|
@@ -10875,10 +11611,24 @@ null,
|
|
|
10875
11611
|
}), 12, 4, 4 ],
|
|
10876
11612
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10877
11613
|
componentIdx: 0,
|
|
10878
|
-
lowerFn:
|
|
11614
|
+
lowerFn:
|
|
11615
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11616
|
+
if (!(obj instanceof Error$1)) {
|
|
11617
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11618
|
+
}
|
|
11619
|
+
let handle = obj[symbolRscHandle];
|
|
11620
|
+
if (!handle) {
|
|
11621
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11622
|
+
captureTable0.set(rep, obj);
|
|
11623
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11624
|
+
}
|
|
11625
|
+
return handle;
|
|
11626
|
+
}
|
|
11627
|
+
,
|
|
10879
11628
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10880
11629
|
])
|
|
10881
11630
|
],
|
|
11631
|
+
hasResultPointer: true,
|
|
10882
11632
|
funcTypeIsAsync: false,
|
|
10883
11633
|
getCallbackFn: () => null,
|
|
10884
11634
|
getPostReturnFn: () => null,
|
|
@@ -10905,10 +11655,24 @@ null,
|
|
|
10905
11655
|
}), 12, 4, 4 ],
|
|
10906
11656
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10907
11657
|
componentIdx: 0,
|
|
10908
|
-
lowerFn:
|
|
11658
|
+
lowerFn:
|
|
11659
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11660
|
+
if (!(obj instanceof Error$1)) {
|
|
11661
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11662
|
+
}
|
|
11663
|
+
let handle = obj[symbolRscHandle];
|
|
11664
|
+
if (!handle) {
|
|
11665
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11666
|
+
captureTable0.set(rep, obj);
|
|
11667
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11668
|
+
}
|
|
11669
|
+
return handle;
|
|
11670
|
+
}
|
|
11671
|
+
,
|
|
10909
11672
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10910
11673
|
])
|
|
10911
11674
|
],
|
|
11675
|
+
hasResultPointer: true,
|
|
10912
11676
|
funcTypeIsAsync: false,
|
|
10913
11677
|
getCallbackFn: () => null,
|
|
10914
11678
|
getPostReturnFn: () => null,
|
|
@@ -10932,10 +11696,24 @@ null,
|
|
|
10932
11696
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10933
11697
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10934
11698
|
componentIdx: 0,
|
|
10935
|
-
lowerFn:
|
|
11699
|
+
lowerFn:
|
|
11700
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11701
|
+
if (!(obj instanceof Error$1)) {
|
|
11702
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11703
|
+
}
|
|
11704
|
+
let handle = obj[symbolRscHandle];
|
|
11705
|
+
if (!handle) {
|
|
11706
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11707
|
+
captureTable0.set(rep, obj);
|
|
11708
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11709
|
+
}
|
|
11710
|
+
return handle;
|
|
11711
|
+
}
|
|
11712
|
+
,
|
|
10936
11713
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10937
11714
|
])
|
|
10938
11715
|
],
|
|
11716
|
+
hasResultPointer: true,
|
|
10939
11717
|
funcTypeIsAsync: false,
|
|
10940
11718
|
getCallbackFn: () => null,
|
|
10941
11719
|
getPostReturnFn: () => null,
|
|
@@ -10943,7 +11721,7 @@ null,
|
|
|
10943
11721
|
memoryIdx: 0,
|
|
10944
11722
|
stringEncoding: 'utf8',
|
|
10945
11723
|
getMemoryFn: () => memory0,
|
|
10946
|
-
getReallocFn:
|
|
11724
|
+
getReallocFn: undefined,
|
|
10947
11725
|
importFn: _trampoline27,
|
|
10948
11726
|
},
|
|
10949
11727
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10958,10 +11736,24 @@ null,
|
|
|
10958
11736
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10959
11737
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10960
11738
|
componentIdx: 0,
|
|
10961
|
-
lowerFn:
|
|
11739
|
+
lowerFn:
|
|
11740
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11741
|
+
if (!(obj instanceof Error$1)) {
|
|
11742
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11743
|
+
}
|
|
11744
|
+
let handle = obj[symbolRscHandle];
|
|
11745
|
+
if (!handle) {
|
|
11746
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11747
|
+
captureTable0.set(rep, obj);
|
|
11748
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11749
|
+
}
|
|
11750
|
+
return handle;
|
|
11751
|
+
}
|
|
11752
|
+
,
|
|
10962
11753
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10963
11754
|
])
|
|
10964
11755
|
],
|
|
11756
|
+
hasResultPointer: true,
|
|
10965
11757
|
funcTypeIsAsync: false,
|
|
10966
11758
|
getCallbackFn: () => null,
|
|
10967
11759
|
getPostReturnFn: () => null,
|
|
@@ -10969,7 +11761,7 @@ null,
|
|
|
10969
11761
|
memoryIdx: 0,
|
|
10970
11762
|
stringEncoding: 'utf8',
|
|
10971
11763
|
getMemoryFn: () => memory0,
|
|
10972
|
-
getReallocFn:
|
|
11764
|
+
getReallocFn: undefined,
|
|
10973
11765
|
importFn: _trampoline27,
|
|
10974
11766
|
},
|
|
10975
11767
|
);
|
|
@@ -10984,15 +11776,30 @@ null,
|
|
|
10984
11776
|
elemLiftFn: _liftFlatU8,
|
|
10985
11777
|
elemAlign32: 1,
|
|
10986
11778
|
elemSize32: 1,
|
|
11779
|
+
typedArray: Uint8Array,
|
|
10987
11780
|
})],
|
|
10988
11781
|
resultLowerFns: [_lowerFlatResult([
|
|
10989
11782
|
[ 'ok', null, 12, 4, 4 ],
|
|
10990
11783
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10991
11784
|
componentIdx: 0,
|
|
10992
|
-
lowerFn:
|
|
11785
|
+
lowerFn:
|
|
11786
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11787
|
+
if (!(obj instanceof Error$1)) {
|
|
11788
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11789
|
+
}
|
|
11790
|
+
let handle = obj[symbolRscHandle];
|
|
11791
|
+
if (!handle) {
|
|
11792
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11793
|
+
captureTable0.set(rep, obj);
|
|
11794
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11795
|
+
}
|
|
11796
|
+
return handle;
|
|
11797
|
+
}
|
|
11798
|
+
,
|
|
10993
11799
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10994
11800
|
])
|
|
10995
11801
|
],
|
|
11802
|
+
hasResultPointer: true,
|
|
10996
11803
|
funcTypeIsAsync: false,
|
|
10997
11804
|
getCallbackFn: () => null,
|
|
10998
11805
|
getPostReturnFn: () => null,
|
|
@@ -11000,7 +11807,7 @@ null,
|
|
|
11000
11807
|
memoryIdx: 0,
|
|
11001
11808
|
stringEncoding: 'utf8',
|
|
11002
11809
|
getMemoryFn: () => memory0,
|
|
11003
|
-
getReallocFn:
|
|
11810
|
+
getReallocFn: undefined,
|
|
11004
11811
|
importFn: _trampoline28,
|
|
11005
11812
|
},
|
|
11006
11813
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11014,15 +11821,30 @@ null,
|
|
|
11014
11821
|
elemLiftFn: _liftFlatU8,
|
|
11015
11822
|
elemAlign32: 1,
|
|
11016
11823
|
elemSize32: 1,
|
|
11824
|
+
typedArray: Uint8Array,
|
|
11017
11825
|
})],
|
|
11018
11826
|
resultLowerFns: [_lowerFlatResult([
|
|
11019
11827
|
[ 'ok', null, 12, 4, 4 ],
|
|
11020
11828
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11021
11829
|
componentIdx: 0,
|
|
11022
|
-
lowerFn:
|
|
11830
|
+
lowerFn:
|
|
11831
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11832
|
+
if (!(obj instanceof Error$1)) {
|
|
11833
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11834
|
+
}
|
|
11835
|
+
let handle = obj[symbolRscHandle];
|
|
11836
|
+
if (!handle) {
|
|
11837
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11838
|
+
captureTable0.set(rep, obj);
|
|
11839
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11840
|
+
}
|
|
11841
|
+
return handle;
|
|
11842
|
+
}
|
|
11843
|
+
,
|
|
11023
11844
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11024
11845
|
])
|
|
11025
11846
|
],
|
|
11847
|
+
hasResultPointer: true,
|
|
11026
11848
|
funcTypeIsAsync: false,
|
|
11027
11849
|
getCallbackFn: () => null,
|
|
11028
11850
|
getPostReturnFn: () => null,
|
|
@@ -11030,7 +11852,7 @@ null,
|
|
|
11030
11852
|
memoryIdx: 0,
|
|
11031
11853
|
stringEncoding: 'utf8',
|
|
11032
11854
|
getMemoryFn: () => memory0,
|
|
11033
|
-
getReallocFn:
|
|
11855
|
+
getReallocFn: undefined,
|
|
11034
11856
|
importFn: _trampoline28,
|
|
11035
11857
|
},
|
|
11036
11858
|
);
|
|
@@ -11045,15 +11867,30 @@ null,
|
|
|
11045
11867
|
elemLiftFn: _liftFlatU8,
|
|
11046
11868
|
elemAlign32: 1,
|
|
11047
11869
|
elemSize32: 1,
|
|
11870
|
+
typedArray: Uint8Array,
|
|
11048
11871
|
})],
|
|
11049
11872
|
resultLowerFns: [_lowerFlatResult([
|
|
11050
11873
|
[ 'ok', null, 12, 4, 4 ],
|
|
11051
11874
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11052
11875
|
componentIdx: 0,
|
|
11053
|
-
lowerFn:
|
|
11876
|
+
lowerFn:
|
|
11877
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11878
|
+
if (!(obj instanceof Error$1)) {
|
|
11879
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11880
|
+
}
|
|
11881
|
+
let handle = obj[symbolRscHandle];
|
|
11882
|
+
if (!handle) {
|
|
11883
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11884
|
+
captureTable0.set(rep, obj);
|
|
11885
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11886
|
+
}
|
|
11887
|
+
return handle;
|
|
11888
|
+
}
|
|
11889
|
+
,
|
|
11054
11890
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11055
11891
|
])
|
|
11056
11892
|
],
|
|
11893
|
+
hasResultPointer: true,
|
|
11057
11894
|
funcTypeIsAsync: false,
|
|
11058
11895
|
getCallbackFn: () => null,
|
|
11059
11896
|
getPostReturnFn: () => null,
|
|
@@ -11061,7 +11898,7 @@ null,
|
|
|
11061
11898
|
memoryIdx: 0,
|
|
11062
11899
|
stringEncoding: 'utf8',
|
|
11063
11900
|
getMemoryFn: () => memory0,
|
|
11064
|
-
getReallocFn:
|
|
11901
|
+
getReallocFn: undefined,
|
|
11065
11902
|
importFn: _trampoline29,
|
|
11066
11903
|
},
|
|
11067
11904
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11075,15 +11912,30 @@ null,
|
|
|
11075
11912
|
elemLiftFn: _liftFlatU8,
|
|
11076
11913
|
elemAlign32: 1,
|
|
11077
11914
|
elemSize32: 1,
|
|
11915
|
+
typedArray: Uint8Array,
|
|
11078
11916
|
})],
|
|
11079
11917
|
resultLowerFns: [_lowerFlatResult([
|
|
11080
11918
|
[ 'ok', null, 12, 4, 4 ],
|
|
11081
11919
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11082
11920
|
componentIdx: 0,
|
|
11083
|
-
lowerFn:
|
|
11921
|
+
lowerFn:
|
|
11922
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11923
|
+
if (!(obj instanceof Error$1)) {
|
|
11924
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11925
|
+
}
|
|
11926
|
+
let handle = obj[symbolRscHandle];
|
|
11927
|
+
if (!handle) {
|
|
11928
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11929
|
+
captureTable0.set(rep, obj);
|
|
11930
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11931
|
+
}
|
|
11932
|
+
return handle;
|
|
11933
|
+
}
|
|
11934
|
+
,
|
|
11084
11935
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11085
11936
|
])
|
|
11086
11937
|
],
|
|
11938
|
+
hasResultPointer: true,
|
|
11087
11939
|
funcTypeIsAsync: false,
|
|
11088
11940
|
getCallbackFn: () => null,
|
|
11089
11941
|
getPostReturnFn: () => null,
|
|
@@ -11091,7 +11943,7 @@ null,
|
|
|
11091
11943
|
memoryIdx: 0,
|
|
11092
11944
|
stringEncoding: 'utf8',
|
|
11093
11945
|
getMemoryFn: () => memory0,
|
|
11094
|
-
getReallocFn:
|
|
11946
|
+
getReallocFn: undefined,
|
|
11095
11947
|
importFn: _trampoline29,
|
|
11096
11948
|
},
|
|
11097
11949
|
);
|
|
@@ -11107,10 +11959,24 @@ null,
|
|
|
11107
11959
|
[ 'ok', null, 12, 4, 4 ],
|
|
11108
11960
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11109
11961
|
componentIdx: 0,
|
|
11110
|
-
lowerFn:
|
|
11962
|
+
lowerFn:
|
|
11963
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11964
|
+
if (!(obj instanceof Error$1)) {
|
|
11965
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11966
|
+
}
|
|
11967
|
+
let handle = obj[symbolRscHandle];
|
|
11968
|
+
if (!handle) {
|
|
11969
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11970
|
+
captureTable0.set(rep, obj);
|
|
11971
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11972
|
+
}
|
|
11973
|
+
return handle;
|
|
11974
|
+
}
|
|
11975
|
+
,
|
|
11111
11976
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11112
11977
|
])
|
|
11113
11978
|
],
|
|
11979
|
+
hasResultPointer: true,
|
|
11114
11980
|
funcTypeIsAsync: false,
|
|
11115
11981
|
getCallbackFn: () => null,
|
|
11116
11982
|
getPostReturnFn: () => null,
|
|
@@ -11118,7 +11984,7 @@ null,
|
|
|
11118
11984
|
memoryIdx: 0,
|
|
11119
11985
|
stringEncoding: 'utf8',
|
|
11120
11986
|
getMemoryFn: () => memory0,
|
|
11121
|
-
getReallocFn:
|
|
11987
|
+
getReallocFn: undefined,
|
|
11122
11988
|
importFn: _trampoline30,
|
|
11123
11989
|
},
|
|
11124
11990
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11133,10 +11999,24 @@ null,
|
|
|
11133
11999
|
[ 'ok', null, 12, 4, 4 ],
|
|
11134
12000
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11135
12001
|
componentIdx: 0,
|
|
11136
|
-
lowerFn:
|
|
12002
|
+
lowerFn:
|
|
12003
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12004
|
+
if (!(obj instanceof Error$1)) {
|
|
12005
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12006
|
+
}
|
|
12007
|
+
let handle = obj[symbolRscHandle];
|
|
12008
|
+
if (!handle) {
|
|
12009
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12010
|
+
captureTable0.set(rep, obj);
|
|
12011
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12012
|
+
}
|
|
12013
|
+
return handle;
|
|
12014
|
+
}
|
|
12015
|
+
,
|
|
11137
12016
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11138
12017
|
])
|
|
11139
12018
|
],
|
|
12019
|
+
hasResultPointer: true,
|
|
11140
12020
|
funcTypeIsAsync: false,
|
|
11141
12021
|
getCallbackFn: () => null,
|
|
11142
12022
|
getPostReturnFn: () => null,
|
|
@@ -11144,7 +12024,7 @@ null,
|
|
|
11144
12024
|
memoryIdx: 0,
|
|
11145
12025
|
stringEncoding: 'utf8',
|
|
11146
12026
|
getMemoryFn: () => memory0,
|
|
11147
|
-
getReallocFn:
|
|
12027
|
+
getReallocFn: undefined,
|
|
11148
12028
|
importFn: _trampoline30,
|
|
11149
12029
|
},
|
|
11150
12030
|
);
|
|
@@ -11161,6 +12041,7 @@ null,
|
|
|
11161
12041
|
elemSize32: 1,
|
|
11162
12042
|
elemAlign32: 1,
|
|
11163
12043
|
})],
|
|
12044
|
+
hasResultPointer: true,
|
|
11164
12045
|
funcTypeIsAsync: false,
|
|
11165
12046
|
getCallbackFn: () => null,
|
|
11166
12047
|
getPostReturnFn: () => null,
|
|
@@ -11184,6 +12065,7 @@ null,
|
|
|
11184
12065
|
elemSize32: 1,
|
|
11185
12066
|
elemAlign32: 1,
|
|
11186
12067
|
})],
|
|
12068
|
+
hasResultPointer: true,
|
|
11187
12069
|
funcTypeIsAsync: false,
|
|
11188
12070
|
getCallbackFn: () => null,
|
|
11189
12071
|
getPostReturnFn: () => null,
|
|
@@ -11204,13 +12086,27 @@ null,
|
|
|
11204
12086
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11205
12087
|
paramLiftFns: [],
|
|
11206
12088
|
resultLowerFns: [_lowerFlatList({
|
|
11207
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12089
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11208
12090
|
componentIdx: 0,
|
|
11209
|
-
lowerFn:
|
|
11210
|
-
|
|
12091
|
+
lowerFn:
|
|
12092
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12093
|
+
if (!(obj instanceof Descriptor)) {
|
|
12094
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12095
|
+
}
|
|
12096
|
+
let handle = obj[symbolRscHandle];
|
|
12097
|
+
if (!handle) {
|
|
12098
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12099
|
+
captureTable6.set(rep, obj);
|
|
12100
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12101
|
+
}
|
|
12102
|
+
return handle;
|
|
12103
|
+
}
|
|
12104
|
+
,
|
|
12105
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11211
12106
|
elemSize32: 12,
|
|
11212
12107
|
elemAlign32: 4,
|
|
11213
12108
|
})],
|
|
12109
|
+
hasResultPointer: true,
|
|
11214
12110
|
funcTypeIsAsync: false,
|
|
11215
12111
|
getCallbackFn: () => null,
|
|
11216
12112
|
getPostReturnFn: () => null,
|
|
@@ -11230,13 +12126,27 @@ null,
|
|
|
11230
12126
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11231
12127
|
paramLiftFns: [],
|
|
11232
12128
|
resultLowerFns: [_lowerFlatList({
|
|
11233
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12129
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11234
12130
|
componentIdx: 0,
|
|
11235
|
-
lowerFn:
|
|
11236
|
-
|
|
12131
|
+
lowerFn:
|
|
12132
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12133
|
+
if (!(obj instanceof Descriptor)) {
|
|
12134
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12135
|
+
}
|
|
12136
|
+
let handle = obj[symbolRscHandle];
|
|
12137
|
+
if (!handle) {
|
|
12138
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12139
|
+
captureTable6.set(rep, obj);
|
|
12140
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12141
|
+
}
|
|
12142
|
+
return handle;
|
|
12143
|
+
}
|
|
12144
|
+
,
|
|
12145
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11237
12146
|
elemSize32: 12,
|
|
11238
12147
|
elemAlign32: 4,
|
|
11239
12148
|
})],
|
|
12149
|
+
hasResultPointer: true,
|
|
11240
12150
|
funcTypeIsAsync: false,
|
|
11241
12151
|
getCallbackFn: () => null,
|
|
11242
12152
|
getPostReturnFn: () => null,
|
|
@@ -11260,10 +12170,24 @@ null,
|
|
|
11260
12170
|
[ 'none', null, 8, 4, 4 ],
|
|
11261
12171
|
[ 'some', _lowerFlatOwn({
|
|
11262
12172
|
componentIdx: 0,
|
|
11263
|
-
lowerFn:
|
|
12173
|
+
lowerFn:
|
|
12174
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12175
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12176
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12177
|
+
}
|
|
12178
|
+
let handle = obj[symbolRscHandle];
|
|
12179
|
+
if (!handle) {
|
|
12180
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12181
|
+
captureTable3.set(rep, obj);
|
|
12182
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12183
|
+
}
|
|
12184
|
+
return handle;
|
|
12185
|
+
}
|
|
12186
|
+
,
|
|
11264
12187
|
}), 8, 4, 4 ],
|
|
11265
12188
|
])
|
|
11266
12189
|
],
|
|
12190
|
+
hasResultPointer: true,
|
|
11267
12191
|
funcTypeIsAsync: false,
|
|
11268
12192
|
getCallbackFn: () => null,
|
|
11269
12193
|
getPostReturnFn: () => null,
|
|
@@ -11271,7 +12195,7 @@ null,
|
|
|
11271
12195
|
memoryIdx: 0,
|
|
11272
12196
|
stringEncoding: 'utf8',
|
|
11273
12197
|
getMemoryFn: () => memory0,
|
|
11274
|
-
getReallocFn:
|
|
12198
|
+
getReallocFn: undefined,
|
|
11275
12199
|
importFn: _trampoline33,
|
|
11276
12200
|
},
|
|
11277
12201
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11286,10 +12210,24 @@ null,
|
|
|
11286
12210
|
[ 'none', null, 8, 4, 4 ],
|
|
11287
12211
|
[ 'some', _lowerFlatOwn({
|
|
11288
12212
|
componentIdx: 0,
|
|
11289
|
-
lowerFn:
|
|
12213
|
+
lowerFn:
|
|
12214
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12215
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12216
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12217
|
+
}
|
|
12218
|
+
let handle = obj[symbolRscHandle];
|
|
12219
|
+
if (!handle) {
|
|
12220
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12221
|
+
captureTable3.set(rep, obj);
|
|
12222
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12223
|
+
}
|
|
12224
|
+
return handle;
|
|
12225
|
+
}
|
|
12226
|
+
,
|
|
11290
12227
|
}), 8, 4, 4 ],
|
|
11291
12228
|
])
|
|
11292
12229
|
],
|
|
12230
|
+
hasResultPointer: true,
|
|
11293
12231
|
funcTypeIsAsync: false,
|
|
11294
12232
|
getCallbackFn: () => null,
|
|
11295
12233
|
getPostReturnFn: () => null,
|
|
@@ -11297,7 +12235,7 @@ null,
|
|
|
11297
12235
|
memoryIdx: 0,
|
|
11298
12236
|
stringEncoding: 'utf8',
|
|
11299
12237
|
getMemoryFn: () => memory0,
|
|
11300
|
-
getReallocFn:
|
|
12238
|
+
getReallocFn: undefined,
|
|
11301
12239
|
importFn: _trampoline33,
|
|
11302
12240
|
},
|
|
11303
12241
|
);
|
|
@@ -11313,10 +12251,24 @@ null,
|
|
|
11313
12251
|
[ 'none', null, 8, 4, 4 ],
|
|
11314
12252
|
[ 'some', _lowerFlatOwn({
|
|
11315
12253
|
componentIdx: 0,
|
|
11316
|
-
lowerFn:
|
|
12254
|
+
lowerFn:
|
|
12255
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12256
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12257
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12258
|
+
}
|
|
12259
|
+
let handle = obj[symbolRscHandle];
|
|
12260
|
+
if (!handle) {
|
|
12261
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12262
|
+
captureTable4.set(rep, obj);
|
|
12263
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12264
|
+
}
|
|
12265
|
+
return handle;
|
|
12266
|
+
}
|
|
12267
|
+
,
|
|
11317
12268
|
}), 8, 4, 4 ],
|
|
11318
12269
|
])
|
|
11319
12270
|
],
|
|
12271
|
+
hasResultPointer: true,
|
|
11320
12272
|
funcTypeIsAsync: false,
|
|
11321
12273
|
getCallbackFn: () => null,
|
|
11322
12274
|
getPostReturnFn: () => null,
|
|
@@ -11324,7 +12276,7 @@ null,
|
|
|
11324
12276
|
memoryIdx: 0,
|
|
11325
12277
|
stringEncoding: 'utf8',
|
|
11326
12278
|
getMemoryFn: () => memory0,
|
|
11327
|
-
getReallocFn:
|
|
12279
|
+
getReallocFn: undefined,
|
|
11328
12280
|
importFn: _trampoline34,
|
|
11329
12281
|
},
|
|
11330
12282
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11339,10 +12291,24 @@ null,
|
|
|
11339
12291
|
[ 'none', null, 8, 4, 4 ],
|
|
11340
12292
|
[ 'some', _lowerFlatOwn({
|
|
11341
12293
|
componentIdx: 0,
|
|
11342
|
-
lowerFn:
|
|
12294
|
+
lowerFn:
|
|
12295
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12296
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12297
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12298
|
+
}
|
|
12299
|
+
let handle = obj[symbolRscHandle];
|
|
12300
|
+
if (!handle) {
|
|
12301
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12302
|
+
captureTable4.set(rep, obj);
|
|
12303
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12304
|
+
}
|
|
12305
|
+
return handle;
|
|
12306
|
+
}
|
|
12307
|
+
,
|
|
11343
12308
|
}), 8, 4, 4 ],
|
|
11344
12309
|
])
|
|
11345
12310
|
],
|
|
12311
|
+
hasResultPointer: true,
|
|
11346
12312
|
funcTypeIsAsync: false,
|
|
11347
12313
|
getCallbackFn: () => null,
|
|
11348
12314
|
getPostReturnFn: () => null,
|
|
@@ -11350,7 +12316,7 @@ null,
|
|
|
11350
12316
|
memoryIdx: 0,
|
|
11351
12317
|
stringEncoding: 'utf8',
|
|
11352
12318
|
getMemoryFn: () => memory0,
|
|
11353
|
-
getReallocFn:
|
|
12319
|
+
getReallocFn: undefined,
|
|
11354
12320
|
importFn: _trampoline34,
|
|
11355
12321
|
},
|
|
11356
12322
|
);
|
|
@@ -11366,10 +12332,24 @@ null,
|
|
|
11366
12332
|
[ 'none', null, 8, 4, 4 ],
|
|
11367
12333
|
[ 'some', _lowerFlatOwn({
|
|
11368
12334
|
componentIdx: 0,
|
|
11369
|
-
lowerFn:
|
|
12335
|
+
lowerFn:
|
|
12336
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12337
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12338
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12339
|
+
}
|
|
12340
|
+
let handle = obj[symbolRscHandle];
|
|
12341
|
+
if (!handle) {
|
|
12342
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12343
|
+
captureTable4.set(rep, obj);
|
|
12344
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12345
|
+
}
|
|
12346
|
+
return handle;
|
|
12347
|
+
}
|
|
12348
|
+
,
|
|
11370
12349
|
}), 8, 4, 4 ],
|
|
11371
12350
|
])
|
|
11372
12351
|
],
|
|
12352
|
+
hasResultPointer: true,
|
|
11373
12353
|
funcTypeIsAsync: false,
|
|
11374
12354
|
getCallbackFn: () => null,
|
|
11375
12355
|
getPostReturnFn: () => null,
|
|
@@ -11377,7 +12357,7 @@ null,
|
|
|
11377
12357
|
memoryIdx: 0,
|
|
11378
12358
|
stringEncoding: 'utf8',
|
|
11379
12359
|
getMemoryFn: () => memory0,
|
|
11380
|
-
getReallocFn:
|
|
12360
|
+
getReallocFn: undefined,
|
|
11381
12361
|
importFn: _trampoline35,
|
|
11382
12362
|
},
|
|
11383
12363
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11392,10 +12372,24 @@ null,
|
|
|
11392
12372
|
[ 'none', null, 8, 4, 4 ],
|
|
11393
12373
|
[ 'some', _lowerFlatOwn({
|
|
11394
12374
|
componentIdx: 0,
|
|
11395
|
-
lowerFn:
|
|
12375
|
+
lowerFn:
|
|
12376
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12377
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12378
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12379
|
+
}
|
|
12380
|
+
let handle = obj[symbolRscHandle];
|
|
12381
|
+
if (!handle) {
|
|
12382
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12383
|
+
captureTable4.set(rep, obj);
|
|
12384
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12385
|
+
}
|
|
12386
|
+
return handle;
|
|
12387
|
+
}
|
|
12388
|
+
,
|
|
11396
12389
|
}), 8, 4, 4 ],
|
|
11397
12390
|
])
|
|
11398
12391
|
],
|
|
12392
|
+
hasResultPointer: true,
|
|
11399
12393
|
funcTypeIsAsync: false,
|
|
11400
12394
|
getCallbackFn: () => null,
|
|
11401
12395
|
getPostReturnFn: () => null,
|
|
@@ -11403,7 +12397,7 @@ null,
|
|
|
11403
12397
|
memoryIdx: 0,
|
|
11404
12398
|
stringEncoding: 'utf8',
|
|
11405
12399
|
getMemoryFn: () => memory0,
|
|
11406
|
-
getReallocFn:
|
|
12400
|
+
getReallocFn: undefined,
|
|
11407
12401
|
importFn: _trampoline35,
|
|
11408
12402
|
},
|
|
11409
12403
|
);
|