@bytecodealliance/jco 1.19.0 → 1.20.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 +1424 -471
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.js +1569 -520
- package/package.json +97 -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
package/obj/wasm-tools.js
CHANGED
|
@@ -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 {
|
|
@@ -1493,8 +1479,6 @@ class Waitable {
|
|
|
1493
1479
|
|
|
1494
1480
|
#parentSubtask = null;
|
|
1495
1481
|
|
|
1496
|
-
#needsExclusiveLock = false;
|
|
1497
|
-
|
|
1498
1482
|
#errHandling;
|
|
1499
1483
|
|
|
1500
1484
|
#backpressurePromise;
|
|
@@ -1569,7 +1553,6 @@ class Waitable {
|
|
|
1569
1553
|
|
|
1570
1554
|
if (opts.parentSubtask) { this.#parentSubtask = opts.parentSubtask; }
|
|
1571
1555
|
|
|
1572
|
-
this.#needsExclusiveLock = this.isSync() || !this.hasCallback();
|
|
1573
1556
|
|
|
1574
1557
|
if (opts.errHandling) { this.#errHandling = opts.errHandling; }
|
|
1575
1558
|
}
|
|
@@ -1643,8 +1626,12 @@ class Waitable {
|
|
|
1643
1626
|
}
|
|
1644
1627
|
|
|
1645
1628
|
async runCallbackFn(...args) {
|
|
1646
|
-
if (!this.#callbackFn) { throw new Error('
|
|
1647
|
-
return
|
|
1629
|
+
if (!this.#callbackFn) { throw new Error('no callback function has been set for task'); }
|
|
1630
|
+
return _withGlobalCurrentTaskMetaAsync({
|
|
1631
|
+
taskID: this.#id,
|
|
1632
|
+
componentIdx: this.#componentIdx,
|
|
1633
|
+
fn: () => { return this.#callbackFn.apply(null, args); }
|
|
1634
|
+
});
|
|
1648
1635
|
}
|
|
1649
1636
|
|
|
1650
1637
|
getCalleeParams() {
|
|
@@ -1675,6 +1662,11 @@ class Waitable {
|
|
|
1675
1662
|
enterSync() {
|
|
1676
1663
|
if (this.needsExclusiveLock()) {
|
|
1677
1664
|
const cstate = getOrCreateAsyncState(this.#componentIdx);
|
|
1665
|
+
// TODO(???): it is *very possible* for a the line below to fail if
|
|
1666
|
+
// an async function is already running (and holding the exclusive lock)
|
|
1667
|
+
//
|
|
1668
|
+
// It's not really possible to fix this unless we turn every sync export into
|
|
1669
|
+
// an async export that will use the regular async enabled `enter()`.
|
|
1678
1670
|
cstate.exclusiveLock();
|
|
1679
1671
|
}
|
|
1680
1672
|
return true;
|
|
@@ -1685,6 +1677,7 @@ class Waitable {
|
|
|
1685
1677
|
taskID: this.#id,
|
|
1686
1678
|
componentIdx: this.#componentIdx,
|
|
1687
1679
|
subtaskID: this.getParentSubtask()?.id(),
|
|
1680
|
+
entryFnName: this.#entryFnName,
|
|
1688
1681
|
});
|
|
1689
1682
|
|
|
1690
1683
|
if (this.#entered) {
|
|
@@ -1693,12 +1686,14 @@ class Waitable {
|
|
|
1693
1686
|
|
|
1694
1687
|
const cstate = getOrCreateAsyncState(this.#componentIdx);
|
|
1695
1688
|
|
|
1689
|
+
await cstate.nextTaskExecutionSlot({ task: this });
|
|
1690
|
+
|
|
1696
1691
|
// If a task is either synchronous or host-provided (e.g. a host import, whether sync or async)
|
|
1697
1692
|
// then we can avoid component-relevant tracking and immediately enter
|
|
1698
1693
|
if (this.isSync() || opts?.isHost) {
|
|
1699
1694
|
this.#entered = true;
|
|
1700
1695
|
|
|
1701
|
-
// TODO(breaking): remove once manually-
|
|
1696
|
+
// TODO(breaking): remove once manually-specifying async fns is removed
|
|
1702
1697
|
// It is currently possible for an actually sync export to be specified
|
|
1703
1698
|
// as async via JSPI
|
|
1704
1699
|
if (this.#isManualAsync) {
|
|
@@ -1708,11 +1703,15 @@ class Waitable {
|
|
|
1708
1703
|
return this.#entered;
|
|
1709
1704
|
}
|
|
1710
1705
|
|
|
1711
|
-
|
|
1706
|
+
// Perform intial backpressure check
|
|
1707
|
+
if (cstate.hasBackpressure() || this.needsExclusiveLock() && cstate.isExclusivelyLocked()) {
|
|
1712
1708
|
cstate.addBackpressureWaiter();
|
|
1713
1709
|
|
|
1714
1710
|
const result = await this.waitUntil({
|
|
1715
|
-
readyFn: () =>
|
|
1711
|
+
readyFn: () => {
|
|
1712
|
+
return !(cstate.hasBackpressure()
|
|
1713
|
+
|| this.needsExclusiveLock() && cstate.isExclusivelyLocked());
|
|
1714
|
+
},
|
|
1716
1715
|
cancellable: true,
|
|
1717
1716
|
});
|
|
1718
1717
|
|
|
@@ -1724,7 +1723,32 @@ class Waitable {
|
|
|
1724
1723
|
}
|
|
1725
1724
|
}
|
|
1726
1725
|
|
|
1727
|
-
|
|
1726
|
+
// Lock the component state or keep trying until we can/do
|
|
1727
|
+
try {
|
|
1728
|
+
if (this.needsExclusiveLock()) { cstate.exclusiveLock(); }
|
|
1729
|
+
} catch {
|
|
1730
|
+
// Continuously attempt to lock until we can
|
|
1731
|
+
while (cstate.hasBackpressure() || this.needsExclusiveLock() && cstate.isExclusivelyLocked()) {
|
|
1732
|
+
try {
|
|
1733
|
+
if (this.needsExclusiveLock()) { cstate.exclusiveLock(); }
|
|
1734
|
+
break;
|
|
1735
|
+
} catch(err) {
|
|
1736
|
+
cstate.addBackpressureWaiter();
|
|
1737
|
+
const result = await this.waitUntil({
|
|
1738
|
+
readyFn: () => {
|
|
1739
|
+
return !(cstate.hasBackpressure()
|
|
1740
|
+
|| this.needsExclusiveLock() && cstate.isExclusivelyLocked());
|
|
1741
|
+
},
|
|
1742
|
+
cancellable: true,
|
|
1743
|
+
});
|
|
1744
|
+
cstate.removeBackpressureWaiter();
|
|
1745
|
+
if (result === AsyncTask.BlockResult.CANCELLED) {
|
|
1746
|
+
this.cancel();
|
|
1747
|
+
return false;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1728
1752
|
|
|
1729
1753
|
this.#entered = true;
|
|
1730
1754
|
return this.#entered;
|
|
@@ -1735,38 +1759,19 @@ class Waitable {
|
|
|
1735
1759
|
isResolved() { return this.#state === AsyncTask.State.RESOLVED; }
|
|
1736
1760
|
|
|
1737
1761
|
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;
|
|
1762
|
+
const { readyFn, cancellable } = opts;
|
|
1763
|
+
_debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id, cancellable });
|
|
1745
1764
|
|
|
1746
|
-
|
|
1765
|
+
// TODO(fix): check for cancel
|
|
1766
|
+
// TODO(fix): determinism
|
|
1767
|
+
// TODO(threads): add this thread to waiting list
|
|
1747
1768
|
|
|
1748
1769
|
const keepGoing = await this.suspendUntil({
|
|
1749
|
-
readyFn
|
|
1750
|
-
const hasPendingEvent = wset.hasPendingEvent();
|
|
1751
|
-
const ready = readyFn();
|
|
1752
|
-
return ready && hasPendingEvent;
|
|
1753
|
-
},
|
|
1770
|
+
readyFn,
|
|
1754
1771
|
cancellable,
|
|
1755
1772
|
});
|
|
1756
1773
|
|
|
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;
|
|
1774
|
+
return keepGoing;
|
|
1770
1775
|
}
|
|
1771
1776
|
|
|
1772
1777
|
async yieldUntil(opts) {
|
|
@@ -1807,9 +1812,8 @@ class Waitable {
|
|
|
1807
1812
|
|
|
1808
1813
|
const ready = readyFn();
|
|
1809
1814
|
if (ready && ASYNC_DETERMINISM === 'random') {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
return true;
|
|
1815
|
+
const coinFlip = _coinFlip();
|
|
1816
|
+
if (coinFlip) { return true }
|
|
1813
1817
|
}
|
|
1814
1818
|
|
|
1815
1819
|
const keepGoing = await this.immediateSuspend({ cancellable, readyFn });
|
|
@@ -1936,7 +1940,6 @@ class Waitable {
|
|
|
1936
1940
|
|
|
1937
1941
|
// TODO: do cleanup here to reset the machinery so we can run again?
|
|
1938
1942
|
|
|
1939
|
-
|
|
1940
1943
|
this.cancel({ error: taskErr });
|
|
1941
1944
|
}
|
|
1942
1945
|
|
|
@@ -1978,7 +1981,7 @@ class Waitable {
|
|
|
1978
1981
|
}
|
|
1979
1982
|
}
|
|
1980
1983
|
|
|
1981
|
-
exit() {
|
|
1984
|
+
exit(args) {
|
|
1982
1985
|
_debugLog('[AsyncTask#exit()]', {
|
|
1983
1986
|
componentIdx: this.#componentIdx,
|
|
1984
1987
|
taskID: this.#id,
|
|
@@ -2013,8 +2016,10 @@ class Waitable {
|
|
|
2013
2016
|
if (!state) { throw new Error('missing async state for component [' + this.#componentIdx + ']'); }
|
|
2014
2017
|
|
|
2015
2018
|
// Exempt the host from exclusive lock check
|
|
2016
|
-
if (this.#componentIdx !== -1 &&
|
|
2017
|
-
|
|
2019
|
+
if (this.#componentIdx !== -1 && !args?.skipExclusiveLockCheck) {
|
|
2020
|
+
if (this.needsExclusiveLock() && !state.isExclusivelyLocked()) {
|
|
2021
|
+
throw new Error(`task [${this.#id}] exit: component [${this.#componentIdx}] should have been exclusively locked`);
|
|
2022
|
+
}
|
|
2018
2023
|
}
|
|
2019
2024
|
|
|
2020
2025
|
state.exclusiveRelease();
|
|
@@ -2100,6 +2105,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2100
2105
|
isManualAsync,
|
|
2101
2106
|
paramLiftFns,
|
|
2102
2107
|
resultLowerFns,
|
|
2108
|
+
hasResultPointer,
|
|
2103
2109
|
funcTypeIsAsync,
|
|
2104
2110
|
metadata,
|
|
2105
2111
|
memoryIdx,
|
|
@@ -2174,6 +2180,10 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2174
2180
|
|
|
2175
2181
|
// If there is an existing task, this should be part of a subtask
|
|
2176
2182
|
const memory = getMemoryFn();
|
|
2183
|
+
// Canonical ABI lower appends result storage as a trailing
|
|
2184
|
+
// param when async lower has any flat result, or sync lower
|
|
2185
|
+
// has more than one flat result.
|
|
2186
|
+
const resultPtr = hasResultPointer ? params[params.length - 1] : undefined;
|
|
2177
2187
|
const subtask = task.createSubtask({
|
|
2178
2188
|
componentIdx,
|
|
2179
2189
|
parentTask: task,
|
|
@@ -2183,8 +2193,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2183
2193
|
callMetadata: {
|
|
2184
2194
|
memoryIdx,
|
|
2185
2195
|
memory,
|
|
2186
|
-
realloc: getReallocFn(),
|
|
2187
|
-
|
|
2196
|
+
realloc: getReallocFn?.(),
|
|
2197
|
+
getReallocFn,
|
|
2198
|
+
resultPtr,
|
|
2188
2199
|
lowers: resultLowerFns,
|
|
2189
2200
|
stringEncoding,
|
|
2190
2201
|
}
|
|
@@ -2235,7 +2246,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2235
2246
|
// NOTE: at this point we know that we are working with an async lowered import
|
|
2236
2247
|
|
|
2237
2248
|
const subtaskState = subtask.getStateNumber();
|
|
2238
|
-
if (subtaskState < 0 || subtaskState
|
|
2249
|
+
if (subtaskState < 0 || subtaskState >= 2**4) {
|
|
2239
2250
|
throw new Error('invalid subtask state, out of valid range');
|
|
2240
2251
|
}
|
|
2241
2252
|
|
|
@@ -2334,7 +2345,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2334
2345
|
let val;
|
|
2335
2346
|
|
|
2336
2347
|
if (ctx.useDirectParams) {
|
|
2337
|
-
if (params.length === 0) { throw new Error('expected at least a single i32 argument'); }
|
|
2348
|
+
if (ctx.params.length === 0) { throw new Error('expected at least a single i32 argument'); }
|
|
2338
2349
|
val = ctx.params[0];
|
|
2339
2350
|
ctx.params = ctx.params.slice(1);
|
|
2340
2351
|
return [val, ctx];
|
|
@@ -2490,7 +2501,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2490
2501
|
caseIdx = liftRes[0];
|
|
2491
2502
|
ctx = liftRes[1];
|
|
2492
2503
|
|
|
2493
|
-
const [ tag, liftFn, size32, align32, payloadOffset32 ] = casesAndLiftFns[caseIdx];
|
|
2504
|
+
const [ tag, liftFn, size32, align32, payloadOffset32, caseFlatCount, variantFlatCount ] = casesAndLiftFns[caseIdx];
|
|
2494
2505
|
if (payloadOffset32 === undefined) { throw new Error('unexpectedly missing payload offset'); }
|
|
2495
2506
|
|
|
2496
2507
|
if (originalPtr !== undefined) {
|
|
@@ -2502,7 +2513,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2502
2513
|
val = { tag };
|
|
2503
2514
|
// NOTE: here we need to move past the entire object in memory
|
|
2504
2515
|
// despite moving to the payload which we now know is missing/unnecessary
|
|
2505
|
-
|
|
2516
|
+
if (originalPtr !== undefined) {
|
|
2517
|
+
ctx.storagePtr = originalPtr + size32;
|
|
2518
|
+
}
|
|
2506
2519
|
} else {
|
|
2507
2520
|
const [newVal, newCtx] = liftFn(ctx);
|
|
2508
2521
|
val = { tag, val: newVal };
|
|
@@ -2510,105 +2523,144 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2510
2523
|
|
|
2511
2524
|
// NOTE: Padding can be left over after doing the lift if it was less than
|
|
2512
2525
|
// space left for the payload normally.
|
|
2513
|
-
if (
|
|
2514
|
-
ctx.storagePtr = originalPtr + size32;
|
|
2526
|
+
if (originalPtr !== undefined) {
|
|
2527
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2515
2528
|
}
|
|
2516
2529
|
}
|
|
2517
2530
|
|
|
2518
|
-
|
|
2519
|
-
|
|
2531
|
+
if (origUseParams) {
|
|
2532
|
+
if (caseFlatCount === undefined || variantFlatCount === undefined) {
|
|
2533
|
+
throw new Error('variant flat count metadata is missing');
|
|
2534
|
+
}
|
|
2535
|
+
if (caseFlatCount === null || variantFlatCount === null) {
|
|
2536
|
+
throw new Error('cannot lift variant with unknown flat count');
|
|
2537
|
+
}
|
|
2538
|
+
const remainingPayloadParams = variantFlatCount - 1 - caseFlatCount;
|
|
2539
|
+
if (remainingPayloadParams < 0) {
|
|
2540
|
+
throw new Error(`invalid variant flat count metadata`);
|
|
2541
|
+
}
|
|
2542
|
+
if (ctx.params.length < remainingPayloadParams) {
|
|
2543
|
+
throw new Error(`expected at least [${remainingPayloadParams}] remaining variant payload params, but got [${ctx.params.length}]`);
|
|
2544
|
+
}
|
|
2545
|
+
ctx.params = ctx.params.slice(remainingPayloadParams);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
if (ctx.storagePtr !== undefined) {
|
|
2549
|
+
const rem = ctx.storagePtr % align32;
|
|
2550
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2551
|
+
}
|
|
2520
2552
|
|
|
2521
2553
|
return [val, ctx];
|
|
2522
2554
|
}
|
|
2523
2555
|
}
|
|
2524
2556
|
|
|
2525
2557
|
function _liftFlatList(meta) {
|
|
2526
|
-
const { elemLiftFn, elemSize32, elemAlign32, knownLen } = meta;
|
|
2558
|
+
const { elemLiftFn, elemSize32, elemAlign32, knownLen, typedArray } = meta;
|
|
2559
|
+
|
|
2560
|
+
const listValue =
|
|
2561
|
+
typedArray === undefined
|
|
2562
|
+
? values => values
|
|
2563
|
+
: values => new typedArray(values);
|
|
2527
2564
|
|
|
2528
2565
|
const readValuesAndReset = (ctx, originalPtr, dataPtr, len) => {
|
|
2529
2566
|
ctx.storagePtr = dataPtr;
|
|
2530
2567
|
const val = [];
|
|
2531
2568
|
for (var i = 0; i < len; i++) {
|
|
2569
|
+
const elemPtr = dataPtr + i * elemSize32;
|
|
2570
|
+
ctx.storagePtr = elemPtr;
|
|
2532
2571
|
const [res, nextCtx] = elemLiftFn(ctx);
|
|
2533
2572
|
val.push(res);
|
|
2534
2573
|
ctx = nextCtx;
|
|
2535
2574
|
|
|
2536
|
-
|
|
2537
|
-
if (rem !== 0) { ctx.storagePtr += elemAlign32 - rem; }
|
|
2575
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2538
2576
|
}
|
|
2539
2577
|
if (originalPtr !== null) { ctx.storagePtr = originalPtr; }
|
|
2540
|
-
return [val, ctx];
|
|
2578
|
+
return [listValue(val), ctx];
|
|
2541
2579
|
};
|
|
2542
2580
|
|
|
2543
|
-
// TODO(fix): special case for u8/u16/etc into appropriate type
|
|
2544
|
-
|
|
2545
2581
|
return function _liftFlatListInner(ctx) {
|
|
2546
2582
|
_debugLog('[_liftFlatList()] args', { ctx });
|
|
2547
2583
|
|
|
2548
2584
|
let liftResults;
|
|
2549
2585
|
if (knownLen !== undefined) { // list with known length
|
|
2550
|
-
|
|
2551
2586
|
if (ctx.useDirectParams) {
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2587
|
+
if (ctx.memory === null) {
|
|
2588
|
+
// If this lift should be using direct params,
|
|
2589
|
+
// and the memory is missing, we are in the case where
|
|
2590
|
+
// a fixed length list (or other value) is being passed only
|
|
2591
|
+
// via parameters to the function.
|
|
2592
|
+
//
|
|
2593
|
+
// Normally, we would expect to use the direct parameters as a
|
|
2594
|
+
// memory location + size, but in this case, *all* values are being passed directly,
|
|
2595
|
+
// via params.
|
|
2596
|
+
//
|
|
2597
|
+
_debugLog('memory unexpectedly missing while lifting unknown length list', { ctx });
|
|
2598
|
+
liftResults = [listValue(ctx.params.slice(0, knownLen)), ctx];
|
|
2599
|
+
ctx.params = ctx.params.slice(knownLen);
|
|
2600
|
+
} else {
|
|
2601
|
+
// in-memory list with unknown length w/ direct params
|
|
2602
|
+
const dataPtr = ctx.params[0];
|
|
2603
|
+
ctx.params = ctx.params.slice(1);
|
|
2604
|
+
|
|
2605
|
+
ctx.useDirectParams = false;
|
|
2606
|
+
const originalPtr = ctx.storagePtr;
|
|
2607
|
+
ctx.storageLen = knownLen * elemSize32;
|
|
2608
|
+
|
|
2609
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, knownLen);
|
|
2610
|
+
|
|
2611
|
+
ctx.useDirectParams = true;
|
|
2612
|
+
ctx.storagePtr = undefined;
|
|
2613
|
+
ctx.storageLen = undefined;
|
|
2614
|
+
}
|
|
2615
|
+
} else { // indirect params
|
|
2616
|
+
if (ctx.memory === null) {
|
|
2617
|
+
_debugLog('memory unexpectedly missing while lifting known length list', { knownLen, ctx });
|
|
2618
|
+
throw new Error(`memory missing while lifting known length (${knownLen}) list`);
|
|
2571
2619
|
}
|
|
2572
2620
|
|
|
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);
|
|
2621
|
+
ctx.storageLen = knownLen * elemSize32;
|
|
2622
|
+
liftResults = readValuesAndReset(ctx, null, ctx.storagePtr, knownLen);
|
|
2608
2623
|
}
|
|
2609
|
-
|
|
2624
|
+
|
|
2625
|
+
} else { // unknown length list
|
|
2610
2626
|
|
|
2611
|
-
|
|
2627
|
+
if (ctx.useDirectParams) {
|
|
2628
|
+
// unknown length list ptr w/ direct params
|
|
2629
|
+
const dataPtr = ctx.params[0];
|
|
2630
|
+
const len = ctx.params[1];
|
|
2631
|
+
ctx.params = ctx.params.slice(2);
|
|
2632
|
+
|
|
2633
|
+
ctx.useDirectParams = false;
|
|
2634
|
+
const originalPtr = ctx.storagePtr;
|
|
2635
|
+
ctx.storageLen = len * elemSize32;
|
|
2636
|
+
|
|
2637
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2638
|
+
|
|
2639
|
+
ctx.useDirectParams = true;
|
|
2640
|
+
ctx.storagePtr = undefined;
|
|
2641
|
+
ctx.storageLen = undefined;
|
|
2642
|
+
|
|
2643
|
+
} else {
|
|
2644
|
+
// unknown length list ptr w/ in-memory params
|
|
2645
|
+
ctx.storageLen = 8;
|
|
2646
|
+
|
|
2647
|
+
const dataPtrLiftRes = _liftFlatU32(ctx);
|
|
2648
|
+
const dataPtr = dataPtrLiftRes[0];
|
|
2649
|
+
ctx = dataPtrLiftRes[1];
|
|
2650
|
+
|
|
2651
|
+
const lenLiftRes = _liftFlatU32(ctx);
|
|
2652
|
+
const len = lenLiftRes[0];
|
|
2653
|
+
ctx = lenLiftRes[1];
|
|
2654
|
+
|
|
2655
|
+
const originalPtr = ctx.storagePtr;
|
|
2656
|
+
ctx.storagePtr = dataPtr;
|
|
2657
|
+
|
|
2658
|
+
ctx.storageLen = len * elemSize32;
|
|
2659
|
+
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
return liftResults;
|
|
2612
2664
|
}
|
|
2613
2665
|
}
|
|
2614
2666
|
|
|
@@ -2773,14 +2825,29 @@ function _lowerFlatStringUTF16(ctx) {
|
|
|
2773
2825
|
ctx.storagePtr += len;
|
|
2774
2826
|
}
|
|
2775
2827
|
|
|
2776
|
-
function _lowerFlatRecord(
|
|
2828
|
+
function _lowerFlatRecord(meta) {
|
|
2829
|
+
const { fieldMetas, size32: recordSize32, align32: recordAlign32 } = meta;
|
|
2777
2830
|
return function _lowerFlatRecordInner(ctx) {
|
|
2778
2831
|
_debugLog('[_lowerFlatRecord()] args', { ctx });
|
|
2779
2832
|
|
|
2833
|
+
const originalPtr = ctx.storagePtr;
|
|
2780
2834
|
const r = ctx.vals[0];
|
|
2781
2835
|
for (const [tag, lowerFn, size32, align32 ] of fieldMetas) {
|
|
2836
|
+
const rem = ctx.storagePtr % align32;
|
|
2837
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2838
|
+
|
|
2839
|
+
const fieldPtr = ctx.storagePtr;
|
|
2782
2840
|
ctx.vals = [r[tag]];
|
|
2783
2841
|
lowerFn(ctx);
|
|
2842
|
+
|
|
2843
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, fieldPtr + size32);
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + recordSize32);
|
|
2847
|
+
|
|
2848
|
+
const rem = ctx.storagePtr % recordAlign32;
|
|
2849
|
+
if (rem !== 0) {
|
|
2850
|
+
ctx.storagePtr += recordAlign32 - rem;
|
|
2784
2851
|
}
|
|
2785
2852
|
}
|
|
2786
2853
|
}
|
|
@@ -2821,16 +2888,10 @@ function _lowerFlatVariant(lowerMetas) {
|
|
|
2821
2888
|
ctx.vals = [val];
|
|
2822
2889
|
if (lowerFn) { lowerFn(ctx); }
|
|
2823
2890
|
|
|
2824
|
-
|
|
2891
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2825
2892
|
|
|
2826
2893
|
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;
|
|
2894
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2834
2895
|
}
|
|
2835
2896
|
}
|
|
2836
2897
|
|
|
@@ -2864,16 +2925,16 @@ function _lowerFlatList(meta) {
|
|
|
2864
2925
|
stringEncoding: ctx.stringEncoding,
|
|
2865
2926
|
};
|
|
2866
2927
|
for (let idx = 0; idx < list.length; idx++) {
|
|
2928
|
+
const elemPtr = storagePtr + idx * elemSize32;
|
|
2929
|
+
lowerCtx.storagePtr = elemPtr;
|
|
2867
2930
|
lowerCtx.vals = list.slice(idx, idx+1);
|
|
2868
2931
|
elemLowerFn(lowerCtx);
|
|
2932
|
+
lowerCtx.storagePtr = Math.max(lowerCtx.storagePtr, elemPtr + elemSize32);
|
|
2869
2933
|
}
|
|
2870
|
-
|
|
2871
|
-
const bytesLowered = lowerCtx.storagePtr - ctx.storagePtr;
|
|
2872
2934
|
ctx.storagePtr = lowerCtx.storagePtr;
|
|
2873
2935
|
|
|
2874
2936
|
// TODO: implement parma-only known-length processing
|
|
2875
2937
|
|
|
2876
|
-
ctx.storagePtr += bytesLowered;
|
|
2877
2938
|
return;
|
|
2878
2939
|
}
|
|
2879
2940
|
|
|
@@ -2895,10 +2956,12 @@ function _lowerFlatList(meta) {
|
|
|
2895
2956
|
const origPtr = ctx.storagePtr;
|
|
2896
2957
|
ctx.storagePtr = dataPtr;
|
|
2897
2958
|
|
|
2898
|
-
|
|
2899
|
-
|
|
2959
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2960
|
+
const elemPtr = dataPtr + idx * elemSize32;
|
|
2961
|
+
ctx.storagePtr = elemPtr;
|
|
2900
2962
|
ctx.vals = [elem];
|
|
2901
2963
|
elemLowerFn(ctx);
|
|
2964
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2902
2965
|
}
|
|
2903
2966
|
|
|
2904
2967
|
ctx.storagePtr = origPtr;
|
|
@@ -2910,9 +2973,13 @@ function _lowerFlatList(meta) {
|
|
|
2910
2973
|
throw new TypeError(`invalid list input of length [${elems.length}], must be length [${knownLen}]`);
|
|
2911
2974
|
}
|
|
2912
2975
|
|
|
2913
|
-
|
|
2976
|
+
const originalPtr = ctx.storagePtr;
|
|
2977
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2978
|
+
const elemPtr = originalPtr + idx * elemSize32;
|
|
2979
|
+
ctx.storagePtr = elemPtr;
|
|
2914
2980
|
ctx.vals = [elem];
|
|
2915
2981
|
elemLowerFn(ctx);
|
|
2982
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2916
2983
|
}
|
|
2917
2984
|
}
|
|
2918
2985
|
|
|
@@ -2925,13 +2992,27 @@ function _lowerFlatList(meta) {
|
|
|
2925
2992
|
}
|
|
2926
2993
|
}
|
|
2927
2994
|
|
|
2928
|
-
function _lowerFlatTuple(
|
|
2995
|
+
function _lowerFlatTuple(meta) {
|
|
2996
|
+
const { elemLowerMetas, size32: tupleSize32, align32: tupleAlign32 } = meta;
|
|
2929
2997
|
return function _lowerFlatTupleInner(ctx) {
|
|
2930
2998
|
_debugLog('[_lowerFlatTuple()] args', { ctx });
|
|
2999
|
+
const originalPtr = ctx.storagePtr;
|
|
2931
3000
|
const tuple = ctx.vals[0];
|
|
2932
3001
|
for (const [idx, [ lowerFn, size32, align32 ]] of elemLowerMetas.entries()) {
|
|
3002
|
+
const rem = ctx.storagePtr % align32;
|
|
3003
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
3004
|
+
|
|
3005
|
+
const elemPtr = ctx.storagePtr;
|
|
2933
3006
|
ctx.vals = [tuple[idx]];
|
|
2934
3007
|
lowerFn(ctx);
|
|
3008
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + size32);
|
|
3009
|
+
}
|
|
3010
|
+
|
|
3011
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + tupleSize32);
|
|
3012
|
+
|
|
3013
|
+
const rem = ctx.storagePtr % tupleAlign32;
|
|
3014
|
+
if (rem !== 0) {
|
|
3015
|
+
ctx.storagePtr += tupleAlign32 - rem;
|
|
2935
3016
|
}
|
|
2936
3017
|
}
|
|
2937
3018
|
}
|
|
@@ -3220,8 +3301,6 @@ class ComponentAsyncState {
|
|
|
3220
3301
|
this.#locked = locked;
|
|
3221
3302
|
}
|
|
3222
3303
|
|
|
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
3304
|
exclusiveLock() {
|
|
3226
3305
|
_debugLog('[ComponentAsyncState#exclusiveLock()]', {
|
|
3227
3306
|
locked: this.#locked,
|
|
@@ -3254,6 +3333,54 @@ class ComponentAsyncState {
|
|
|
3254
3333
|
this.#onExclusiveReleaseHandlers.push(fn);
|
|
3255
3334
|
}
|
|
3256
3335
|
|
|
3336
|
+
// nextTaskPromise & nextTaskQueue are used to await current task completion and queues
|
|
3337
|
+
// any tasks attempting to enter() and complete.
|
|
3338
|
+
//
|
|
3339
|
+
// see: nextTaskExecutionSlot()
|
|
3340
|
+
//
|
|
3341
|
+
// TODO(threads): this should be unnecessary once threads are properly implemented,
|
|
3342
|
+
// as the task.enter() logic should suffice (it should be guaranteed that we cannot re-enter
|
|
3343
|
+
// unless the task in question is the current task in the thread execution, and only one can
|
|
3344
|
+
// run at a time)
|
|
3345
|
+
#nextTaskPromise = Promise.resolve(true);
|
|
3346
|
+
#nextTaskQueue = [];
|
|
3347
|
+
|
|
3348
|
+
async nextTaskExecutionSlot(args) {
|
|
3349
|
+
const { task } = args;
|
|
3350
|
+
|
|
3351
|
+
const placeholder = {
|
|
3352
|
+
completed: false,
|
|
3353
|
+
task,
|
|
3354
|
+
promise: task.exitPromise().then(() => {
|
|
3355
|
+
placeholder.completed = true;
|
|
3356
|
+
}),
|
|
3357
|
+
};
|
|
3358
|
+
this.#nextTaskQueue.push(placeholder);
|
|
3359
|
+
|
|
3360
|
+
let next;
|
|
3361
|
+
while (true) {
|
|
3362
|
+
await this.#nextTaskPromise;
|
|
3363
|
+
|
|
3364
|
+
next = this.#nextTaskQueue.find(placeholder => !placeholder.completed);
|
|
3365
|
+
|
|
3366
|
+
// This task is next in the queue, we can continue
|
|
3367
|
+
if (next === undefined || next === placeholder) {
|
|
3368
|
+
this.#nextTaskPromise = next.promise;
|
|
3369
|
+
if (this.#nextTaskQueue.length > 1000) {
|
|
3370
|
+
this.#nextTaskQueue = this.#nextTaskQueue.filter(p => !p.completed);
|
|
3371
|
+
if (this.#nextTaskQueue.length > 1000) {
|
|
3372
|
+
_debugLog('[ComponentAsyncState#()nextTaskExecutionSlot] next task queue length > 1000 even after cleanup, tasks may be leaking');
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
break;
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
// If we get here, this task was *not* next in the queue, continue waiting
|
|
3379
|
+
// (at this point the task that *is* next will likely have already set itself
|
|
3380
|
+
// as this.#nextTaskPromise)
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3257
3384
|
#getSuspendedTaskMeta(taskID) {
|
|
3258
3385
|
return this.#suspendedTasksByTaskID.get(taskID);
|
|
3259
3386
|
}
|
|
@@ -3699,7 +3826,12 @@ class ComponentAsyncState {
|
|
|
3699
3826
|
|
|
3700
3827
|
}
|
|
3701
3828
|
|
|
3702
|
-
const base64Compile = str => WebAssembly.compile(
|
|
3829
|
+
const base64Compile = str => WebAssembly.compile(
|
|
3830
|
+
typeof Buffer !== 'undefined'
|
|
3831
|
+
? Buffer.from(str, 'base64')
|
|
3832
|
+
: Uint8Array.from(atob(str), b => b.charCodeAt(0))
|
|
3833
|
+
);
|
|
3834
|
+
|
|
3703
3835
|
|
|
3704
3836
|
const isNode = typeof process !== 'undefined' && process.versions && process.versions.node;
|
|
3705
3837
|
let _fs;
|
|
@@ -3761,11 +3893,11 @@ const _trampoline5 = function() {
|
|
|
3761
3893
|
|
|
3762
3894
|
const createTask = () => {
|
|
3763
3895
|
const results = createNewCurrentTask({
|
|
3764
|
-
componentIdx: -1,
|
|
3896
|
+
componentIdx: -1,
|
|
3765
3897
|
isAsync: false,
|
|
3766
3898
|
entryFnName: 'getStderr',
|
|
3767
3899
|
getCallbackFn: () => null,
|
|
3768
|
-
callbackFnName:
|
|
3900
|
+
callbackFnName: null,
|
|
3769
3901
|
errHandling: 'none',
|
|
3770
3902
|
callingWasmExport: false,
|
|
3771
3903
|
});
|
|
@@ -3773,7 +3905,11 @@ const _trampoline5 = function() {
|
|
|
3773
3905
|
};
|
|
3774
3906
|
|
|
3775
3907
|
taskCreation: {
|
|
3776
|
-
parentTask = getCurrentTask(
|
|
3908
|
+
parentTask = getCurrentTask(
|
|
3909
|
+
0,
|
|
3910
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
3911
|
+
)?.task;
|
|
3912
|
+
|
|
3777
3913
|
if (!parentTask) {
|
|
3778
3914
|
createTask();
|
|
3779
3915
|
break taskCreation;
|
|
@@ -3791,12 +3927,25 @@ const _trampoline5 = function() {
|
|
|
3791
3927
|
}
|
|
3792
3928
|
|
|
3793
3929
|
const started = task.enterSync();
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3930
|
+
|
|
3931
|
+
let ret;
|
|
3932
|
+
|
|
3933
|
+
try {
|
|
3934
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
3935
|
+
componentIdx: task.componentIdx(),
|
|
3936
|
+
taskID: task.id(),
|
|
3937
|
+
fn: () => getStderr(),
|
|
3938
|
+
})
|
|
3939
|
+
;
|
|
3940
|
+
} catch (err) {
|
|
3941
|
+
|
|
3942
|
+
task.setErrored(err);
|
|
3943
|
+
task.reject(err);
|
|
3944
|
+
task.exit();
|
|
3945
|
+
throw err;
|
|
3946
|
+
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3800
3949
|
|
|
3801
3950
|
if (!(ret instanceof OutputStream)) {
|
|
3802
3951
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3834,11 +3983,11 @@ const _trampoline8 = function() {
|
|
|
3834
3983
|
|
|
3835
3984
|
const createTask = () => {
|
|
3836
3985
|
const results = createNewCurrentTask({
|
|
3837
|
-
componentIdx: -1,
|
|
3986
|
+
componentIdx: -1,
|
|
3838
3987
|
isAsync: false,
|
|
3839
3988
|
entryFnName: 'getStdin',
|
|
3840
3989
|
getCallbackFn: () => null,
|
|
3841
|
-
callbackFnName:
|
|
3990
|
+
callbackFnName: null,
|
|
3842
3991
|
errHandling: 'none',
|
|
3843
3992
|
callingWasmExport: false,
|
|
3844
3993
|
});
|
|
@@ -3846,7 +3995,11 @@ const _trampoline8 = function() {
|
|
|
3846
3995
|
};
|
|
3847
3996
|
|
|
3848
3997
|
taskCreation: {
|
|
3849
|
-
parentTask = getCurrentTask(
|
|
3998
|
+
parentTask = getCurrentTask(
|
|
3999
|
+
0,
|
|
4000
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4001
|
+
)?.task;
|
|
4002
|
+
|
|
3850
4003
|
if (!parentTask) {
|
|
3851
4004
|
createTask();
|
|
3852
4005
|
break taskCreation;
|
|
@@ -3864,12 +4017,25 @@ const _trampoline8 = function() {
|
|
|
3864
4017
|
}
|
|
3865
4018
|
|
|
3866
4019
|
const started = task.enterSync();
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
4020
|
+
|
|
4021
|
+
let ret;
|
|
4022
|
+
|
|
4023
|
+
try {
|
|
4024
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4025
|
+
componentIdx: task.componentIdx(),
|
|
4026
|
+
taskID: task.id(),
|
|
4027
|
+
fn: () => getStdin(),
|
|
4028
|
+
})
|
|
4029
|
+
;
|
|
4030
|
+
} catch (err) {
|
|
4031
|
+
|
|
4032
|
+
task.setErrored(err);
|
|
4033
|
+
task.reject(err);
|
|
4034
|
+
task.exit();
|
|
4035
|
+
throw err;
|
|
4036
|
+
|
|
4037
|
+
}
|
|
4038
|
+
|
|
3873
4039
|
|
|
3874
4040
|
if (!(ret instanceof InputStream)) {
|
|
3875
4041
|
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
@@ -3903,11 +4069,11 @@ const _trampoline9 = function() {
|
|
|
3903
4069
|
|
|
3904
4070
|
const createTask = () => {
|
|
3905
4071
|
const results = createNewCurrentTask({
|
|
3906
|
-
componentIdx: -1,
|
|
4072
|
+
componentIdx: -1,
|
|
3907
4073
|
isAsync: false,
|
|
3908
4074
|
entryFnName: 'getStdout',
|
|
3909
4075
|
getCallbackFn: () => null,
|
|
3910
|
-
callbackFnName:
|
|
4076
|
+
callbackFnName: null,
|
|
3911
4077
|
errHandling: 'none',
|
|
3912
4078
|
callingWasmExport: false,
|
|
3913
4079
|
});
|
|
@@ -3915,7 +4081,11 @@ const _trampoline9 = function() {
|
|
|
3915
4081
|
};
|
|
3916
4082
|
|
|
3917
4083
|
taskCreation: {
|
|
3918
|
-
parentTask = getCurrentTask(
|
|
4084
|
+
parentTask = getCurrentTask(
|
|
4085
|
+
0,
|
|
4086
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4087
|
+
)?.task;
|
|
4088
|
+
|
|
3919
4089
|
if (!parentTask) {
|
|
3920
4090
|
createTask();
|
|
3921
4091
|
break taskCreation;
|
|
@@ -3933,12 +4103,25 @@ const _trampoline9 = function() {
|
|
|
3933
4103
|
}
|
|
3934
4104
|
|
|
3935
4105
|
const started = task.enterSync();
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
4106
|
+
|
|
4107
|
+
let ret;
|
|
4108
|
+
|
|
4109
|
+
try {
|
|
4110
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4111
|
+
componentIdx: task.componentIdx(),
|
|
4112
|
+
taskID: task.id(),
|
|
4113
|
+
fn: () => getStdout(),
|
|
4114
|
+
})
|
|
4115
|
+
;
|
|
4116
|
+
} catch (err) {
|
|
4117
|
+
|
|
4118
|
+
task.setErrored(err);
|
|
4119
|
+
task.reject(err);
|
|
4120
|
+
task.exit();
|
|
4121
|
+
throw err;
|
|
4122
|
+
|
|
4123
|
+
}
|
|
4124
|
+
|
|
3942
4125
|
|
|
3943
4126
|
if (!(ret instanceof OutputStream)) {
|
|
3944
4127
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3992,11 +4175,11 @@ const _trampoline10 = function(arg0) {
|
|
|
3992
4175
|
|
|
3993
4176
|
const createTask = () => {
|
|
3994
4177
|
const results = createNewCurrentTask({
|
|
3995
|
-
componentIdx: -1,
|
|
4178
|
+
componentIdx: -1,
|
|
3996
4179
|
isAsync: false,
|
|
3997
4180
|
entryFnName: 'exit',
|
|
3998
4181
|
getCallbackFn: () => null,
|
|
3999
|
-
callbackFnName:
|
|
4182
|
+
callbackFnName: null,
|
|
4000
4183
|
errHandling: 'none',
|
|
4001
4184
|
callingWasmExport: false,
|
|
4002
4185
|
});
|
|
@@ -4004,7 +4187,11 @@ const _trampoline10 = function(arg0) {
|
|
|
4004
4187
|
};
|
|
4005
4188
|
|
|
4006
4189
|
taskCreation: {
|
|
4007
|
-
parentTask = getCurrentTask(
|
|
4190
|
+
parentTask = getCurrentTask(
|
|
4191
|
+
0,
|
|
4192
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4193
|
+
)?.task;
|
|
4194
|
+
|
|
4008
4195
|
if (!parentTask) {
|
|
4009
4196
|
createTask();
|
|
4010
4197
|
break taskCreation;
|
|
@@ -4022,12 +4209,25 @@ const _trampoline10 = function(arg0) {
|
|
|
4022
4209
|
}
|
|
4023
4210
|
|
|
4024
4211
|
const started = task.enterSync();
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4212
|
+
|
|
4213
|
+
let ret;
|
|
4214
|
+
|
|
4215
|
+
try {
|
|
4216
|
+
_withGlobalCurrentTaskMeta({
|
|
4217
|
+
componentIdx: task.componentIdx(),
|
|
4218
|
+
taskID: task.id(),
|
|
4219
|
+
fn: () => exit(variant0),
|
|
4220
|
+
})
|
|
4221
|
+
;
|
|
4222
|
+
} catch (err) {
|
|
4223
|
+
|
|
4224
|
+
task.setErrored(err);
|
|
4225
|
+
task.reject(err);
|
|
4226
|
+
task.exit();
|
|
4227
|
+
throw err;
|
|
4228
|
+
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4031
4231
|
_debugLog('[iface="wasi:cli/exit@0.2.3", function="exit"][Instruction::Return]', {
|
|
4032
4232
|
funcName: 'exit',
|
|
4033
4233
|
paramCount: 0,
|
|
@@ -4053,11 +4253,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4053
4253
|
|
|
4054
4254
|
const createTask = () => {
|
|
4055
4255
|
const results = createNewCurrentTask({
|
|
4056
|
-
componentIdx: -1,
|
|
4256
|
+
componentIdx: -1,
|
|
4057
4257
|
isAsync: false,
|
|
4058
4258
|
entryFnName: 'getEnvironment',
|
|
4059
4259
|
getCallbackFn: () => null,
|
|
4060
|
-
callbackFnName:
|
|
4260
|
+
callbackFnName: null,
|
|
4061
4261
|
errHandling: 'none',
|
|
4062
4262
|
callingWasmExport: false,
|
|
4063
4263
|
});
|
|
@@ -4065,7 +4265,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4065
4265
|
};
|
|
4066
4266
|
|
|
4067
4267
|
taskCreation: {
|
|
4068
|
-
parentTask = getCurrentTask(
|
|
4268
|
+
parentTask = getCurrentTask(
|
|
4269
|
+
0,
|
|
4270
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4271
|
+
)?.task;
|
|
4272
|
+
|
|
4069
4273
|
if (!parentTask) {
|
|
4070
4274
|
createTask();
|
|
4071
4275
|
break taskCreation;
|
|
@@ -4083,12 +4287,25 @@ const _trampoline11 = function(arg0) {
|
|
|
4083
4287
|
}
|
|
4084
4288
|
|
|
4085
4289
|
const started = task.enterSync();
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4290
|
+
|
|
4291
|
+
let ret;
|
|
4292
|
+
|
|
4293
|
+
try {
|
|
4294
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
4295
|
+
componentIdx: task.componentIdx(),
|
|
4296
|
+
taskID: task.id(),
|
|
4297
|
+
fn: () => getEnvironment(),
|
|
4298
|
+
})
|
|
4299
|
+
;
|
|
4300
|
+
} catch (err) {
|
|
4301
|
+
|
|
4302
|
+
task.setErrored(err);
|
|
4303
|
+
task.reject(err);
|
|
4304
|
+
task.exit();
|
|
4305
|
+
throw err;
|
|
4306
|
+
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4092
4309
|
var vec3 = ret;
|
|
4093
4310
|
var len3 = vec3.length;
|
|
4094
4311
|
var result3 = realloc0(0, 0, 4, len3 * 16);
|
|
@@ -4148,11 +4365,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4148
4365
|
|
|
4149
4366
|
const createTask = () => {
|
|
4150
4367
|
const results = createNewCurrentTask({
|
|
4151
|
-
componentIdx: -1,
|
|
4368
|
+
componentIdx: -1,
|
|
4152
4369
|
isAsync: false,
|
|
4153
4370
|
entryFnName: 'getFlags',
|
|
4154
4371
|
getCallbackFn: () => null,
|
|
4155
|
-
callbackFnName:
|
|
4372
|
+
callbackFnName: null,
|
|
4156
4373
|
errHandling: 'result-catch-handler',
|
|
4157
4374
|
callingWasmExport: false,
|
|
4158
4375
|
});
|
|
@@ -4160,7 +4377,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4160
4377
|
};
|
|
4161
4378
|
|
|
4162
4379
|
taskCreation: {
|
|
4163
|
-
parentTask = getCurrentTask(
|
|
4380
|
+
parentTask = getCurrentTask(
|
|
4381
|
+
0,
|
|
4382
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4383
|
+
)?.task;
|
|
4384
|
+
|
|
4164
4385
|
if (!parentTask) {
|
|
4165
4386
|
createTask();
|
|
4166
4387
|
break taskCreation;
|
|
@@ -4184,7 +4405,7 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4184
4405
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4185
4406
|
componentIdx: task.componentIdx(),
|
|
4186
4407
|
taskID: task.id(),
|
|
4187
|
-
fn: () => rsc0.getFlags()
|
|
4408
|
+
fn: () => rsc0.getFlags(),
|
|
4188
4409
|
})
|
|
4189
4410
|
};
|
|
4190
4411
|
} catch (e) {
|
|
@@ -4413,11 +4634,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4413
4634
|
|
|
4414
4635
|
const createTask = () => {
|
|
4415
4636
|
const results = createNewCurrentTask({
|
|
4416
|
-
componentIdx: -1,
|
|
4637
|
+
componentIdx: -1,
|
|
4417
4638
|
isAsync: false,
|
|
4418
4639
|
entryFnName: 'getType',
|
|
4419
4640
|
getCallbackFn: () => null,
|
|
4420
|
-
callbackFnName:
|
|
4641
|
+
callbackFnName: null,
|
|
4421
4642
|
errHandling: 'result-catch-handler',
|
|
4422
4643
|
callingWasmExport: false,
|
|
4423
4644
|
});
|
|
@@ -4425,7 +4646,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4425
4646
|
};
|
|
4426
4647
|
|
|
4427
4648
|
taskCreation: {
|
|
4428
|
-
parentTask = getCurrentTask(
|
|
4649
|
+
parentTask = getCurrentTask(
|
|
4650
|
+
0,
|
|
4651
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4652
|
+
)?.task;
|
|
4653
|
+
|
|
4429
4654
|
if (!parentTask) {
|
|
4430
4655
|
createTask();
|
|
4431
4656
|
break taskCreation;
|
|
@@ -4449,7 +4674,7 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4449
4674
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4450
4675
|
componentIdx: task.componentIdx(),
|
|
4451
4676
|
taskID: task.id(),
|
|
4452
|
-
fn: () => rsc0.getType()
|
|
4677
|
+
fn: () => rsc0.getType(),
|
|
4453
4678
|
})
|
|
4454
4679
|
};
|
|
4455
4680
|
} catch (e) {
|
|
@@ -4715,11 +4940,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4715
4940
|
|
|
4716
4941
|
const createTask = () => {
|
|
4717
4942
|
const results = createNewCurrentTask({
|
|
4718
|
-
componentIdx: -1,
|
|
4943
|
+
componentIdx: -1,
|
|
4719
4944
|
isAsync: false,
|
|
4720
4945
|
entryFnName: 'metadataHash',
|
|
4721
4946
|
getCallbackFn: () => null,
|
|
4722
|
-
callbackFnName:
|
|
4947
|
+
callbackFnName: null,
|
|
4723
4948
|
errHandling: 'result-catch-handler',
|
|
4724
4949
|
callingWasmExport: false,
|
|
4725
4950
|
});
|
|
@@ -4727,7 +4952,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4727
4952
|
};
|
|
4728
4953
|
|
|
4729
4954
|
taskCreation: {
|
|
4730
|
-
parentTask = getCurrentTask(
|
|
4955
|
+
parentTask = getCurrentTask(
|
|
4956
|
+
0,
|
|
4957
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4958
|
+
)?.task;
|
|
4959
|
+
|
|
4731
4960
|
if (!parentTask) {
|
|
4732
4961
|
createTask();
|
|
4733
4962
|
break taskCreation;
|
|
@@ -4751,7 +4980,7 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4751
4980
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4752
4981
|
componentIdx: task.componentIdx(),
|
|
4753
4982
|
taskID: task.id(),
|
|
4754
|
-
fn: () => rsc0.metadataHash()
|
|
4983
|
+
fn: () => rsc0.metadataHash(),
|
|
4755
4984
|
})
|
|
4756
4985
|
};
|
|
4757
4986
|
} catch (e) {
|
|
@@ -4980,11 +5209,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4980
5209
|
|
|
4981
5210
|
const createTask = () => {
|
|
4982
5211
|
const results = createNewCurrentTask({
|
|
4983
|
-
componentIdx: -1,
|
|
5212
|
+
componentIdx: -1,
|
|
4984
5213
|
isAsync: false,
|
|
4985
5214
|
entryFnName: 'filesystemErrorCode',
|
|
4986
5215
|
getCallbackFn: () => null,
|
|
4987
|
-
callbackFnName:
|
|
5216
|
+
callbackFnName: null,
|
|
4988
5217
|
errHandling: 'none',
|
|
4989
5218
|
callingWasmExport: false,
|
|
4990
5219
|
});
|
|
@@ -4992,7 +5221,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4992
5221
|
};
|
|
4993
5222
|
|
|
4994
5223
|
taskCreation: {
|
|
4995
|
-
parentTask = getCurrentTask(
|
|
5224
|
+
parentTask = getCurrentTask(
|
|
5225
|
+
0,
|
|
5226
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5227
|
+
)?.task;
|
|
5228
|
+
|
|
4996
5229
|
if (!parentTask) {
|
|
4997
5230
|
createTask();
|
|
4998
5231
|
break taskCreation;
|
|
@@ -5010,12 +5243,25 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
5010
5243
|
}
|
|
5011
5244
|
|
|
5012
5245
|
const started = task.enterSync();
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5246
|
+
|
|
5247
|
+
let ret;
|
|
5248
|
+
|
|
5249
|
+
try {
|
|
5250
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
5251
|
+
componentIdx: task.componentIdx(),
|
|
5252
|
+
taskID: task.id(),
|
|
5253
|
+
fn: () => filesystemErrorCode(rsc0),
|
|
5254
|
+
})
|
|
5255
|
+
;
|
|
5256
|
+
} catch (err) {
|
|
5257
|
+
|
|
5258
|
+
task.setErrored(err);
|
|
5259
|
+
task.reject(err);
|
|
5260
|
+
task.exit();
|
|
5261
|
+
throw err;
|
|
5262
|
+
|
|
5263
|
+
}
|
|
5264
|
+
|
|
5019
5265
|
for (const rsc of curResourceBorrows) {
|
|
5020
5266
|
rsc[symbolRscHandle] = undefined;
|
|
5021
5267
|
}
|
|
@@ -5228,11 +5474,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5228
5474
|
|
|
5229
5475
|
const createTask = () => {
|
|
5230
5476
|
const results = createNewCurrentTask({
|
|
5231
|
-
componentIdx: -1,
|
|
5477
|
+
componentIdx: -1,
|
|
5232
5478
|
isAsync: false,
|
|
5233
5479
|
entryFnName: 'metadataHashAt',
|
|
5234
5480
|
getCallbackFn: () => null,
|
|
5235
|
-
callbackFnName:
|
|
5481
|
+
callbackFnName: null,
|
|
5236
5482
|
errHandling: 'result-catch-handler',
|
|
5237
5483
|
callingWasmExport: false,
|
|
5238
5484
|
});
|
|
@@ -5240,7 +5486,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5240
5486
|
};
|
|
5241
5487
|
|
|
5242
5488
|
taskCreation: {
|
|
5243
|
-
parentTask = getCurrentTask(
|
|
5489
|
+
parentTask = getCurrentTask(
|
|
5490
|
+
0,
|
|
5491
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5492
|
+
)?.task;
|
|
5493
|
+
|
|
5244
5494
|
if (!parentTask) {
|
|
5245
5495
|
createTask();
|
|
5246
5496
|
break taskCreation;
|
|
@@ -5264,7 +5514,7 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5264
5514
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5265
5515
|
componentIdx: task.componentIdx(),
|
|
5266
5516
|
taskID: task.id(),
|
|
5267
|
-
fn: () => rsc0.metadataHashAt(flags3, result4)
|
|
5517
|
+
fn: () => rsc0.metadataHashAt(flags3, result4),
|
|
5268
5518
|
})
|
|
5269
5519
|
};
|
|
5270
5520
|
} catch (e) {
|
|
@@ -5489,11 +5739,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5489
5739
|
|
|
5490
5740
|
const createTask = () => {
|
|
5491
5741
|
const results = createNewCurrentTask({
|
|
5492
|
-
componentIdx: -1,
|
|
5742
|
+
componentIdx: -1,
|
|
5493
5743
|
isAsync: false,
|
|
5494
5744
|
entryFnName: 'readViaStream',
|
|
5495
5745
|
getCallbackFn: () => null,
|
|
5496
|
-
callbackFnName:
|
|
5746
|
+
callbackFnName: null,
|
|
5497
5747
|
errHandling: 'result-catch-handler',
|
|
5498
5748
|
callingWasmExport: false,
|
|
5499
5749
|
});
|
|
@@ -5501,7 +5751,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5501
5751
|
};
|
|
5502
5752
|
|
|
5503
5753
|
taskCreation: {
|
|
5504
|
-
parentTask = getCurrentTask(
|
|
5754
|
+
parentTask = getCurrentTask(
|
|
5755
|
+
0,
|
|
5756
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5757
|
+
)?.task;
|
|
5758
|
+
|
|
5505
5759
|
if (!parentTask) {
|
|
5506
5760
|
createTask();
|
|
5507
5761
|
break taskCreation;
|
|
@@ -5525,7 +5779,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5525
5779
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5526
5780
|
componentIdx: task.componentIdx(),
|
|
5527
5781
|
taskID: task.id(),
|
|
5528
|
-
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
5782
|
+
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5529
5783
|
})
|
|
5530
5784
|
};
|
|
5531
5785
|
} catch (e) {
|
|
@@ -5759,11 +6013,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5759
6013
|
|
|
5760
6014
|
const createTask = () => {
|
|
5761
6015
|
const results = createNewCurrentTask({
|
|
5762
|
-
componentIdx: -1,
|
|
6016
|
+
componentIdx: -1,
|
|
5763
6017
|
isAsync: false,
|
|
5764
6018
|
entryFnName: 'writeViaStream',
|
|
5765
6019
|
getCallbackFn: () => null,
|
|
5766
|
-
callbackFnName:
|
|
6020
|
+
callbackFnName: null,
|
|
5767
6021
|
errHandling: 'result-catch-handler',
|
|
5768
6022
|
callingWasmExport: false,
|
|
5769
6023
|
});
|
|
@@ -5771,7 +6025,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5771
6025
|
};
|
|
5772
6026
|
|
|
5773
6027
|
taskCreation: {
|
|
5774
|
-
parentTask = getCurrentTask(
|
|
6028
|
+
parentTask = getCurrentTask(
|
|
6029
|
+
0,
|
|
6030
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6031
|
+
)?.task;
|
|
6032
|
+
|
|
5775
6033
|
if (!parentTask) {
|
|
5776
6034
|
createTask();
|
|
5777
6035
|
break taskCreation;
|
|
@@ -5795,7 +6053,7 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5795
6053
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5796
6054
|
componentIdx: task.componentIdx(),
|
|
5797
6055
|
taskID: task.id(),
|
|
5798
|
-
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
6056
|
+
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5799
6057
|
})
|
|
5800
6058
|
};
|
|
5801
6059
|
} catch (e) {
|
|
@@ -6029,11 +6287,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6029
6287
|
|
|
6030
6288
|
const createTask = () => {
|
|
6031
6289
|
const results = createNewCurrentTask({
|
|
6032
|
-
componentIdx: -1,
|
|
6290
|
+
componentIdx: -1,
|
|
6033
6291
|
isAsync: false,
|
|
6034
6292
|
entryFnName: 'appendViaStream',
|
|
6035
6293
|
getCallbackFn: () => null,
|
|
6036
|
-
callbackFnName:
|
|
6294
|
+
callbackFnName: null,
|
|
6037
6295
|
errHandling: 'result-catch-handler',
|
|
6038
6296
|
callingWasmExport: false,
|
|
6039
6297
|
});
|
|
@@ -6041,7 +6299,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6041
6299
|
};
|
|
6042
6300
|
|
|
6043
6301
|
taskCreation: {
|
|
6044
|
-
parentTask = getCurrentTask(
|
|
6302
|
+
parentTask = getCurrentTask(
|
|
6303
|
+
0,
|
|
6304
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6305
|
+
)?.task;
|
|
6306
|
+
|
|
6045
6307
|
if (!parentTask) {
|
|
6046
6308
|
createTask();
|
|
6047
6309
|
break taskCreation;
|
|
@@ -6065,7 +6327,7 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6065
6327
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6066
6328
|
componentIdx: task.componentIdx(),
|
|
6067
6329
|
taskID: task.id(),
|
|
6068
|
-
fn: () => rsc0.appendViaStream()
|
|
6330
|
+
fn: () => rsc0.appendViaStream(),
|
|
6069
6331
|
})
|
|
6070
6332
|
};
|
|
6071
6333
|
} catch (e) {
|
|
@@ -6303,11 +6565,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6303
6565
|
|
|
6304
6566
|
const createTask = () => {
|
|
6305
6567
|
const results = createNewCurrentTask({
|
|
6306
|
-
componentIdx: -1,
|
|
6568
|
+
componentIdx: -1,
|
|
6307
6569
|
isAsync: false,
|
|
6308
6570
|
entryFnName: 'readDirectory',
|
|
6309
6571
|
getCallbackFn: () => null,
|
|
6310
|
-
callbackFnName:
|
|
6572
|
+
callbackFnName: null,
|
|
6311
6573
|
errHandling: 'result-catch-handler',
|
|
6312
6574
|
callingWasmExport: false,
|
|
6313
6575
|
});
|
|
@@ -6315,7 +6577,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6315
6577
|
};
|
|
6316
6578
|
|
|
6317
6579
|
taskCreation: {
|
|
6318
|
-
parentTask = getCurrentTask(
|
|
6580
|
+
parentTask = getCurrentTask(
|
|
6581
|
+
0,
|
|
6582
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6583
|
+
)?.task;
|
|
6584
|
+
|
|
6319
6585
|
if (!parentTask) {
|
|
6320
6586
|
createTask();
|
|
6321
6587
|
break taskCreation;
|
|
@@ -6339,7 +6605,7 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6339
6605
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6340
6606
|
componentIdx: task.componentIdx(),
|
|
6341
6607
|
taskID: task.id(),
|
|
6342
|
-
fn: () => rsc0.readDirectory()
|
|
6608
|
+
fn: () => rsc0.readDirectory(),
|
|
6343
6609
|
})
|
|
6344
6610
|
};
|
|
6345
6611
|
} catch (e) {
|
|
@@ -6573,11 +6839,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6573
6839
|
|
|
6574
6840
|
const createTask = () => {
|
|
6575
6841
|
const results = createNewCurrentTask({
|
|
6576
|
-
componentIdx: -1,
|
|
6842
|
+
componentIdx: -1,
|
|
6577
6843
|
isAsync: false,
|
|
6578
6844
|
entryFnName: 'stat',
|
|
6579
6845
|
getCallbackFn: () => null,
|
|
6580
|
-
callbackFnName:
|
|
6846
|
+
callbackFnName: null,
|
|
6581
6847
|
errHandling: 'result-catch-handler',
|
|
6582
6848
|
callingWasmExport: false,
|
|
6583
6849
|
});
|
|
@@ -6585,7 +6851,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6585
6851
|
};
|
|
6586
6852
|
|
|
6587
6853
|
taskCreation: {
|
|
6588
|
-
parentTask = getCurrentTask(
|
|
6854
|
+
parentTask = getCurrentTask(
|
|
6855
|
+
0,
|
|
6856
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6857
|
+
)?.task;
|
|
6858
|
+
|
|
6589
6859
|
if (!parentTask) {
|
|
6590
6860
|
createTask();
|
|
6591
6861
|
break taskCreation;
|
|
@@ -6609,7 +6879,7 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6609
6879
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6610
6880
|
componentIdx: task.componentIdx(),
|
|
6611
6881
|
taskID: task.id(),
|
|
6612
|
-
fn: () => rsc0.stat()
|
|
6882
|
+
fn: () => rsc0.stat(),
|
|
6613
6883
|
})
|
|
6614
6884
|
};
|
|
6615
6885
|
} catch (e) {
|
|
@@ -6917,11 +7187,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6917
7187
|
|
|
6918
7188
|
const createTask = () => {
|
|
6919
7189
|
const results = createNewCurrentTask({
|
|
6920
|
-
componentIdx: -1,
|
|
7190
|
+
componentIdx: -1,
|
|
6921
7191
|
isAsync: false,
|
|
6922
7192
|
entryFnName: 'statAt',
|
|
6923
7193
|
getCallbackFn: () => null,
|
|
6924
|
-
callbackFnName:
|
|
7194
|
+
callbackFnName: null,
|
|
6925
7195
|
errHandling: 'result-catch-handler',
|
|
6926
7196
|
callingWasmExport: false,
|
|
6927
7197
|
});
|
|
@@ -6929,7 +7199,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6929
7199
|
};
|
|
6930
7200
|
|
|
6931
7201
|
taskCreation: {
|
|
6932
|
-
parentTask = getCurrentTask(
|
|
7202
|
+
parentTask = getCurrentTask(
|
|
7203
|
+
0,
|
|
7204
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7205
|
+
)?.task;
|
|
7206
|
+
|
|
6933
7207
|
if (!parentTask) {
|
|
6934
7208
|
createTask();
|
|
6935
7209
|
break taskCreation;
|
|
@@ -6953,7 +7227,7 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6953
7227
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6954
7228
|
componentIdx: task.componentIdx(),
|
|
6955
7229
|
taskID: task.id(),
|
|
6956
|
-
fn: () => rsc0.statAt(flags3, result4)
|
|
7230
|
+
fn: () => rsc0.statAt(flags3, result4),
|
|
6957
7231
|
})
|
|
6958
7232
|
};
|
|
6959
7233
|
} catch (e) {
|
|
@@ -7281,11 +7555,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7281
7555
|
|
|
7282
7556
|
const createTask = () => {
|
|
7283
7557
|
const results = createNewCurrentTask({
|
|
7284
|
-
componentIdx: -1,
|
|
7558
|
+
componentIdx: -1,
|
|
7285
7559
|
isAsync: false,
|
|
7286
7560
|
entryFnName: 'openAt',
|
|
7287
7561
|
getCallbackFn: () => null,
|
|
7288
|
-
callbackFnName:
|
|
7562
|
+
callbackFnName: null,
|
|
7289
7563
|
errHandling: 'result-catch-handler',
|
|
7290
7564
|
callingWasmExport: false,
|
|
7291
7565
|
});
|
|
@@ -7293,7 +7567,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7293
7567
|
};
|
|
7294
7568
|
|
|
7295
7569
|
taskCreation: {
|
|
7296
|
-
parentTask = getCurrentTask(
|
|
7570
|
+
parentTask = getCurrentTask(
|
|
7571
|
+
0,
|
|
7572
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7573
|
+
)?.task;
|
|
7574
|
+
|
|
7297
7575
|
if (!parentTask) {
|
|
7298
7576
|
createTask();
|
|
7299
7577
|
break taskCreation;
|
|
@@ -7317,7 +7595,7 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7317
7595
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7318
7596
|
componentIdx: task.componentIdx(),
|
|
7319
7597
|
taskID: task.id(),
|
|
7320
|
-
fn: () => rsc0.openAt(flags3, result4, flags5, flags6)
|
|
7598
|
+
fn: () => rsc0.openAt(flags3, result4, flags5, flags6),
|
|
7321
7599
|
})
|
|
7322
7600
|
};
|
|
7323
7601
|
} catch (e) {
|
|
@@ -7551,11 +7829,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7551
7829
|
|
|
7552
7830
|
const createTask = () => {
|
|
7553
7831
|
const results = createNewCurrentTask({
|
|
7554
|
-
componentIdx: -1,
|
|
7832
|
+
componentIdx: -1,
|
|
7555
7833
|
isAsync: false,
|
|
7556
7834
|
entryFnName: 'readDirectoryEntry',
|
|
7557
7835
|
getCallbackFn: () => null,
|
|
7558
|
-
callbackFnName:
|
|
7836
|
+
callbackFnName: null,
|
|
7559
7837
|
errHandling: 'result-catch-handler',
|
|
7560
7838
|
callingWasmExport: false,
|
|
7561
7839
|
});
|
|
@@ -7563,7 +7841,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7563
7841
|
};
|
|
7564
7842
|
|
|
7565
7843
|
taskCreation: {
|
|
7566
|
-
parentTask = getCurrentTask(
|
|
7844
|
+
parentTask = getCurrentTask(
|
|
7845
|
+
0,
|
|
7846
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7847
|
+
)?.task;
|
|
7848
|
+
|
|
7567
7849
|
if (!parentTask) {
|
|
7568
7850
|
createTask();
|
|
7569
7851
|
break taskCreation;
|
|
@@ -7587,7 +7869,7 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7587
7869
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7588
7870
|
componentIdx: task.componentIdx(),
|
|
7589
7871
|
taskID: task.id(),
|
|
7590
|
-
fn: () => rsc0.readDirectoryEntry()
|
|
7872
|
+
fn: () => rsc0.readDirectoryEntry(),
|
|
7591
7873
|
})
|
|
7592
7874
|
};
|
|
7593
7875
|
} catch (e) {
|
|
@@ -7868,11 +8150,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7868
8150
|
|
|
7869
8151
|
const createTask = () => {
|
|
7870
8152
|
const results = createNewCurrentTask({
|
|
7871
|
-
componentIdx: -1,
|
|
8153
|
+
componentIdx: -1,
|
|
7872
8154
|
isAsync: false,
|
|
7873
8155
|
entryFnName: 'read',
|
|
7874
8156
|
getCallbackFn: () => null,
|
|
7875
|
-
callbackFnName:
|
|
8157
|
+
callbackFnName: null,
|
|
7876
8158
|
errHandling: 'result-catch-handler',
|
|
7877
8159
|
callingWasmExport: false,
|
|
7878
8160
|
});
|
|
@@ -7880,7 +8162,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7880
8162
|
};
|
|
7881
8163
|
|
|
7882
8164
|
taskCreation: {
|
|
7883
|
-
parentTask = getCurrentTask(
|
|
8165
|
+
parentTask = getCurrentTask(
|
|
8166
|
+
0,
|
|
8167
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8168
|
+
)?.task;
|
|
8169
|
+
|
|
7884
8170
|
if (!parentTask) {
|
|
7885
8171
|
createTask();
|
|
7886
8172
|
break taskCreation;
|
|
@@ -7904,7 +8190,7 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7904
8190
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7905
8191
|
componentIdx: task.componentIdx(),
|
|
7906
8192
|
taskID: task.id(),
|
|
7907
|
-
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1)))
|
|
8193
|
+
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1))),
|
|
7908
8194
|
})
|
|
7909
8195
|
};
|
|
7910
8196
|
} catch (e) {
|
|
@@ -8017,11 +8303,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8017
8303
|
|
|
8018
8304
|
const createTask = () => {
|
|
8019
8305
|
const results = createNewCurrentTask({
|
|
8020
|
-
componentIdx: -1,
|
|
8306
|
+
componentIdx: -1,
|
|
8021
8307
|
isAsync: false,
|
|
8022
8308
|
entryFnName: 'blockingRead',
|
|
8023
8309
|
getCallbackFn: () => null,
|
|
8024
|
-
callbackFnName:
|
|
8310
|
+
callbackFnName: null,
|
|
8025
8311
|
errHandling: 'result-catch-handler',
|
|
8026
8312
|
callingWasmExport: false,
|
|
8027
8313
|
});
|
|
@@ -8029,7 +8315,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8029
8315
|
};
|
|
8030
8316
|
|
|
8031
8317
|
taskCreation: {
|
|
8032
|
-
parentTask = getCurrentTask(
|
|
8318
|
+
parentTask = getCurrentTask(
|
|
8319
|
+
0,
|
|
8320
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8321
|
+
)?.task;
|
|
8322
|
+
|
|
8033
8323
|
if (!parentTask) {
|
|
8034
8324
|
createTask();
|
|
8035
8325
|
break taskCreation;
|
|
@@ -8053,7 +8343,7 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8053
8343
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8054
8344
|
componentIdx: task.componentIdx(),
|
|
8055
8345
|
taskID: task.id(),
|
|
8056
|
-
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1)))
|
|
8346
|
+
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1))),
|
|
8057
8347
|
})
|
|
8058
8348
|
};
|
|
8059
8349
|
} catch (e) {
|
|
@@ -8166,11 +8456,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8166
8456
|
|
|
8167
8457
|
const createTask = () => {
|
|
8168
8458
|
const results = createNewCurrentTask({
|
|
8169
|
-
componentIdx: -1,
|
|
8459
|
+
componentIdx: -1,
|
|
8170
8460
|
isAsync: false,
|
|
8171
8461
|
entryFnName: 'checkWrite',
|
|
8172
8462
|
getCallbackFn: () => null,
|
|
8173
|
-
callbackFnName:
|
|
8463
|
+
callbackFnName: null,
|
|
8174
8464
|
errHandling: 'result-catch-handler',
|
|
8175
8465
|
callingWasmExport: false,
|
|
8176
8466
|
});
|
|
@@ -8178,7 +8468,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8178
8468
|
};
|
|
8179
8469
|
|
|
8180
8470
|
taskCreation: {
|
|
8181
|
-
parentTask = getCurrentTask(
|
|
8471
|
+
parentTask = getCurrentTask(
|
|
8472
|
+
0,
|
|
8473
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8474
|
+
)?.task;
|
|
8475
|
+
|
|
8182
8476
|
if (!parentTask) {
|
|
8183
8477
|
createTask();
|
|
8184
8478
|
break taskCreation;
|
|
@@ -8202,7 +8496,7 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8202
8496
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8203
8497
|
componentIdx: task.componentIdx(),
|
|
8204
8498
|
taskID: task.id(),
|
|
8205
|
-
fn: () => rsc0.checkWrite()
|
|
8499
|
+
fn: () => rsc0.checkWrite(),
|
|
8206
8500
|
})
|
|
8207
8501
|
};
|
|
8208
8502
|
} catch (e) {
|
|
@@ -8295,11 +8589,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8295
8589
|
|
|
8296
8590
|
const createTask = () => {
|
|
8297
8591
|
const results = createNewCurrentTask({
|
|
8298
|
-
componentIdx: -1,
|
|
8592
|
+
componentIdx: -1,
|
|
8299
8593
|
isAsync: false,
|
|
8300
8594
|
entryFnName: 'write',
|
|
8301
8595
|
getCallbackFn: () => null,
|
|
8302
|
-
callbackFnName:
|
|
8596
|
+
callbackFnName: null,
|
|
8303
8597
|
errHandling: 'result-catch-handler',
|
|
8304
8598
|
callingWasmExport: false,
|
|
8305
8599
|
});
|
|
@@ -8307,7 +8601,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8307
8601
|
};
|
|
8308
8602
|
|
|
8309
8603
|
taskCreation: {
|
|
8310
|
-
parentTask = getCurrentTask(
|
|
8604
|
+
parentTask = getCurrentTask(
|
|
8605
|
+
0,
|
|
8606
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8607
|
+
)?.task;
|
|
8608
|
+
|
|
8311
8609
|
if (!parentTask) {
|
|
8312
8610
|
createTask();
|
|
8313
8611
|
break taskCreation;
|
|
@@ -8331,7 +8629,7 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8331
8629
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8332
8630
|
componentIdx: task.componentIdx(),
|
|
8333
8631
|
taskID: task.id(),
|
|
8334
|
-
fn: () => rsc0.write(result3)
|
|
8632
|
+
fn: () => rsc0.write(result3),
|
|
8335
8633
|
})
|
|
8336
8634
|
};
|
|
8337
8635
|
} catch (e) {
|
|
@@ -8423,11 +8721,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8423
8721
|
|
|
8424
8722
|
const createTask = () => {
|
|
8425
8723
|
const results = createNewCurrentTask({
|
|
8426
|
-
componentIdx: -1,
|
|
8724
|
+
componentIdx: -1,
|
|
8427
8725
|
isAsync: false,
|
|
8428
8726
|
entryFnName: 'blockingWriteAndFlush',
|
|
8429
8727
|
getCallbackFn: () => null,
|
|
8430
|
-
callbackFnName:
|
|
8728
|
+
callbackFnName: null,
|
|
8431
8729
|
errHandling: 'result-catch-handler',
|
|
8432
8730
|
callingWasmExport: false,
|
|
8433
8731
|
});
|
|
@@ -8435,7 +8733,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8435
8733
|
};
|
|
8436
8734
|
|
|
8437
8735
|
taskCreation: {
|
|
8438
|
-
parentTask = getCurrentTask(
|
|
8736
|
+
parentTask = getCurrentTask(
|
|
8737
|
+
0,
|
|
8738
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8739
|
+
)?.task;
|
|
8740
|
+
|
|
8439
8741
|
if (!parentTask) {
|
|
8440
8742
|
createTask();
|
|
8441
8743
|
break taskCreation;
|
|
@@ -8459,7 +8761,7 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8459
8761
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8460
8762
|
componentIdx: task.componentIdx(),
|
|
8461
8763
|
taskID: task.id(),
|
|
8462
|
-
fn: () => rsc0.blockingWriteAndFlush(result3)
|
|
8764
|
+
fn: () => rsc0.blockingWriteAndFlush(result3),
|
|
8463
8765
|
})
|
|
8464
8766
|
};
|
|
8465
8767
|
} catch (e) {
|
|
@@ -8548,11 +8850,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8548
8850
|
|
|
8549
8851
|
const createTask = () => {
|
|
8550
8852
|
const results = createNewCurrentTask({
|
|
8551
|
-
componentIdx: -1,
|
|
8853
|
+
componentIdx: -1,
|
|
8552
8854
|
isAsync: false,
|
|
8553
8855
|
entryFnName: 'blockingFlush',
|
|
8554
8856
|
getCallbackFn: () => null,
|
|
8555
|
-
callbackFnName:
|
|
8857
|
+
callbackFnName: null,
|
|
8556
8858
|
errHandling: 'result-catch-handler',
|
|
8557
8859
|
callingWasmExport: false,
|
|
8558
8860
|
});
|
|
@@ -8560,7 +8862,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8560
8862
|
};
|
|
8561
8863
|
|
|
8562
8864
|
taskCreation: {
|
|
8563
|
-
parentTask = getCurrentTask(
|
|
8865
|
+
parentTask = getCurrentTask(
|
|
8866
|
+
0,
|
|
8867
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8868
|
+
)?.task;
|
|
8869
|
+
|
|
8564
8870
|
if (!parentTask) {
|
|
8565
8871
|
createTask();
|
|
8566
8872
|
break taskCreation;
|
|
@@ -8584,7 +8890,7 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8584
8890
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8585
8891
|
componentIdx: task.componentIdx(),
|
|
8586
8892
|
taskID: task.id(),
|
|
8587
|
-
fn: () => rsc0.blockingFlush()
|
|
8893
|
+
fn: () => rsc0.blockingFlush(),
|
|
8588
8894
|
})
|
|
8589
8895
|
};
|
|
8590
8896
|
} catch (e) {
|
|
@@ -8662,11 +8968,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8662
8968
|
|
|
8663
8969
|
const createTask = () => {
|
|
8664
8970
|
const results = createNewCurrentTask({
|
|
8665
|
-
componentIdx: -1,
|
|
8971
|
+
componentIdx: -1,
|
|
8666
8972
|
isAsync: false,
|
|
8667
8973
|
entryFnName: 'getRandomBytes',
|
|
8668
8974
|
getCallbackFn: () => null,
|
|
8669
|
-
callbackFnName:
|
|
8975
|
+
callbackFnName: null,
|
|
8670
8976
|
errHandling: 'none',
|
|
8671
8977
|
callingWasmExport: false,
|
|
8672
8978
|
});
|
|
@@ -8674,7 +8980,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8674
8980
|
};
|
|
8675
8981
|
|
|
8676
8982
|
taskCreation: {
|
|
8677
|
-
parentTask = getCurrentTask(
|
|
8983
|
+
parentTask = getCurrentTask(
|
|
8984
|
+
0,
|
|
8985
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8986
|
+
)?.task;
|
|
8987
|
+
|
|
8678
8988
|
if (!parentTask) {
|
|
8679
8989
|
createTask();
|
|
8680
8990
|
break taskCreation;
|
|
@@ -8692,12 +9002,25 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8692
9002
|
}
|
|
8693
9003
|
|
|
8694
9004
|
const started = task.enterSync();
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
9005
|
+
|
|
9006
|
+
let ret;
|
|
9007
|
+
|
|
9008
|
+
try {
|
|
9009
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9010
|
+
componentIdx: task.componentIdx(),
|
|
9011
|
+
taskID: task.id(),
|
|
9012
|
+
fn: () => getRandomBytes(BigInt.asUintN(64, BigInt(arg0))),
|
|
9013
|
+
})
|
|
9014
|
+
;
|
|
9015
|
+
} catch (err) {
|
|
9016
|
+
|
|
9017
|
+
task.setErrored(err);
|
|
9018
|
+
task.reject(err);
|
|
9019
|
+
task.exit();
|
|
9020
|
+
throw err;
|
|
9021
|
+
|
|
9022
|
+
}
|
|
9023
|
+
|
|
8701
9024
|
var val0 = ret;
|
|
8702
9025
|
var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
|
|
8703
9026
|
var ptr0 = realloc0(0, 0, 1, len0 * 1);
|
|
@@ -8743,11 +9066,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8743
9066
|
|
|
8744
9067
|
const createTask = () => {
|
|
8745
9068
|
const results = createNewCurrentTask({
|
|
8746
|
-
componentIdx: -1,
|
|
9069
|
+
componentIdx: -1,
|
|
8747
9070
|
isAsync: false,
|
|
8748
9071
|
entryFnName: 'getDirectories',
|
|
8749
9072
|
getCallbackFn: () => null,
|
|
8750
|
-
callbackFnName:
|
|
9073
|
+
callbackFnName: null,
|
|
8751
9074
|
errHandling: 'none',
|
|
8752
9075
|
callingWasmExport: false,
|
|
8753
9076
|
});
|
|
@@ -8755,7 +9078,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8755
9078
|
};
|
|
8756
9079
|
|
|
8757
9080
|
taskCreation: {
|
|
8758
|
-
parentTask = getCurrentTask(
|
|
9081
|
+
parentTask = getCurrentTask(
|
|
9082
|
+
0,
|
|
9083
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9084
|
+
)?.task;
|
|
9085
|
+
|
|
8759
9086
|
if (!parentTask) {
|
|
8760
9087
|
createTask();
|
|
8761
9088
|
break taskCreation;
|
|
@@ -8773,13 +9100,26 @@ const _trampoline32 = function(arg0) {
|
|
|
8773
9100
|
}
|
|
8774
9101
|
|
|
8775
9102
|
const started = task.enterSync();
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
9103
|
+
|
|
9104
|
+
let ret;
|
|
9105
|
+
|
|
9106
|
+
try {
|
|
9107
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9108
|
+
componentIdx: task.componentIdx(),
|
|
9109
|
+
taskID: task.id(),
|
|
9110
|
+
fn: () => getDirectories(),
|
|
9111
|
+
})
|
|
9112
|
+
;
|
|
9113
|
+
} catch (err) {
|
|
9114
|
+
|
|
9115
|
+
task.setErrored(err);
|
|
9116
|
+
task.reject(err);
|
|
9117
|
+
task.exit();
|
|
9118
|
+
throw err;
|
|
9119
|
+
|
|
9120
|
+
}
|
|
9121
|
+
|
|
9122
|
+
var vec3 = ret;
|
|
8783
9123
|
var len3 = vec3.length;
|
|
8784
9124
|
var result3 = realloc0(0, 0, 4, len3 * 12);
|
|
8785
9125
|
for (let i = 0; i < vec3.length; i++) {
|
|
@@ -8832,11 +9172,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8832
9172
|
|
|
8833
9173
|
const createTask = () => {
|
|
8834
9174
|
const results = createNewCurrentTask({
|
|
8835
|
-
componentIdx: -1,
|
|
9175
|
+
componentIdx: -1,
|
|
8836
9176
|
isAsync: false,
|
|
8837
9177
|
entryFnName: 'getTerminalStdin',
|
|
8838
9178
|
getCallbackFn: () => null,
|
|
8839
|
-
callbackFnName:
|
|
9179
|
+
callbackFnName: null,
|
|
8840
9180
|
errHandling: 'none',
|
|
8841
9181
|
callingWasmExport: false,
|
|
8842
9182
|
});
|
|
@@ -8844,7 +9184,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8844
9184
|
};
|
|
8845
9185
|
|
|
8846
9186
|
taskCreation: {
|
|
8847
|
-
parentTask = getCurrentTask(
|
|
9187
|
+
parentTask = getCurrentTask(
|
|
9188
|
+
0,
|
|
9189
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9190
|
+
)?.task;
|
|
9191
|
+
|
|
8848
9192
|
if (!parentTask) {
|
|
8849
9193
|
createTask();
|
|
8850
9194
|
break taskCreation;
|
|
@@ -8862,12 +9206,25 @@ const _trampoline33 = function(arg0) {
|
|
|
8862
9206
|
}
|
|
8863
9207
|
|
|
8864
9208
|
const started = task.enterSync();
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
8869
|
-
|
|
8870
|
-
|
|
9209
|
+
|
|
9210
|
+
let ret;
|
|
9211
|
+
|
|
9212
|
+
try {
|
|
9213
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9214
|
+
componentIdx: task.componentIdx(),
|
|
9215
|
+
taskID: task.id(),
|
|
9216
|
+
fn: () => getTerminalStdin(),
|
|
9217
|
+
})
|
|
9218
|
+
;
|
|
9219
|
+
} catch (err) {
|
|
9220
|
+
|
|
9221
|
+
task.setErrored(err);
|
|
9222
|
+
task.reject(err);
|
|
9223
|
+
task.exit();
|
|
9224
|
+
throw err;
|
|
9225
|
+
|
|
9226
|
+
}
|
|
9227
|
+
|
|
8871
9228
|
var variant1 = ret;
|
|
8872
9229
|
if (variant1 === null || variant1=== undefined) {
|
|
8873
9230
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8912,11 +9269,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8912
9269
|
|
|
8913
9270
|
const createTask = () => {
|
|
8914
9271
|
const results = createNewCurrentTask({
|
|
8915
|
-
componentIdx: -1,
|
|
9272
|
+
componentIdx: -1,
|
|
8916
9273
|
isAsync: false,
|
|
8917
9274
|
entryFnName: 'getTerminalStdout',
|
|
8918
9275
|
getCallbackFn: () => null,
|
|
8919
|
-
callbackFnName:
|
|
9276
|
+
callbackFnName: null,
|
|
8920
9277
|
errHandling: 'none',
|
|
8921
9278
|
callingWasmExport: false,
|
|
8922
9279
|
});
|
|
@@ -8924,7 +9281,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8924
9281
|
};
|
|
8925
9282
|
|
|
8926
9283
|
taskCreation: {
|
|
8927
|
-
parentTask = getCurrentTask(
|
|
9284
|
+
parentTask = getCurrentTask(
|
|
9285
|
+
0,
|
|
9286
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9287
|
+
)?.task;
|
|
9288
|
+
|
|
8928
9289
|
if (!parentTask) {
|
|
8929
9290
|
createTask();
|
|
8930
9291
|
break taskCreation;
|
|
@@ -8942,12 +9303,25 @@ const _trampoline34 = function(arg0) {
|
|
|
8942
9303
|
}
|
|
8943
9304
|
|
|
8944
9305
|
const started = task.enterSync();
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
9306
|
+
|
|
9307
|
+
let ret;
|
|
9308
|
+
|
|
9309
|
+
try {
|
|
9310
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9311
|
+
componentIdx: task.componentIdx(),
|
|
9312
|
+
taskID: task.id(),
|
|
9313
|
+
fn: () => getTerminalStdout(),
|
|
9314
|
+
})
|
|
9315
|
+
;
|
|
9316
|
+
} catch (err) {
|
|
9317
|
+
|
|
9318
|
+
task.setErrored(err);
|
|
9319
|
+
task.reject(err);
|
|
9320
|
+
task.exit();
|
|
9321
|
+
throw err;
|
|
9322
|
+
|
|
9323
|
+
}
|
|
9324
|
+
|
|
8951
9325
|
var variant1 = ret;
|
|
8952
9326
|
if (variant1 === null || variant1=== undefined) {
|
|
8953
9327
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8988,11 +9362,11 @@ const _trampoline35 = function(arg0) {
|
|
|
8988
9362
|
|
|
8989
9363
|
const createTask = () => {
|
|
8990
9364
|
const results = createNewCurrentTask({
|
|
8991
|
-
componentIdx: -1,
|
|
9365
|
+
componentIdx: -1,
|
|
8992
9366
|
isAsync: false,
|
|
8993
9367
|
entryFnName: 'getTerminalStderr',
|
|
8994
9368
|
getCallbackFn: () => null,
|
|
8995
|
-
callbackFnName:
|
|
9369
|
+
callbackFnName: null,
|
|
8996
9370
|
errHandling: 'none',
|
|
8997
9371
|
callingWasmExport: false,
|
|
8998
9372
|
});
|
|
@@ -9000,7 +9374,11 @@ const _trampoline35 = function(arg0) {
|
|
|
9000
9374
|
};
|
|
9001
9375
|
|
|
9002
9376
|
taskCreation: {
|
|
9003
|
-
parentTask = getCurrentTask(
|
|
9377
|
+
parentTask = getCurrentTask(
|
|
9378
|
+
0,
|
|
9379
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9380
|
+
)?.task;
|
|
9381
|
+
|
|
9004
9382
|
if (!parentTask) {
|
|
9005
9383
|
createTask();
|
|
9006
9384
|
break taskCreation;
|
|
@@ -9018,12 +9396,25 @@ const _trampoline35 = function(arg0) {
|
|
|
9018
9396
|
}
|
|
9019
9397
|
|
|
9020
9398
|
const started = task.enterSync();
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
|
|
9026
|
-
|
|
9399
|
+
|
|
9400
|
+
let ret;
|
|
9401
|
+
|
|
9402
|
+
try {
|
|
9403
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9404
|
+
componentIdx: task.componentIdx(),
|
|
9405
|
+
taskID: task.id(),
|
|
9406
|
+
fn: () => getTerminalStderr(),
|
|
9407
|
+
})
|
|
9408
|
+
;
|
|
9409
|
+
} catch (err) {
|
|
9410
|
+
|
|
9411
|
+
task.setErrored(err);
|
|
9412
|
+
task.reject(err);
|
|
9413
|
+
task.exit();
|
|
9414
|
+
throw err;
|
|
9415
|
+
|
|
9416
|
+
}
|
|
9417
|
+
|
|
9027
9418
|
var variant1 = ret;
|
|
9028
9419
|
if (variant1 === null || variant1=== undefined) {
|
|
9029
9420
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -9085,19 +9476,35 @@ function parse(arg0) {
|
|
|
9085
9476
|
isManualAsync: false,
|
|
9086
9477
|
entryFnName: 'toolsParse',
|
|
9087
9478
|
getCallbackFn: () => null,
|
|
9088
|
-
callbackFnName:
|
|
9479
|
+
callbackFnName: null,
|
|
9089
9480
|
errHandling: 'throw-result-err',
|
|
9090
9481
|
callingWasmExport: true,
|
|
9091
9482
|
});
|
|
9092
9483
|
|
|
9093
9484
|
const started = task.enterSync();
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9485
|
+
|
|
9486
|
+
if (0!== null) {
|
|
9487
|
+
task.setReturnMemoryIdx(0);
|
|
9488
|
+
task.setReturnMemory(() => memory0());
|
|
9489
|
+
}
|
|
9490
|
+
|
|
9491
|
+
|
|
9492
|
+
let ret;
|
|
9493
|
+
|
|
9494
|
+
try {
|
|
9495
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9496
|
+
taskID: task.id(),
|
|
9497
|
+
componentIdx: task.componentIdx(),
|
|
9498
|
+
fn: () => toolsParse(ptr0, len0),
|
|
9499
|
+
});
|
|
9500
|
+
} catch (err) {
|
|
9501
|
+
|
|
9502
|
+
task.setErrored(err);
|
|
9503
|
+
task.reject(err);
|
|
9504
|
+
task.exit();
|
|
9505
|
+
throw err;
|
|
9506
|
+
|
|
9507
|
+
}
|
|
9101
9508
|
|
|
9102
9509
|
let variant3;
|
|
9103
9510
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9188,19 +9595,35 @@ function print(arg0) {
|
|
|
9188
9595
|
isManualAsync: false,
|
|
9189
9596
|
entryFnName: 'toolsPrint',
|
|
9190
9597
|
getCallbackFn: () => null,
|
|
9191
|
-
callbackFnName:
|
|
9598
|
+
callbackFnName: null,
|
|
9192
9599
|
errHandling: 'throw-result-err',
|
|
9193
9600
|
callingWasmExport: true,
|
|
9194
9601
|
});
|
|
9195
9602
|
|
|
9196
9603
|
const started = task.enterSync();
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9604
|
+
|
|
9605
|
+
if (0!== null) {
|
|
9606
|
+
task.setReturnMemoryIdx(0);
|
|
9607
|
+
task.setReturnMemory(() => memory0());
|
|
9608
|
+
}
|
|
9609
|
+
|
|
9610
|
+
|
|
9611
|
+
let ret;
|
|
9612
|
+
|
|
9613
|
+
try {
|
|
9614
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9615
|
+
taskID: task.id(),
|
|
9616
|
+
componentIdx: task.componentIdx(),
|
|
9617
|
+
fn: () => toolsPrint(ptr0, len0),
|
|
9618
|
+
});
|
|
9619
|
+
} catch (err) {
|
|
9620
|
+
|
|
9621
|
+
task.setErrored(err);
|
|
9622
|
+
task.reject(err);
|
|
9623
|
+
task.exit();
|
|
9624
|
+
throw err;
|
|
9625
|
+
|
|
9626
|
+
}
|
|
9204
9627
|
|
|
9205
9628
|
let variant3;
|
|
9206
9629
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9343,19 +9766,35 @@ function componentNew(arg0, arg1) {
|
|
|
9343
9766
|
isManualAsync: false,
|
|
9344
9767
|
entryFnName: 'toolsComponentNew',
|
|
9345
9768
|
getCallbackFn: () => null,
|
|
9346
|
-
callbackFnName:
|
|
9769
|
+
callbackFnName: null,
|
|
9347
9770
|
errHandling: 'throw-result-err',
|
|
9348
9771
|
callingWasmExport: true,
|
|
9349
9772
|
});
|
|
9350
9773
|
|
|
9351
9774
|
const started = task.enterSync();
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9775
|
+
|
|
9776
|
+
if (0!== null) {
|
|
9777
|
+
task.setReturnMemoryIdx(0);
|
|
9778
|
+
task.setReturnMemory(() => memory0());
|
|
9779
|
+
}
|
|
9780
|
+
|
|
9781
|
+
|
|
9782
|
+
let ret;
|
|
9783
|
+
|
|
9784
|
+
try {
|
|
9785
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9786
|
+
taskID: task.id(),
|
|
9787
|
+
componentIdx: task.componentIdx(),
|
|
9788
|
+
fn: () => toolsComponentNew(ptr0, len0, variant5_0, variant5_1, variant5_2),
|
|
9789
|
+
});
|
|
9790
|
+
} catch (err) {
|
|
9791
|
+
|
|
9792
|
+
task.setErrored(err);
|
|
9793
|
+
task.reject(err);
|
|
9794
|
+
task.exit();
|
|
9795
|
+
throw err;
|
|
9796
|
+
|
|
9797
|
+
}
|
|
9359
9798
|
|
|
9360
9799
|
let variant8;
|
|
9361
9800
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9446,19 +9885,35 @@ function componentWit(arg0) {
|
|
|
9446
9885
|
isManualAsync: false,
|
|
9447
9886
|
entryFnName: 'toolsComponentWit',
|
|
9448
9887
|
getCallbackFn: () => null,
|
|
9449
|
-
callbackFnName:
|
|
9888
|
+
callbackFnName: null,
|
|
9450
9889
|
errHandling: 'throw-result-err',
|
|
9451
9890
|
callingWasmExport: true,
|
|
9452
9891
|
});
|
|
9453
9892
|
|
|
9454
9893
|
const started = task.enterSync();
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9894
|
+
|
|
9895
|
+
if (0!== null) {
|
|
9896
|
+
task.setReturnMemoryIdx(0);
|
|
9897
|
+
task.setReturnMemory(() => memory0());
|
|
9898
|
+
}
|
|
9899
|
+
|
|
9900
|
+
|
|
9901
|
+
let ret;
|
|
9902
|
+
|
|
9903
|
+
try {
|
|
9904
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9905
|
+
taskID: task.id(),
|
|
9906
|
+
componentIdx: task.componentIdx(),
|
|
9907
|
+
fn: () => toolsComponentWit(ptr0, len0),
|
|
9908
|
+
});
|
|
9909
|
+
} catch (err) {
|
|
9910
|
+
|
|
9911
|
+
task.setErrored(err);
|
|
9912
|
+
task.reject(err);
|
|
9913
|
+
task.exit();
|
|
9914
|
+
throw err;
|
|
9915
|
+
|
|
9916
|
+
}
|
|
9462
9917
|
|
|
9463
9918
|
let variant3;
|
|
9464
9919
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9579,19 +10034,35 @@ function componentWitMetadataForWorld(arg0, arg1) {
|
|
|
9579
10034
|
isManualAsync: false,
|
|
9580
10035
|
entryFnName: 'toolsComponentWitMetadataForWorld',
|
|
9581
10036
|
getCallbackFn: () => null,
|
|
9582
|
-
callbackFnName:
|
|
10037
|
+
callbackFnName: null,
|
|
9583
10038
|
errHandling: 'throw-result-err',
|
|
9584
10039
|
callingWasmExport: true,
|
|
9585
10040
|
});
|
|
9586
10041
|
|
|
9587
10042
|
const started = task.enterSync();
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
10043
|
+
|
|
10044
|
+
if (0!== null) {
|
|
10045
|
+
task.setReturnMemoryIdx(0);
|
|
10046
|
+
task.setReturnMemory(() => memory0());
|
|
10047
|
+
}
|
|
10048
|
+
|
|
10049
|
+
|
|
10050
|
+
let ret;
|
|
10051
|
+
|
|
10052
|
+
try {
|
|
10053
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10054
|
+
taskID: task.id(),
|
|
10055
|
+
componentIdx: task.componentIdx(),
|
|
10056
|
+
fn: () => toolsComponentWitMetadataForWorld(variant2_0, variant2_1, variant2_2, variant4_0, variant4_1, variant4_2),
|
|
10057
|
+
});
|
|
10058
|
+
} catch (err) {
|
|
10059
|
+
|
|
10060
|
+
task.setErrored(err);
|
|
10061
|
+
task.reject(err);
|
|
10062
|
+
task.exit();
|
|
10063
|
+
throw err;
|
|
10064
|
+
|
|
10065
|
+
}
|
|
9595
10066
|
|
|
9596
10067
|
let variant24;
|
|
9597
10068
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10007,19 +10478,35 @@ function componentEmbed(arg0) {
|
|
|
10007
10478
|
isManualAsync: false,
|
|
10008
10479
|
entryFnName: 'toolsComponentEmbed',
|
|
10009
10480
|
getCallbackFn: () => null,
|
|
10010
|
-
callbackFnName:
|
|
10481
|
+
callbackFnName: null,
|
|
10011
10482
|
errHandling: 'throw-result-err',
|
|
10012
10483
|
callingWasmExport: true,
|
|
10013
10484
|
});
|
|
10014
10485
|
|
|
10015
10486
|
const started = task.enterSync();
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10487
|
+
|
|
10488
|
+
if (0!== null) {
|
|
10489
|
+
task.setReturnMemoryIdx(0);
|
|
10490
|
+
task.setReturnMemory(() => memory0());
|
|
10491
|
+
}
|
|
10492
|
+
|
|
10493
|
+
|
|
10494
|
+
let ret;
|
|
10495
|
+
|
|
10496
|
+
try {
|
|
10497
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10498
|
+
taskID: task.id(),
|
|
10499
|
+
componentIdx: task.componentIdx(),
|
|
10500
|
+
fn: () => toolsComponentEmbed(ptr0),
|
|
10501
|
+
});
|
|
10502
|
+
} catch (err) {
|
|
10503
|
+
|
|
10504
|
+
task.setErrored(err);
|
|
10505
|
+
task.reject(err);
|
|
10506
|
+
task.exit();
|
|
10507
|
+
throw err;
|
|
10508
|
+
|
|
10509
|
+
}
|
|
10023
10510
|
|
|
10024
10511
|
let variant27;
|
|
10025
10512
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10110,19 +10597,35 @@ function metadataShow(arg0) {
|
|
|
10110
10597
|
isManualAsync: false,
|
|
10111
10598
|
entryFnName: 'toolsMetadataShow',
|
|
10112
10599
|
getCallbackFn: () => null,
|
|
10113
|
-
callbackFnName:
|
|
10600
|
+
callbackFnName: null,
|
|
10114
10601
|
errHandling: 'throw-result-err',
|
|
10115
10602
|
callingWasmExport: true,
|
|
10116
10603
|
});
|
|
10117
10604
|
|
|
10118
10605
|
const started = task.enterSync();
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10606
|
+
|
|
10607
|
+
if (0!== null) {
|
|
10608
|
+
task.setReturnMemoryIdx(0);
|
|
10609
|
+
task.setReturnMemory(() => memory0());
|
|
10610
|
+
}
|
|
10611
|
+
|
|
10612
|
+
|
|
10613
|
+
let ret;
|
|
10614
|
+
|
|
10615
|
+
try {
|
|
10616
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10617
|
+
taskID: task.id(),
|
|
10618
|
+
componentIdx: task.componentIdx(),
|
|
10619
|
+
fn: () => toolsMetadataShow(ptr0, len0),
|
|
10620
|
+
});
|
|
10621
|
+
} catch (err) {
|
|
10622
|
+
|
|
10623
|
+
task.setErrored(err);
|
|
10624
|
+
task.reject(err);
|
|
10625
|
+
task.exit();
|
|
10626
|
+
throw err;
|
|
10627
|
+
|
|
10628
|
+
}
|
|
10126
10629
|
|
|
10127
10630
|
let variant12;
|
|
10128
10631
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10333,19 +10836,35 @@ function metadataAdd(arg0, arg1) {
|
|
|
10333
10836
|
isManualAsync: false,
|
|
10334
10837
|
entryFnName: 'toolsMetadataAdd',
|
|
10335
10838
|
getCallbackFn: () => null,
|
|
10336
|
-
callbackFnName:
|
|
10839
|
+
callbackFnName: null,
|
|
10337
10840
|
errHandling: 'throw-result-err',
|
|
10338
10841
|
callingWasmExport: true,
|
|
10339
10842
|
});
|
|
10340
10843
|
|
|
10341
10844
|
const started = task.enterSync();
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10845
|
+
|
|
10846
|
+
if (0!== null) {
|
|
10847
|
+
task.setReturnMemoryIdx(0);
|
|
10848
|
+
task.setReturnMemory(() => memory0());
|
|
10849
|
+
}
|
|
10850
|
+
|
|
10851
|
+
|
|
10852
|
+
let ret;
|
|
10853
|
+
|
|
10854
|
+
try {
|
|
10855
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10856
|
+
taskID: task.id(),
|
|
10857
|
+
componentIdx: task.componentIdx(),
|
|
10858
|
+
fn: () => toolsMetadataAdd(ptr0, len0, result7, len7),
|
|
10859
|
+
});
|
|
10860
|
+
} catch (err) {
|
|
10861
|
+
|
|
10862
|
+
task.setErrored(err);
|
|
10863
|
+
task.reject(err);
|
|
10864
|
+
task.exit();
|
|
10865
|
+
throw err;
|
|
10866
|
+
|
|
10867
|
+
}
|
|
10349
10868
|
|
|
10350
10869
|
let variant10;
|
|
10351
10870
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10471,8 +10990,22 @@ null,
|
|
|
10471
10990
|
paramLiftFns: [],
|
|
10472
10991
|
resultLowerFns: [_lowerFlatOwn({
|
|
10473
10992
|
componentIdx: 0,
|
|
10474
|
-
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
|
+
,
|
|
10475
11007
|
})],
|
|
11008
|
+
hasResultPointer: false,
|
|
10476
11009
|
funcTypeIsAsync: false,
|
|
10477
11010
|
getCallbackFn: () => null,
|
|
10478
11011
|
getPostReturnFn: () => null,
|
|
@@ -10480,7 +11013,7 @@ null,
|
|
|
10480
11013
|
memoryIdx: null,
|
|
10481
11014
|
stringEncoding: 'utf8',
|
|
10482
11015
|
getMemoryFn: () => null,
|
|
10483
|
-
getReallocFn:
|
|
11016
|
+
getReallocFn: undefined,
|
|
10484
11017
|
importFn: _trampoline5,
|
|
10485
11018
|
},
|
|
10486
11019
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10493,8 +11026,22 @@ null,
|
|
|
10493
11026
|
paramLiftFns: [],
|
|
10494
11027
|
resultLowerFns: [_lowerFlatOwn({
|
|
10495
11028
|
componentIdx: 0,
|
|
10496
|
-
lowerFn:
|
|
11029
|
+
lowerFn:
|
|
11030
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11031
|
+
if (!(obj instanceof OutputStream)) {
|
|
11032
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11033
|
+
}
|
|
11034
|
+
let handle = obj[symbolRscHandle];
|
|
11035
|
+
if (!handle) {
|
|
11036
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11037
|
+
captureTable2.set(rep, obj);
|
|
11038
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11039
|
+
}
|
|
11040
|
+
return handle;
|
|
11041
|
+
}
|
|
11042
|
+
,
|
|
10497
11043
|
})],
|
|
11044
|
+
hasResultPointer: false,
|
|
10498
11045
|
funcTypeIsAsync: false,
|
|
10499
11046
|
getCallbackFn: () => null,
|
|
10500
11047
|
getPostReturnFn: () => null,
|
|
@@ -10502,7 +11049,7 @@ null,
|
|
|
10502
11049
|
memoryIdx: null,
|
|
10503
11050
|
stringEncoding: 'utf8',
|
|
10504
11051
|
getMemoryFn: () => null,
|
|
10505
|
-
getReallocFn:
|
|
11052
|
+
getReallocFn: undefined,
|
|
10506
11053
|
importFn: _trampoline5,
|
|
10507
11054
|
},
|
|
10508
11055
|
);
|
|
@@ -10542,8 +11089,22 @@ null,
|
|
|
10542
11089
|
paramLiftFns: [],
|
|
10543
11090
|
resultLowerFns: [_lowerFlatOwn({
|
|
10544
11091
|
componentIdx: 0,
|
|
10545
|
-
lowerFn:
|
|
11092
|
+
lowerFn:
|
|
11093
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11094
|
+
if (!(obj instanceof InputStream)) {
|
|
11095
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11096
|
+
}
|
|
11097
|
+
let handle = obj[symbolRscHandle];
|
|
11098
|
+
if (!handle) {
|
|
11099
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11100
|
+
captureTable1.set(rep, obj);
|
|
11101
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11102
|
+
}
|
|
11103
|
+
return handle;
|
|
11104
|
+
}
|
|
11105
|
+
,
|
|
10546
11106
|
})],
|
|
11107
|
+
hasResultPointer: false,
|
|
10547
11108
|
funcTypeIsAsync: false,
|
|
10548
11109
|
getCallbackFn: () => null,
|
|
10549
11110
|
getPostReturnFn: () => null,
|
|
@@ -10551,7 +11112,7 @@ null,
|
|
|
10551
11112
|
memoryIdx: null,
|
|
10552
11113
|
stringEncoding: 'utf8',
|
|
10553
11114
|
getMemoryFn: () => null,
|
|
10554
|
-
getReallocFn:
|
|
11115
|
+
getReallocFn: undefined,
|
|
10555
11116
|
importFn: _trampoline8,
|
|
10556
11117
|
},
|
|
10557
11118
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10564,8 +11125,22 @@ null,
|
|
|
10564
11125
|
paramLiftFns: [],
|
|
10565
11126
|
resultLowerFns: [_lowerFlatOwn({
|
|
10566
11127
|
componentIdx: 0,
|
|
10567
|
-
lowerFn:
|
|
11128
|
+
lowerFn:
|
|
11129
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11130
|
+
if (!(obj instanceof InputStream)) {
|
|
11131
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11132
|
+
}
|
|
11133
|
+
let handle = obj[symbolRscHandle];
|
|
11134
|
+
if (!handle) {
|
|
11135
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11136
|
+
captureTable1.set(rep, obj);
|
|
11137
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11138
|
+
}
|
|
11139
|
+
return handle;
|
|
11140
|
+
}
|
|
11141
|
+
,
|
|
10568
11142
|
})],
|
|
11143
|
+
hasResultPointer: false,
|
|
10569
11144
|
funcTypeIsAsync: false,
|
|
10570
11145
|
getCallbackFn: () => null,
|
|
10571
11146
|
getPostReturnFn: () => null,
|
|
@@ -10573,7 +11148,7 @@ null,
|
|
|
10573
11148
|
memoryIdx: null,
|
|
10574
11149
|
stringEncoding: 'utf8',
|
|
10575
11150
|
getMemoryFn: () => null,
|
|
10576
|
-
getReallocFn:
|
|
11151
|
+
getReallocFn: undefined,
|
|
10577
11152
|
importFn: _trampoline8,
|
|
10578
11153
|
},
|
|
10579
11154
|
);
|
|
@@ -10587,8 +11162,22 @@ null,
|
|
|
10587
11162
|
paramLiftFns: [],
|
|
10588
11163
|
resultLowerFns: [_lowerFlatOwn({
|
|
10589
11164
|
componentIdx: 0,
|
|
10590
|
-
lowerFn:
|
|
11165
|
+
lowerFn:
|
|
11166
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11167
|
+
if (!(obj instanceof OutputStream)) {
|
|
11168
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11169
|
+
}
|
|
11170
|
+
let handle = obj[symbolRscHandle];
|
|
11171
|
+
if (!handle) {
|
|
11172
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11173
|
+
captureTable2.set(rep, obj);
|
|
11174
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11175
|
+
}
|
|
11176
|
+
return handle;
|
|
11177
|
+
}
|
|
11178
|
+
,
|
|
10591
11179
|
})],
|
|
11180
|
+
hasResultPointer: false,
|
|
10592
11181
|
funcTypeIsAsync: false,
|
|
10593
11182
|
getCallbackFn: () => null,
|
|
10594
11183
|
getPostReturnFn: () => null,
|
|
@@ -10596,7 +11185,7 @@ null,
|
|
|
10596
11185
|
memoryIdx: null,
|
|
10597
11186
|
stringEncoding: 'utf8',
|
|
10598
11187
|
getMemoryFn: () => null,
|
|
10599
|
-
getReallocFn:
|
|
11188
|
+
getReallocFn: undefined,
|
|
10600
11189
|
importFn: _trampoline9,
|
|
10601
11190
|
},
|
|
10602
11191
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10609,8 +11198,22 @@ null,
|
|
|
10609
11198
|
paramLiftFns: [],
|
|
10610
11199
|
resultLowerFns: [_lowerFlatOwn({
|
|
10611
11200
|
componentIdx: 0,
|
|
10612
|
-
lowerFn:
|
|
11201
|
+
lowerFn:
|
|
11202
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11203
|
+
if (!(obj instanceof OutputStream)) {
|
|
11204
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11205
|
+
}
|
|
11206
|
+
let handle = obj[symbolRscHandle];
|
|
11207
|
+
if (!handle) {
|
|
11208
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11209
|
+
captureTable2.set(rep, obj);
|
|
11210
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11211
|
+
}
|
|
11212
|
+
return handle;
|
|
11213
|
+
}
|
|
11214
|
+
,
|
|
10613
11215
|
})],
|
|
11216
|
+
hasResultPointer: false,
|
|
10614
11217
|
funcTypeIsAsync: false,
|
|
10615
11218
|
getCallbackFn: () => null,
|
|
10616
11219
|
getPostReturnFn: () => null,
|
|
@@ -10618,7 +11221,7 @@ null,
|
|
|
10618
11221
|
memoryIdx: null,
|
|
10619
11222
|
stringEncoding: 'utf8',
|
|
10620
11223
|
getMemoryFn: () => null,
|
|
10621
|
-
getReallocFn:
|
|
11224
|
+
getReallocFn: undefined,
|
|
10622
11225
|
importFn: _trampoline9,
|
|
10623
11226
|
},
|
|
10624
11227
|
);
|
|
@@ -10629,8 +11232,9 @@ null,
|
|
|
10629
11232
|
componentIdx: 0,
|
|
10630
11233
|
isAsync: false,
|
|
10631
11234
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10632
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
11235
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10633
11236
|
resultLowerFns: [],
|
|
11237
|
+
hasResultPointer: false,
|
|
10634
11238
|
funcTypeIsAsync: false,
|
|
10635
11239
|
getCallbackFn: () => null,
|
|
10636
11240
|
getPostReturnFn: () => null,
|
|
@@ -10638,7 +11242,7 @@ null,
|
|
|
10638
11242
|
memoryIdx: null,
|
|
10639
11243
|
stringEncoding: 'utf8',
|
|
10640
11244
|
getMemoryFn: () => null,
|
|
10641
|
-
getReallocFn:
|
|
11245
|
+
getReallocFn: undefined,
|
|
10642
11246
|
importFn: _trampoline10,
|
|
10643
11247
|
},
|
|
10644
11248
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10648,8 +11252,9 @@ null,
|
|
|
10648
11252
|
componentIdx: 0,
|
|
10649
11253
|
isAsync: false,
|
|
10650
11254
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10651
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
11255
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10652
11256
|
resultLowerFns: [],
|
|
11257
|
+
hasResultPointer: false,
|
|
10653
11258
|
funcTypeIsAsync: false,
|
|
10654
11259
|
getCallbackFn: () => null,
|
|
10655
11260
|
getPostReturnFn: () => null,
|
|
@@ -10657,7 +11262,7 @@ null,
|
|
|
10657
11262
|
memoryIdx: null,
|
|
10658
11263
|
stringEncoding: 'utf8',
|
|
10659
11264
|
getMemoryFn: () => null,
|
|
10660
|
-
getReallocFn:
|
|
11265
|
+
getReallocFn: undefined,
|
|
10661
11266
|
importFn: _trampoline10,
|
|
10662
11267
|
},
|
|
10663
11268
|
);
|
|
@@ -10670,10 +11275,11 @@ null,
|
|
|
10670
11275
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10671
11276
|
paramLiftFns: [],
|
|
10672
11277
|
resultLowerFns: [_lowerFlatList({
|
|
10673
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
11278
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10674
11279
|
elemSize32: 16,
|
|
10675
11280
|
elemAlign32: 4,
|
|
10676
11281
|
})],
|
|
11282
|
+
hasResultPointer: true,
|
|
10677
11283
|
funcTypeIsAsync: false,
|
|
10678
11284
|
getCallbackFn: () => null,
|
|
10679
11285
|
getPostReturnFn: () => null,
|
|
@@ -10693,10 +11299,11 @@ null,
|
|
|
10693
11299
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10694
11300
|
paramLiftFns: [],
|
|
10695
11301
|
resultLowerFns: [_lowerFlatList({
|
|
10696
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
11302
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10697
11303
|
elemSize32: 16,
|
|
10698
11304
|
elemAlign32: 4,
|
|
10699
11305
|
})],
|
|
11306
|
+
hasResultPointer: true,
|
|
10700
11307
|
funcTypeIsAsync: false,
|
|
10701
11308
|
getCallbackFn: () => null,
|
|
10702
11309
|
getPostReturnFn: () => null,
|
|
@@ -10721,6 +11328,7 @@ null,
|
|
|
10721
11328
|
[ '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 ],
|
|
10722
11329
|
])
|
|
10723
11330
|
],
|
|
11331
|
+
hasResultPointer: true,
|
|
10724
11332
|
funcTypeIsAsync: false,
|
|
10725
11333
|
getCallbackFn: () => null,
|
|
10726
11334
|
getPostReturnFn: () => null,
|
|
@@ -10728,7 +11336,7 @@ null,
|
|
|
10728
11336
|
memoryIdx: 0,
|
|
10729
11337
|
stringEncoding: 'utf8',
|
|
10730
11338
|
getMemoryFn: () => memory0,
|
|
10731
|
-
getReallocFn:
|
|
11339
|
+
getReallocFn: undefined,
|
|
10732
11340
|
importFn: _trampoline12,
|
|
10733
11341
|
},
|
|
10734
11342
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10744,6 +11352,7 @@ null,
|
|
|
10744
11352
|
[ '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 ],
|
|
10745
11353
|
])
|
|
10746
11354
|
],
|
|
11355
|
+
hasResultPointer: true,
|
|
10747
11356
|
funcTypeIsAsync: false,
|
|
10748
11357
|
getCallbackFn: () => null,
|
|
10749
11358
|
getPostReturnFn: () => null,
|
|
@@ -10751,7 +11360,7 @@ null,
|
|
|
10751
11360
|
memoryIdx: 0,
|
|
10752
11361
|
stringEncoding: 'utf8',
|
|
10753
11362
|
getMemoryFn: () => memory0,
|
|
10754
|
-
getReallocFn:
|
|
11363
|
+
getReallocFn: undefined,
|
|
10755
11364
|
importFn: _trampoline12,
|
|
10756
11365
|
},
|
|
10757
11366
|
);
|
|
@@ -10768,6 +11377,7 @@ null,
|
|
|
10768
11377
|
[ '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 ],
|
|
10769
11378
|
])
|
|
10770
11379
|
],
|
|
11380
|
+
hasResultPointer: true,
|
|
10771
11381
|
funcTypeIsAsync: false,
|
|
10772
11382
|
getCallbackFn: () => null,
|
|
10773
11383
|
getPostReturnFn: () => null,
|
|
@@ -10775,7 +11385,7 @@ null,
|
|
|
10775
11385
|
memoryIdx: 0,
|
|
10776
11386
|
stringEncoding: 'utf8',
|
|
10777
11387
|
getMemoryFn: () => memory0,
|
|
10778
|
-
getReallocFn:
|
|
11388
|
+
getReallocFn: undefined,
|
|
10779
11389
|
importFn: _trampoline13,
|
|
10780
11390
|
},
|
|
10781
11391
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10791,6 +11401,7 @@ null,
|
|
|
10791
11401
|
[ '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 ],
|
|
10792
11402
|
])
|
|
10793
11403
|
],
|
|
11404
|
+
hasResultPointer: true,
|
|
10794
11405
|
funcTypeIsAsync: false,
|
|
10795
11406
|
getCallbackFn: () => null,
|
|
10796
11407
|
getPostReturnFn: () => null,
|
|
@@ -10798,7 +11409,7 @@ null,
|
|
|
10798
11409
|
memoryIdx: 0,
|
|
10799
11410
|
stringEncoding: 'utf8',
|
|
10800
11411
|
getMemoryFn: () => memory0,
|
|
10801
|
-
getReallocFn:
|
|
11412
|
+
getReallocFn: undefined,
|
|
10802
11413
|
importFn: _trampoline13,
|
|
10803
11414
|
},
|
|
10804
11415
|
);
|
|
@@ -10811,10 +11422,11 @@ null,
|
|
|
10811
11422
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10812
11423
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10813
11424
|
resultLowerFns: [_lowerFlatResult([
|
|
10814
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11425
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10815
11426
|
[ '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 ],
|
|
10816
11427
|
])
|
|
10817
11428
|
],
|
|
11429
|
+
hasResultPointer: true,
|
|
10818
11430
|
funcTypeIsAsync: false,
|
|
10819
11431
|
getCallbackFn: () => null,
|
|
10820
11432
|
getPostReturnFn: () => null,
|
|
@@ -10822,7 +11434,7 @@ null,
|
|
|
10822
11434
|
memoryIdx: 0,
|
|
10823
11435
|
stringEncoding: 'utf8',
|
|
10824
11436
|
getMemoryFn: () => memory0,
|
|
10825
|
-
getReallocFn:
|
|
11437
|
+
getReallocFn: undefined,
|
|
10826
11438
|
importFn: _trampoline14,
|
|
10827
11439
|
},
|
|
10828
11440
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10834,10 +11446,11 @@ null,
|
|
|
10834
11446
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10835
11447
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10836
11448
|
resultLowerFns: [_lowerFlatResult([
|
|
10837
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11449
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10838
11450
|
[ '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 ],
|
|
10839
11451
|
])
|
|
10840
11452
|
],
|
|
11453
|
+
hasResultPointer: true,
|
|
10841
11454
|
funcTypeIsAsync: false,
|
|
10842
11455
|
getCallbackFn: () => null,
|
|
10843
11456
|
getPostReturnFn: () => null,
|
|
@@ -10845,7 +11458,7 @@ null,
|
|
|
10845
11458
|
memoryIdx: 0,
|
|
10846
11459
|
stringEncoding: 'utf8',
|
|
10847
11460
|
getMemoryFn: () => memory0,
|
|
10848
|
-
getReallocFn:
|
|
11461
|
+
getReallocFn: undefined,
|
|
10849
11462
|
importFn: _trampoline14,
|
|
10850
11463
|
},
|
|
10851
11464
|
);
|
|
@@ -10862,6 +11475,7 @@ null,
|
|
|
10862
11475
|
[ '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 ],
|
|
10863
11476
|
])
|
|
10864
11477
|
],
|
|
11478
|
+
hasResultPointer: true,
|
|
10865
11479
|
funcTypeIsAsync: false,
|
|
10866
11480
|
getCallbackFn: () => null,
|
|
10867
11481
|
getPostReturnFn: () => null,
|
|
@@ -10869,7 +11483,7 @@ null,
|
|
|
10869
11483
|
memoryIdx: 0,
|
|
10870
11484
|
stringEncoding: 'utf8',
|
|
10871
11485
|
getMemoryFn: () => memory0,
|
|
10872
|
-
getReallocFn:
|
|
11486
|
+
getReallocFn: undefined,
|
|
10873
11487
|
importFn: _trampoline15,
|
|
10874
11488
|
},
|
|
10875
11489
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10885,6 +11499,7 @@ null,
|
|
|
10885
11499
|
[ '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 ],
|
|
10886
11500
|
])
|
|
10887
11501
|
],
|
|
11502
|
+
hasResultPointer: true,
|
|
10888
11503
|
funcTypeIsAsync: false,
|
|
10889
11504
|
getCallbackFn: () => null,
|
|
10890
11505
|
getPostReturnFn: () => null,
|
|
@@ -10892,7 +11507,7 @@ null,
|
|
|
10892
11507
|
memoryIdx: 0,
|
|
10893
11508
|
stringEncoding: 'utf8',
|
|
10894
11509
|
getMemoryFn: () => memory0,
|
|
10895
|
-
getReallocFn:
|
|
11510
|
+
getReallocFn: undefined,
|
|
10896
11511
|
importFn: _trampoline15,
|
|
10897
11512
|
},
|
|
10898
11513
|
);
|
|
@@ -10905,10 +11520,11 @@ null,
|
|
|
10905
11520
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10906
11521
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10907
11522
|
resultLowerFns: [_lowerFlatResult([
|
|
10908
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11523
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10909
11524
|
[ '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 ],
|
|
10910
11525
|
])
|
|
10911
11526
|
],
|
|
11527
|
+
hasResultPointer: true,
|
|
10912
11528
|
funcTypeIsAsync: false,
|
|
10913
11529
|
getCallbackFn: () => null,
|
|
10914
11530
|
getPostReturnFn: () => null,
|
|
@@ -10916,7 +11532,7 @@ null,
|
|
|
10916
11532
|
memoryIdx: 0,
|
|
10917
11533
|
stringEncoding: 'utf8',
|
|
10918
11534
|
getMemoryFn: () => memory0,
|
|
10919
|
-
getReallocFn:
|
|
11535
|
+
getReallocFn: undefined,
|
|
10920
11536
|
importFn: _trampoline16,
|
|
10921
11537
|
},
|
|
10922
11538
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10928,10 +11544,11 @@ null,
|
|
|
10928
11544
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10929
11545
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10930
11546
|
resultLowerFns: [_lowerFlatResult([
|
|
10931
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11547
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10932
11548
|
[ '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 ],
|
|
10933
11549
|
])
|
|
10934
11550
|
],
|
|
11551
|
+
hasResultPointer: true,
|
|
10935
11552
|
funcTypeIsAsync: false,
|
|
10936
11553
|
getCallbackFn: () => null,
|
|
10937
11554
|
getPostReturnFn: () => null,
|
|
@@ -10939,7 +11556,7 @@ null,
|
|
|
10939
11556
|
memoryIdx: 0,
|
|
10940
11557
|
stringEncoding: 'utf8',
|
|
10941
11558
|
getMemoryFn: () => memory0,
|
|
10942
|
-
getReallocFn:
|
|
11559
|
+
getReallocFn: undefined,
|
|
10943
11560
|
importFn: _trampoline16,
|
|
10944
11561
|
},
|
|
10945
11562
|
);
|
|
@@ -10954,11 +11571,25 @@ null,
|
|
|
10954
11571
|
resultLowerFns: [_lowerFlatResult([
|
|
10955
11572
|
[ 'ok', _lowerFlatOwn({
|
|
10956
11573
|
componentIdx: 0,
|
|
10957
|
-
lowerFn:
|
|
11574
|
+
lowerFn:
|
|
11575
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11576
|
+
if (!(obj instanceof InputStream)) {
|
|
11577
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11578
|
+
}
|
|
11579
|
+
let handle = obj[symbolRscHandle];
|
|
11580
|
+
if (!handle) {
|
|
11581
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11582
|
+
captureTable1.set(rep, obj);
|
|
11583
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11584
|
+
}
|
|
11585
|
+
return handle;
|
|
11586
|
+
}
|
|
11587
|
+
,
|
|
10958
11588
|
}), 8, 4, 4 ],
|
|
10959
11589
|
[ '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 ],
|
|
10960
11590
|
])
|
|
10961
11591
|
],
|
|
11592
|
+
hasResultPointer: true,
|
|
10962
11593
|
funcTypeIsAsync: false,
|
|
10963
11594
|
getCallbackFn: () => null,
|
|
10964
11595
|
getPostReturnFn: () => null,
|
|
@@ -10966,7 +11597,7 @@ null,
|
|
|
10966
11597
|
memoryIdx: 0,
|
|
10967
11598
|
stringEncoding: 'utf8',
|
|
10968
11599
|
getMemoryFn: () => memory0,
|
|
10969
|
-
getReallocFn:
|
|
11600
|
+
getReallocFn: undefined,
|
|
10970
11601
|
importFn: _trampoline17,
|
|
10971
11602
|
},
|
|
10972
11603
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10980,11 +11611,25 @@ null,
|
|
|
10980
11611
|
resultLowerFns: [_lowerFlatResult([
|
|
10981
11612
|
[ 'ok', _lowerFlatOwn({
|
|
10982
11613
|
componentIdx: 0,
|
|
10983
|
-
lowerFn:
|
|
11614
|
+
lowerFn:
|
|
11615
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11616
|
+
if (!(obj instanceof InputStream)) {
|
|
11617
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11618
|
+
}
|
|
11619
|
+
let handle = obj[symbolRscHandle];
|
|
11620
|
+
if (!handle) {
|
|
11621
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11622
|
+
captureTable1.set(rep, obj);
|
|
11623
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11624
|
+
}
|
|
11625
|
+
return handle;
|
|
11626
|
+
}
|
|
11627
|
+
,
|
|
10984
11628
|
}), 8, 4, 4 ],
|
|
10985
11629
|
[ '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 ],
|
|
10986
11630
|
])
|
|
10987
11631
|
],
|
|
11632
|
+
hasResultPointer: true,
|
|
10988
11633
|
funcTypeIsAsync: false,
|
|
10989
11634
|
getCallbackFn: () => null,
|
|
10990
11635
|
getPostReturnFn: () => null,
|
|
@@ -10992,7 +11637,7 @@ null,
|
|
|
10992
11637
|
memoryIdx: 0,
|
|
10993
11638
|
stringEncoding: 'utf8',
|
|
10994
11639
|
getMemoryFn: () => memory0,
|
|
10995
|
-
getReallocFn:
|
|
11640
|
+
getReallocFn: undefined,
|
|
10996
11641
|
importFn: _trampoline17,
|
|
10997
11642
|
},
|
|
10998
11643
|
);
|
|
@@ -11007,11 +11652,25 @@ null,
|
|
|
11007
11652
|
resultLowerFns: [_lowerFlatResult([
|
|
11008
11653
|
[ 'ok', _lowerFlatOwn({
|
|
11009
11654
|
componentIdx: 0,
|
|
11010
|
-
lowerFn:
|
|
11655
|
+
lowerFn:
|
|
11656
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11657
|
+
if (!(obj instanceof OutputStream)) {
|
|
11658
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11659
|
+
}
|
|
11660
|
+
let handle = obj[symbolRscHandle];
|
|
11661
|
+
if (!handle) {
|
|
11662
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11663
|
+
captureTable2.set(rep, obj);
|
|
11664
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11665
|
+
}
|
|
11666
|
+
return handle;
|
|
11667
|
+
}
|
|
11668
|
+
,
|
|
11011
11669
|
}), 8, 4, 4 ],
|
|
11012
11670
|
[ '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 ],
|
|
11013
11671
|
])
|
|
11014
11672
|
],
|
|
11673
|
+
hasResultPointer: true,
|
|
11015
11674
|
funcTypeIsAsync: false,
|
|
11016
11675
|
getCallbackFn: () => null,
|
|
11017
11676
|
getPostReturnFn: () => null,
|
|
@@ -11019,7 +11678,7 @@ null,
|
|
|
11019
11678
|
memoryIdx: 0,
|
|
11020
11679
|
stringEncoding: 'utf8',
|
|
11021
11680
|
getMemoryFn: () => memory0,
|
|
11022
|
-
getReallocFn:
|
|
11681
|
+
getReallocFn: undefined,
|
|
11023
11682
|
importFn: _trampoline18,
|
|
11024
11683
|
},
|
|
11025
11684
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11033,11 +11692,25 @@ null,
|
|
|
11033
11692
|
resultLowerFns: [_lowerFlatResult([
|
|
11034
11693
|
[ 'ok', _lowerFlatOwn({
|
|
11035
11694
|
componentIdx: 0,
|
|
11036
|
-
lowerFn:
|
|
11695
|
+
lowerFn:
|
|
11696
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11697
|
+
if (!(obj instanceof OutputStream)) {
|
|
11698
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11699
|
+
}
|
|
11700
|
+
let handle = obj[symbolRscHandle];
|
|
11701
|
+
if (!handle) {
|
|
11702
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11703
|
+
captureTable2.set(rep, obj);
|
|
11704
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11705
|
+
}
|
|
11706
|
+
return handle;
|
|
11707
|
+
}
|
|
11708
|
+
,
|
|
11037
11709
|
}), 8, 4, 4 ],
|
|
11038
11710
|
[ '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 ],
|
|
11039
11711
|
])
|
|
11040
11712
|
],
|
|
11713
|
+
hasResultPointer: true,
|
|
11041
11714
|
funcTypeIsAsync: false,
|
|
11042
11715
|
getCallbackFn: () => null,
|
|
11043
11716
|
getPostReturnFn: () => null,
|
|
@@ -11045,7 +11718,7 @@ null,
|
|
|
11045
11718
|
memoryIdx: 0,
|
|
11046
11719
|
stringEncoding: 'utf8',
|
|
11047
11720
|
getMemoryFn: () => memory0,
|
|
11048
|
-
getReallocFn:
|
|
11721
|
+
getReallocFn: undefined,
|
|
11049
11722
|
importFn: _trampoline18,
|
|
11050
11723
|
},
|
|
11051
11724
|
);
|
|
@@ -11060,11 +11733,25 @@ null,
|
|
|
11060
11733
|
resultLowerFns: [_lowerFlatResult([
|
|
11061
11734
|
[ 'ok', _lowerFlatOwn({
|
|
11062
11735
|
componentIdx: 0,
|
|
11063
|
-
lowerFn:
|
|
11736
|
+
lowerFn:
|
|
11737
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11738
|
+
if (!(obj instanceof OutputStream)) {
|
|
11739
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11740
|
+
}
|
|
11741
|
+
let handle = obj[symbolRscHandle];
|
|
11742
|
+
if (!handle) {
|
|
11743
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11744
|
+
captureTable2.set(rep, obj);
|
|
11745
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11746
|
+
}
|
|
11747
|
+
return handle;
|
|
11748
|
+
}
|
|
11749
|
+
,
|
|
11064
11750
|
}), 8, 4, 4 ],
|
|
11065
11751
|
[ '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 ],
|
|
11066
11752
|
])
|
|
11067
11753
|
],
|
|
11754
|
+
hasResultPointer: true,
|
|
11068
11755
|
funcTypeIsAsync: false,
|
|
11069
11756
|
getCallbackFn: () => null,
|
|
11070
11757
|
getPostReturnFn: () => null,
|
|
@@ -11072,7 +11759,7 @@ null,
|
|
|
11072
11759
|
memoryIdx: 0,
|
|
11073
11760
|
stringEncoding: 'utf8',
|
|
11074
11761
|
getMemoryFn: () => memory0,
|
|
11075
|
-
getReallocFn:
|
|
11762
|
+
getReallocFn: undefined,
|
|
11076
11763
|
importFn: _trampoline19,
|
|
11077
11764
|
},
|
|
11078
11765
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11086,11 +11773,25 @@ null,
|
|
|
11086
11773
|
resultLowerFns: [_lowerFlatResult([
|
|
11087
11774
|
[ 'ok', _lowerFlatOwn({
|
|
11088
11775
|
componentIdx: 0,
|
|
11089
|
-
lowerFn:
|
|
11776
|
+
lowerFn:
|
|
11777
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11778
|
+
if (!(obj instanceof OutputStream)) {
|
|
11779
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11780
|
+
}
|
|
11781
|
+
let handle = obj[symbolRscHandle];
|
|
11782
|
+
if (!handle) {
|
|
11783
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11784
|
+
captureTable2.set(rep, obj);
|
|
11785
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11786
|
+
}
|
|
11787
|
+
return handle;
|
|
11788
|
+
}
|
|
11789
|
+
,
|
|
11090
11790
|
}), 8, 4, 4 ],
|
|
11091
11791
|
[ '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 ],
|
|
11092
11792
|
])
|
|
11093
11793
|
],
|
|
11794
|
+
hasResultPointer: true,
|
|
11094
11795
|
funcTypeIsAsync: false,
|
|
11095
11796
|
getCallbackFn: () => null,
|
|
11096
11797
|
getPostReturnFn: () => null,
|
|
@@ -11098,7 +11799,7 @@ null,
|
|
|
11098
11799
|
memoryIdx: 0,
|
|
11099
11800
|
stringEncoding: 'utf8',
|
|
11100
11801
|
getMemoryFn: () => memory0,
|
|
11101
|
-
getReallocFn:
|
|
11802
|
+
getReallocFn: undefined,
|
|
11102
11803
|
importFn: _trampoline19,
|
|
11103
11804
|
},
|
|
11104
11805
|
);
|
|
@@ -11113,11 +11814,25 @@ null,
|
|
|
11113
11814
|
resultLowerFns: [_lowerFlatResult([
|
|
11114
11815
|
[ 'ok', _lowerFlatOwn({
|
|
11115
11816
|
componentIdx: 0,
|
|
11116
|
-
lowerFn:
|
|
11817
|
+
lowerFn:
|
|
11818
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11819
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11820
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11821
|
+
}
|
|
11822
|
+
let handle = obj[symbolRscHandle];
|
|
11823
|
+
if (!handle) {
|
|
11824
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11825
|
+
captureTable5.set(rep, obj);
|
|
11826
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11827
|
+
}
|
|
11828
|
+
return handle;
|
|
11829
|
+
}
|
|
11830
|
+
,
|
|
11117
11831
|
}), 8, 4, 4 ],
|
|
11118
11832
|
[ '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 ],
|
|
11119
11833
|
])
|
|
11120
11834
|
],
|
|
11835
|
+
hasResultPointer: true,
|
|
11121
11836
|
funcTypeIsAsync: false,
|
|
11122
11837
|
getCallbackFn: () => null,
|
|
11123
11838
|
getPostReturnFn: () => null,
|
|
@@ -11125,7 +11840,7 @@ null,
|
|
|
11125
11840
|
memoryIdx: 0,
|
|
11126
11841
|
stringEncoding: 'utf8',
|
|
11127
11842
|
getMemoryFn: () => memory0,
|
|
11128
|
-
getReallocFn:
|
|
11843
|
+
getReallocFn: undefined,
|
|
11129
11844
|
importFn: _trampoline20,
|
|
11130
11845
|
},
|
|
11131
11846
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11139,11 +11854,25 @@ null,
|
|
|
11139
11854
|
resultLowerFns: [_lowerFlatResult([
|
|
11140
11855
|
[ 'ok', _lowerFlatOwn({
|
|
11141
11856
|
componentIdx: 0,
|
|
11142
|
-
lowerFn:
|
|
11857
|
+
lowerFn:
|
|
11858
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11859
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11860
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11861
|
+
}
|
|
11862
|
+
let handle = obj[symbolRscHandle];
|
|
11863
|
+
if (!handle) {
|
|
11864
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11865
|
+
captureTable5.set(rep, obj);
|
|
11866
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11867
|
+
}
|
|
11868
|
+
return handle;
|
|
11869
|
+
}
|
|
11870
|
+
,
|
|
11143
11871
|
}), 8, 4, 4 ],
|
|
11144
11872
|
[ '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 ],
|
|
11145
11873
|
])
|
|
11146
11874
|
],
|
|
11875
|
+
hasResultPointer: true,
|
|
11147
11876
|
funcTypeIsAsync: false,
|
|
11148
11877
|
getCallbackFn: () => null,
|
|
11149
11878
|
getPostReturnFn: () => null,
|
|
@@ -11151,7 +11880,7 @@ null,
|
|
|
11151
11880
|
memoryIdx: 0,
|
|
11152
11881
|
stringEncoding: 'utf8',
|
|
11153
11882
|
getMemoryFn: () => memory0,
|
|
11154
|
-
getReallocFn:
|
|
11883
|
+
getReallocFn: undefined,
|
|
11155
11884
|
importFn: _trampoline20,
|
|
11156
11885
|
},
|
|
11157
11886
|
);
|
|
@@ -11164,22 +11893,23 @@ null,
|
|
|
11164
11893
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
11165
11894
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
11166
11895
|
resultLowerFns: [_lowerFlatResult([
|
|
11167
|
-
[ '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],]),
|
|
11896
|
+
[ '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([
|
|
11168
11897
|
[ 'none', null, 24, 8, 8 ],
|
|
11169
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11898
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11170
11899
|
])
|
|
11171
|
-
,
|
|
11900
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11172
11901
|
[ 'none', null, 24, 8, 8 ],
|
|
11173
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11902
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11174
11903
|
])
|
|
11175
|
-
,
|
|
11904
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11176
11905
|
[ 'none', null, 24, 8, 8 ],
|
|
11177
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11906
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11178
11907
|
])
|
|
11179
|
-
,
|
|
11908
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11180
11909
|
[ '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 ],
|
|
11181
11910
|
])
|
|
11182
11911
|
],
|
|
11912
|
+
hasResultPointer: true,
|
|
11183
11913
|
funcTypeIsAsync: false,
|
|
11184
11914
|
getCallbackFn: () => null,
|
|
11185
11915
|
getPostReturnFn: () => null,
|
|
@@ -11187,7 +11917,7 @@ null,
|
|
|
11187
11917
|
memoryIdx: 0,
|
|
11188
11918
|
stringEncoding: 'utf8',
|
|
11189
11919
|
getMemoryFn: () => memory0,
|
|
11190
|
-
getReallocFn:
|
|
11920
|
+
getReallocFn: undefined,
|
|
11191
11921
|
importFn: _trampoline21,
|
|
11192
11922
|
},
|
|
11193
11923
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11199,22 +11929,23 @@ null,
|
|
|
11199
11929
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
11200
11930
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
11201
11931
|
resultLowerFns: [_lowerFlatResult([
|
|
11202
|
-
[ '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],]),
|
|
11932
|
+
[ '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([
|
|
11203
11933
|
[ 'none', null, 24, 8, 8 ],
|
|
11204
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11934
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11205
11935
|
])
|
|
11206
|
-
,
|
|
11936
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11207
11937
|
[ 'none', null, 24, 8, 8 ],
|
|
11208
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11938
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11209
11939
|
])
|
|
11210
|
-
,
|
|
11940
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11211
11941
|
[ 'none', null, 24, 8, 8 ],
|
|
11212
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11942
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11213
11943
|
])
|
|
11214
|
-
,
|
|
11944
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11215
11945
|
[ '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 ],
|
|
11216
11946
|
])
|
|
11217
11947
|
],
|
|
11948
|
+
hasResultPointer: true,
|
|
11218
11949
|
funcTypeIsAsync: false,
|
|
11219
11950
|
getCallbackFn: () => null,
|
|
11220
11951
|
getPostReturnFn: () => null,
|
|
@@ -11222,7 +11953,7 @@ null,
|
|
|
11222
11953
|
memoryIdx: 0,
|
|
11223
11954
|
stringEncoding: 'utf8',
|
|
11224
11955
|
getMemoryFn: () => memory0,
|
|
11225
|
-
getReallocFn:
|
|
11956
|
+
getReallocFn: undefined,
|
|
11226
11957
|
importFn: _trampoline21,
|
|
11227
11958
|
},
|
|
11228
11959
|
);
|
|
@@ -11235,22 +11966,23 @@ null,
|
|
|
11235
11966
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
11236
11967
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
11237
11968
|
resultLowerFns: [_lowerFlatResult([
|
|
11238
|
-
[ '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],]),
|
|
11969
|
+
[ '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([
|
|
11239
11970
|
[ 'none', null, 24, 8, 8 ],
|
|
11240
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11971
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11241
11972
|
])
|
|
11242
|
-
,
|
|
11973
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11243
11974
|
[ 'none', null, 24, 8, 8 ],
|
|
11244
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11975
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11245
11976
|
])
|
|
11246
|
-
,
|
|
11977
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11247
11978
|
[ 'none', null, 24, 8, 8 ],
|
|
11248
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11979
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11249
11980
|
])
|
|
11250
|
-
,
|
|
11981
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11251
11982
|
[ '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 ],
|
|
11252
11983
|
])
|
|
11253
11984
|
],
|
|
11985
|
+
hasResultPointer: true,
|
|
11254
11986
|
funcTypeIsAsync: false,
|
|
11255
11987
|
getCallbackFn: () => null,
|
|
11256
11988
|
getPostReturnFn: () => null,
|
|
@@ -11258,7 +11990,7 @@ null,
|
|
|
11258
11990
|
memoryIdx: 0,
|
|
11259
11991
|
stringEncoding: 'utf8',
|
|
11260
11992
|
getMemoryFn: () => memory0,
|
|
11261
|
-
getReallocFn:
|
|
11993
|
+
getReallocFn: undefined,
|
|
11262
11994
|
importFn: _trampoline22,
|
|
11263
11995
|
},
|
|
11264
11996
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11270,22 +12002,23 @@ null,
|
|
|
11270
12002
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
11271
12003
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
11272
12004
|
resultLowerFns: [_lowerFlatResult([
|
|
11273
|
-
[ '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],]),
|
|
12005
|
+
[ '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([
|
|
11274
12006
|
[ 'none', null, 24, 8, 8 ],
|
|
11275
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12007
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11276
12008
|
])
|
|
11277
|
-
,
|
|
12009
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11278
12010
|
[ 'none', null, 24, 8, 8 ],
|
|
11279
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12011
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11280
12012
|
])
|
|
11281
|
-
,
|
|
12013
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11282
12014
|
[ 'none', null, 24, 8, 8 ],
|
|
11283
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12015
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11284
12016
|
])
|
|
11285
|
-
,
|
|
12017
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11286
12018
|
[ '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 ],
|
|
11287
12019
|
])
|
|
11288
12020
|
],
|
|
12021
|
+
hasResultPointer: true,
|
|
11289
12022
|
funcTypeIsAsync: false,
|
|
11290
12023
|
getCallbackFn: () => null,
|
|
11291
12024
|
getPostReturnFn: () => null,
|
|
@@ -11293,7 +12026,7 @@ null,
|
|
|
11293
12026
|
memoryIdx: 0,
|
|
11294
12027
|
stringEncoding: 'utf8',
|
|
11295
12028
|
getMemoryFn: () => memory0,
|
|
11296
|
-
getReallocFn:
|
|
12029
|
+
getReallocFn: undefined,
|
|
11297
12030
|
importFn: _trampoline22,
|
|
11298
12031
|
},
|
|
11299
12032
|
);
|
|
@@ -11308,11 +12041,25 @@ null,
|
|
|
11308
12041
|
resultLowerFns: [_lowerFlatResult([
|
|
11309
12042
|
[ 'ok', _lowerFlatOwn({
|
|
11310
12043
|
componentIdx: 0,
|
|
11311
|
-
lowerFn:
|
|
12044
|
+
lowerFn:
|
|
12045
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12046
|
+
if (!(obj instanceof Descriptor)) {
|
|
12047
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12048
|
+
}
|
|
12049
|
+
let handle = obj[symbolRscHandle];
|
|
12050
|
+
if (!handle) {
|
|
12051
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12052
|
+
captureTable6.set(rep, obj);
|
|
12053
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12054
|
+
}
|
|
12055
|
+
return handle;
|
|
12056
|
+
}
|
|
12057
|
+
,
|
|
11312
12058
|
}), 8, 4, 4 ],
|
|
11313
12059
|
[ '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 ],
|
|
11314
12060
|
])
|
|
11315
12061
|
],
|
|
12062
|
+
hasResultPointer: true,
|
|
11316
12063
|
funcTypeIsAsync: false,
|
|
11317
12064
|
getCallbackFn: () => null,
|
|
11318
12065
|
getPostReturnFn: () => null,
|
|
@@ -11320,7 +12067,7 @@ null,
|
|
|
11320
12067
|
memoryIdx: 0,
|
|
11321
12068
|
stringEncoding: 'utf8',
|
|
11322
12069
|
getMemoryFn: () => memory0,
|
|
11323
|
-
getReallocFn:
|
|
12070
|
+
getReallocFn: undefined,
|
|
11324
12071
|
importFn: _trampoline23,
|
|
11325
12072
|
},
|
|
11326
12073
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11334,11 +12081,25 @@ null,
|
|
|
11334
12081
|
resultLowerFns: [_lowerFlatResult([
|
|
11335
12082
|
[ 'ok', _lowerFlatOwn({
|
|
11336
12083
|
componentIdx: 0,
|
|
11337
|
-
lowerFn:
|
|
12084
|
+
lowerFn:
|
|
12085
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12086
|
+
if (!(obj instanceof Descriptor)) {
|
|
12087
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12088
|
+
}
|
|
12089
|
+
let handle = obj[symbolRscHandle];
|
|
12090
|
+
if (!handle) {
|
|
12091
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12092
|
+
captureTable6.set(rep, obj);
|
|
12093
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12094
|
+
}
|
|
12095
|
+
return handle;
|
|
12096
|
+
}
|
|
12097
|
+
,
|
|
11338
12098
|
}), 8, 4, 4 ],
|
|
11339
12099
|
[ '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 ],
|
|
11340
12100
|
])
|
|
11341
12101
|
],
|
|
12102
|
+
hasResultPointer: true,
|
|
11342
12103
|
funcTypeIsAsync: false,
|
|
11343
12104
|
getCallbackFn: () => null,
|
|
11344
12105
|
getPostReturnFn: () => null,
|
|
@@ -11346,7 +12107,7 @@ null,
|
|
|
11346
12107
|
memoryIdx: 0,
|
|
11347
12108
|
stringEncoding: 'utf8',
|
|
11348
12109
|
getMemoryFn: () => memory0,
|
|
11349
|
-
getReallocFn:
|
|
12110
|
+
getReallocFn: undefined,
|
|
11350
12111
|
importFn: _trampoline23,
|
|
11351
12112
|
},
|
|
11352
12113
|
);
|
|
@@ -11361,12 +12122,13 @@ null,
|
|
|
11361
12122
|
resultLowerFns: [_lowerFlatResult([
|
|
11362
12123
|
[ 'ok', _lowerFlatOption([
|
|
11363
12124
|
[ 'none', null, 16, 4, 4 ],
|
|
11364
|
-
[ '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],]),
|
|
12125
|
+
[ '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 ],
|
|
11365
12126
|
])
|
|
11366
12127
|
, 20, 4, 4 ],
|
|
11367
12128
|
[ '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 ],
|
|
11368
12129
|
])
|
|
11369
12130
|
],
|
|
12131
|
+
hasResultPointer: true,
|
|
11370
12132
|
funcTypeIsAsync: false,
|
|
11371
12133
|
getCallbackFn: () => null,
|
|
11372
12134
|
getPostReturnFn: () => null,
|
|
@@ -11388,12 +12150,13 @@ null,
|
|
|
11388
12150
|
resultLowerFns: [_lowerFlatResult([
|
|
11389
12151
|
[ 'ok', _lowerFlatOption([
|
|
11390
12152
|
[ 'none', null, 16, 4, 4 ],
|
|
11391
|
-
[ '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],]),
|
|
12153
|
+
[ '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 ],
|
|
11392
12154
|
])
|
|
11393
12155
|
, 20, 4, 4 ],
|
|
11394
12156
|
[ '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 ],
|
|
11395
12157
|
])
|
|
11396
12158
|
],
|
|
12159
|
+
hasResultPointer: true,
|
|
11397
12160
|
funcTypeIsAsync: false,
|
|
11398
12161
|
getCallbackFn: () => null,
|
|
11399
12162
|
getPostReturnFn: () => null,
|
|
@@ -11421,10 +12184,24 @@ null,
|
|
|
11421
12184
|
}), 12, 4, 4 ],
|
|
11422
12185
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11423
12186
|
componentIdx: 0,
|
|
11424
|
-
lowerFn:
|
|
12187
|
+
lowerFn:
|
|
12188
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12189
|
+
if (!(obj instanceof Error$1)) {
|
|
12190
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12191
|
+
}
|
|
12192
|
+
let handle = obj[symbolRscHandle];
|
|
12193
|
+
if (!handle) {
|
|
12194
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12195
|
+
captureTable0.set(rep, obj);
|
|
12196
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12197
|
+
}
|
|
12198
|
+
return handle;
|
|
12199
|
+
}
|
|
12200
|
+
,
|
|
11425
12201
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11426
12202
|
])
|
|
11427
12203
|
],
|
|
12204
|
+
hasResultPointer: true,
|
|
11428
12205
|
funcTypeIsAsync: false,
|
|
11429
12206
|
getCallbackFn: () => null,
|
|
11430
12207
|
getPostReturnFn: () => null,
|
|
@@ -11451,10 +12228,24 @@ null,
|
|
|
11451
12228
|
}), 12, 4, 4 ],
|
|
11452
12229
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11453
12230
|
componentIdx: 0,
|
|
11454
|
-
lowerFn:
|
|
12231
|
+
lowerFn:
|
|
12232
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12233
|
+
if (!(obj instanceof Error$1)) {
|
|
12234
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12235
|
+
}
|
|
12236
|
+
let handle = obj[symbolRscHandle];
|
|
12237
|
+
if (!handle) {
|
|
12238
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12239
|
+
captureTable0.set(rep, obj);
|
|
12240
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12241
|
+
}
|
|
12242
|
+
return handle;
|
|
12243
|
+
}
|
|
12244
|
+
,
|
|
11455
12245
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11456
12246
|
])
|
|
11457
12247
|
],
|
|
12248
|
+
hasResultPointer: true,
|
|
11458
12249
|
funcTypeIsAsync: false,
|
|
11459
12250
|
getCallbackFn: () => null,
|
|
11460
12251
|
getPostReturnFn: () => null,
|
|
@@ -11482,10 +12273,24 @@ null,
|
|
|
11482
12273
|
}), 12, 4, 4 ],
|
|
11483
12274
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11484
12275
|
componentIdx: 0,
|
|
11485
|
-
lowerFn:
|
|
12276
|
+
lowerFn:
|
|
12277
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12278
|
+
if (!(obj instanceof Error$1)) {
|
|
12279
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12280
|
+
}
|
|
12281
|
+
let handle = obj[symbolRscHandle];
|
|
12282
|
+
if (!handle) {
|
|
12283
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12284
|
+
captureTable0.set(rep, obj);
|
|
12285
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12286
|
+
}
|
|
12287
|
+
return handle;
|
|
12288
|
+
}
|
|
12289
|
+
,
|
|
11486
12290
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11487
12291
|
])
|
|
11488
12292
|
],
|
|
12293
|
+
hasResultPointer: true,
|
|
11489
12294
|
funcTypeIsAsync: false,
|
|
11490
12295
|
getCallbackFn: () => null,
|
|
11491
12296
|
getPostReturnFn: () => null,
|
|
@@ -11512,10 +12317,24 @@ null,
|
|
|
11512
12317
|
}), 12, 4, 4 ],
|
|
11513
12318
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11514
12319
|
componentIdx: 0,
|
|
11515
|
-
lowerFn:
|
|
12320
|
+
lowerFn:
|
|
12321
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12322
|
+
if (!(obj instanceof Error$1)) {
|
|
12323
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12324
|
+
}
|
|
12325
|
+
let handle = obj[symbolRscHandle];
|
|
12326
|
+
if (!handle) {
|
|
12327
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12328
|
+
captureTable0.set(rep, obj);
|
|
12329
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12330
|
+
}
|
|
12331
|
+
return handle;
|
|
12332
|
+
}
|
|
12333
|
+
,
|
|
11516
12334
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11517
12335
|
])
|
|
11518
12336
|
],
|
|
12337
|
+
hasResultPointer: true,
|
|
11519
12338
|
funcTypeIsAsync: false,
|
|
11520
12339
|
getCallbackFn: () => null,
|
|
11521
12340
|
getPostReturnFn: () => null,
|
|
@@ -11539,10 +12358,24 @@ null,
|
|
|
11539
12358
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
11540
12359
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11541
12360
|
componentIdx: 0,
|
|
11542
|
-
lowerFn:
|
|
12361
|
+
lowerFn:
|
|
12362
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12363
|
+
if (!(obj instanceof Error$1)) {
|
|
12364
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12365
|
+
}
|
|
12366
|
+
let handle = obj[symbolRscHandle];
|
|
12367
|
+
if (!handle) {
|
|
12368
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12369
|
+
captureTable0.set(rep, obj);
|
|
12370
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12371
|
+
}
|
|
12372
|
+
return handle;
|
|
12373
|
+
}
|
|
12374
|
+
,
|
|
11543
12375
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
11544
12376
|
])
|
|
11545
12377
|
],
|
|
12378
|
+
hasResultPointer: true,
|
|
11546
12379
|
funcTypeIsAsync: false,
|
|
11547
12380
|
getCallbackFn: () => null,
|
|
11548
12381
|
getPostReturnFn: () => null,
|
|
@@ -11550,7 +12383,7 @@ null,
|
|
|
11550
12383
|
memoryIdx: 0,
|
|
11551
12384
|
stringEncoding: 'utf8',
|
|
11552
12385
|
getMemoryFn: () => memory0,
|
|
11553
|
-
getReallocFn:
|
|
12386
|
+
getReallocFn: undefined,
|
|
11554
12387
|
importFn: _trampoline27,
|
|
11555
12388
|
},
|
|
11556
12389
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11565,10 +12398,24 @@ null,
|
|
|
11565
12398
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
11566
12399
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11567
12400
|
componentIdx: 0,
|
|
11568
|
-
lowerFn:
|
|
12401
|
+
lowerFn:
|
|
12402
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12403
|
+
if (!(obj instanceof Error$1)) {
|
|
12404
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12405
|
+
}
|
|
12406
|
+
let handle = obj[symbolRscHandle];
|
|
12407
|
+
if (!handle) {
|
|
12408
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12409
|
+
captureTable0.set(rep, obj);
|
|
12410
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12411
|
+
}
|
|
12412
|
+
return handle;
|
|
12413
|
+
}
|
|
12414
|
+
,
|
|
11569
12415
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
11570
12416
|
])
|
|
11571
12417
|
],
|
|
12418
|
+
hasResultPointer: true,
|
|
11572
12419
|
funcTypeIsAsync: false,
|
|
11573
12420
|
getCallbackFn: () => null,
|
|
11574
12421
|
getPostReturnFn: () => null,
|
|
@@ -11576,7 +12423,7 @@ null,
|
|
|
11576
12423
|
memoryIdx: 0,
|
|
11577
12424
|
stringEncoding: 'utf8',
|
|
11578
12425
|
getMemoryFn: () => memory0,
|
|
11579
|
-
getReallocFn:
|
|
12426
|
+
getReallocFn: undefined,
|
|
11580
12427
|
importFn: _trampoline27,
|
|
11581
12428
|
},
|
|
11582
12429
|
);
|
|
@@ -11591,15 +12438,30 @@ null,
|
|
|
11591
12438
|
elemLiftFn: _liftFlatU8,
|
|
11592
12439
|
elemAlign32: 1,
|
|
11593
12440
|
elemSize32: 1,
|
|
12441
|
+
typedArray: Uint8Array,
|
|
11594
12442
|
})],
|
|
11595
12443
|
resultLowerFns: [_lowerFlatResult([
|
|
11596
12444
|
[ 'ok', null, 12, 4, 4 ],
|
|
11597
12445
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11598
12446
|
componentIdx: 0,
|
|
11599
|
-
lowerFn:
|
|
12447
|
+
lowerFn:
|
|
12448
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12449
|
+
if (!(obj instanceof Error$1)) {
|
|
12450
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12451
|
+
}
|
|
12452
|
+
let handle = obj[symbolRscHandle];
|
|
12453
|
+
if (!handle) {
|
|
12454
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12455
|
+
captureTable0.set(rep, obj);
|
|
12456
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12457
|
+
}
|
|
12458
|
+
return handle;
|
|
12459
|
+
}
|
|
12460
|
+
,
|
|
11600
12461
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11601
12462
|
])
|
|
11602
12463
|
],
|
|
12464
|
+
hasResultPointer: true,
|
|
11603
12465
|
funcTypeIsAsync: false,
|
|
11604
12466
|
getCallbackFn: () => null,
|
|
11605
12467
|
getPostReturnFn: () => null,
|
|
@@ -11607,7 +12469,7 @@ null,
|
|
|
11607
12469
|
memoryIdx: 0,
|
|
11608
12470
|
stringEncoding: 'utf8',
|
|
11609
12471
|
getMemoryFn: () => memory0,
|
|
11610
|
-
getReallocFn:
|
|
12472
|
+
getReallocFn: undefined,
|
|
11611
12473
|
importFn: _trampoline28,
|
|
11612
12474
|
},
|
|
11613
12475
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11621,15 +12483,30 @@ null,
|
|
|
11621
12483
|
elemLiftFn: _liftFlatU8,
|
|
11622
12484
|
elemAlign32: 1,
|
|
11623
12485
|
elemSize32: 1,
|
|
12486
|
+
typedArray: Uint8Array,
|
|
11624
12487
|
})],
|
|
11625
12488
|
resultLowerFns: [_lowerFlatResult([
|
|
11626
12489
|
[ 'ok', null, 12, 4, 4 ],
|
|
11627
12490
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11628
12491
|
componentIdx: 0,
|
|
11629
|
-
lowerFn:
|
|
12492
|
+
lowerFn:
|
|
12493
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12494
|
+
if (!(obj instanceof Error$1)) {
|
|
12495
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12496
|
+
}
|
|
12497
|
+
let handle = obj[symbolRscHandle];
|
|
12498
|
+
if (!handle) {
|
|
12499
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12500
|
+
captureTable0.set(rep, obj);
|
|
12501
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12502
|
+
}
|
|
12503
|
+
return handle;
|
|
12504
|
+
}
|
|
12505
|
+
,
|
|
11630
12506
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11631
12507
|
])
|
|
11632
12508
|
],
|
|
12509
|
+
hasResultPointer: true,
|
|
11633
12510
|
funcTypeIsAsync: false,
|
|
11634
12511
|
getCallbackFn: () => null,
|
|
11635
12512
|
getPostReturnFn: () => null,
|
|
@@ -11637,7 +12514,7 @@ null,
|
|
|
11637
12514
|
memoryIdx: 0,
|
|
11638
12515
|
stringEncoding: 'utf8',
|
|
11639
12516
|
getMemoryFn: () => memory0,
|
|
11640
|
-
getReallocFn:
|
|
12517
|
+
getReallocFn: undefined,
|
|
11641
12518
|
importFn: _trampoline28,
|
|
11642
12519
|
},
|
|
11643
12520
|
);
|
|
@@ -11652,15 +12529,30 @@ null,
|
|
|
11652
12529
|
elemLiftFn: _liftFlatU8,
|
|
11653
12530
|
elemAlign32: 1,
|
|
11654
12531
|
elemSize32: 1,
|
|
12532
|
+
typedArray: Uint8Array,
|
|
11655
12533
|
})],
|
|
11656
12534
|
resultLowerFns: [_lowerFlatResult([
|
|
11657
12535
|
[ 'ok', null, 12, 4, 4 ],
|
|
11658
12536
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11659
12537
|
componentIdx: 0,
|
|
11660
|
-
lowerFn:
|
|
12538
|
+
lowerFn:
|
|
12539
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12540
|
+
if (!(obj instanceof Error$1)) {
|
|
12541
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12542
|
+
}
|
|
12543
|
+
let handle = obj[symbolRscHandle];
|
|
12544
|
+
if (!handle) {
|
|
12545
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12546
|
+
captureTable0.set(rep, obj);
|
|
12547
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12548
|
+
}
|
|
12549
|
+
return handle;
|
|
12550
|
+
}
|
|
12551
|
+
,
|
|
11661
12552
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11662
12553
|
])
|
|
11663
12554
|
],
|
|
12555
|
+
hasResultPointer: true,
|
|
11664
12556
|
funcTypeIsAsync: false,
|
|
11665
12557
|
getCallbackFn: () => null,
|
|
11666
12558
|
getPostReturnFn: () => null,
|
|
@@ -11668,7 +12560,7 @@ null,
|
|
|
11668
12560
|
memoryIdx: 0,
|
|
11669
12561
|
stringEncoding: 'utf8',
|
|
11670
12562
|
getMemoryFn: () => memory0,
|
|
11671
|
-
getReallocFn:
|
|
12563
|
+
getReallocFn: undefined,
|
|
11672
12564
|
importFn: _trampoline29,
|
|
11673
12565
|
},
|
|
11674
12566
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11682,15 +12574,30 @@ null,
|
|
|
11682
12574
|
elemLiftFn: _liftFlatU8,
|
|
11683
12575
|
elemAlign32: 1,
|
|
11684
12576
|
elemSize32: 1,
|
|
12577
|
+
typedArray: Uint8Array,
|
|
11685
12578
|
})],
|
|
11686
12579
|
resultLowerFns: [_lowerFlatResult([
|
|
11687
12580
|
[ 'ok', null, 12, 4, 4 ],
|
|
11688
12581
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11689
12582
|
componentIdx: 0,
|
|
11690
|
-
lowerFn:
|
|
12583
|
+
lowerFn:
|
|
12584
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12585
|
+
if (!(obj instanceof Error$1)) {
|
|
12586
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12587
|
+
}
|
|
12588
|
+
let handle = obj[symbolRscHandle];
|
|
12589
|
+
if (!handle) {
|
|
12590
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12591
|
+
captureTable0.set(rep, obj);
|
|
12592
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12593
|
+
}
|
|
12594
|
+
return handle;
|
|
12595
|
+
}
|
|
12596
|
+
,
|
|
11691
12597
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11692
12598
|
])
|
|
11693
12599
|
],
|
|
12600
|
+
hasResultPointer: true,
|
|
11694
12601
|
funcTypeIsAsync: false,
|
|
11695
12602
|
getCallbackFn: () => null,
|
|
11696
12603
|
getPostReturnFn: () => null,
|
|
@@ -11698,7 +12605,7 @@ null,
|
|
|
11698
12605
|
memoryIdx: 0,
|
|
11699
12606
|
stringEncoding: 'utf8',
|
|
11700
12607
|
getMemoryFn: () => memory0,
|
|
11701
|
-
getReallocFn:
|
|
12608
|
+
getReallocFn: undefined,
|
|
11702
12609
|
importFn: _trampoline29,
|
|
11703
12610
|
},
|
|
11704
12611
|
);
|
|
@@ -11714,10 +12621,24 @@ null,
|
|
|
11714
12621
|
[ 'ok', null, 12, 4, 4 ],
|
|
11715
12622
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11716
12623
|
componentIdx: 0,
|
|
11717
|
-
lowerFn:
|
|
12624
|
+
lowerFn:
|
|
12625
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12626
|
+
if (!(obj instanceof Error$1)) {
|
|
12627
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12628
|
+
}
|
|
12629
|
+
let handle = obj[symbolRscHandle];
|
|
12630
|
+
if (!handle) {
|
|
12631
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12632
|
+
captureTable0.set(rep, obj);
|
|
12633
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12634
|
+
}
|
|
12635
|
+
return handle;
|
|
12636
|
+
}
|
|
12637
|
+
,
|
|
11718
12638
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11719
12639
|
])
|
|
11720
12640
|
],
|
|
12641
|
+
hasResultPointer: true,
|
|
11721
12642
|
funcTypeIsAsync: false,
|
|
11722
12643
|
getCallbackFn: () => null,
|
|
11723
12644
|
getPostReturnFn: () => null,
|
|
@@ -11725,7 +12646,7 @@ null,
|
|
|
11725
12646
|
memoryIdx: 0,
|
|
11726
12647
|
stringEncoding: 'utf8',
|
|
11727
12648
|
getMemoryFn: () => memory0,
|
|
11728
|
-
getReallocFn:
|
|
12649
|
+
getReallocFn: undefined,
|
|
11729
12650
|
importFn: _trampoline30,
|
|
11730
12651
|
},
|
|
11731
12652
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11740,10 +12661,24 @@ null,
|
|
|
11740
12661
|
[ 'ok', null, 12, 4, 4 ],
|
|
11741
12662
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11742
12663
|
componentIdx: 0,
|
|
11743
|
-
lowerFn:
|
|
12664
|
+
lowerFn:
|
|
12665
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12666
|
+
if (!(obj instanceof Error$1)) {
|
|
12667
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12668
|
+
}
|
|
12669
|
+
let handle = obj[symbolRscHandle];
|
|
12670
|
+
if (!handle) {
|
|
12671
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12672
|
+
captureTable0.set(rep, obj);
|
|
12673
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12674
|
+
}
|
|
12675
|
+
return handle;
|
|
12676
|
+
}
|
|
12677
|
+
,
|
|
11744
12678
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11745
12679
|
])
|
|
11746
12680
|
],
|
|
12681
|
+
hasResultPointer: true,
|
|
11747
12682
|
funcTypeIsAsync: false,
|
|
11748
12683
|
getCallbackFn: () => null,
|
|
11749
12684
|
getPostReturnFn: () => null,
|
|
@@ -11751,7 +12686,7 @@ null,
|
|
|
11751
12686
|
memoryIdx: 0,
|
|
11752
12687
|
stringEncoding: 'utf8',
|
|
11753
12688
|
getMemoryFn: () => memory0,
|
|
11754
|
-
getReallocFn:
|
|
12689
|
+
getReallocFn: undefined,
|
|
11755
12690
|
importFn: _trampoline30,
|
|
11756
12691
|
},
|
|
11757
12692
|
);
|
|
@@ -11768,6 +12703,7 @@ null,
|
|
|
11768
12703
|
elemSize32: 1,
|
|
11769
12704
|
elemAlign32: 1,
|
|
11770
12705
|
})],
|
|
12706
|
+
hasResultPointer: true,
|
|
11771
12707
|
funcTypeIsAsync: false,
|
|
11772
12708
|
getCallbackFn: () => null,
|
|
11773
12709
|
getPostReturnFn: () => null,
|
|
@@ -11791,6 +12727,7 @@ null,
|
|
|
11791
12727
|
elemSize32: 1,
|
|
11792
12728
|
elemAlign32: 1,
|
|
11793
12729
|
})],
|
|
12730
|
+
hasResultPointer: true,
|
|
11794
12731
|
funcTypeIsAsync: false,
|
|
11795
12732
|
getCallbackFn: () => null,
|
|
11796
12733
|
getPostReturnFn: () => null,
|
|
@@ -11811,13 +12748,27 @@ null,
|
|
|
11811
12748
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11812
12749
|
paramLiftFns: [],
|
|
11813
12750
|
resultLowerFns: [_lowerFlatList({
|
|
11814
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12751
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11815
12752
|
componentIdx: 0,
|
|
11816
|
-
lowerFn:
|
|
11817
|
-
|
|
12753
|
+
lowerFn:
|
|
12754
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12755
|
+
if (!(obj instanceof Descriptor)) {
|
|
12756
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12757
|
+
}
|
|
12758
|
+
let handle = obj[symbolRscHandle];
|
|
12759
|
+
if (!handle) {
|
|
12760
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12761
|
+
captureTable6.set(rep, obj);
|
|
12762
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12763
|
+
}
|
|
12764
|
+
return handle;
|
|
12765
|
+
}
|
|
12766
|
+
,
|
|
12767
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11818
12768
|
elemSize32: 12,
|
|
11819
12769
|
elemAlign32: 4,
|
|
11820
12770
|
})],
|
|
12771
|
+
hasResultPointer: true,
|
|
11821
12772
|
funcTypeIsAsync: false,
|
|
11822
12773
|
getCallbackFn: () => null,
|
|
11823
12774
|
getPostReturnFn: () => null,
|
|
@@ -11837,13 +12788,27 @@ null,
|
|
|
11837
12788
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11838
12789
|
paramLiftFns: [],
|
|
11839
12790
|
resultLowerFns: [_lowerFlatList({
|
|
11840
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12791
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11841
12792
|
componentIdx: 0,
|
|
11842
|
-
lowerFn:
|
|
11843
|
-
|
|
12793
|
+
lowerFn:
|
|
12794
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12795
|
+
if (!(obj instanceof Descriptor)) {
|
|
12796
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12797
|
+
}
|
|
12798
|
+
let handle = obj[symbolRscHandle];
|
|
12799
|
+
if (!handle) {
|
|
12800
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12801
|
+
captureTable6.set(rep, obj);
|
|
12802
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12803
|
+
}
|
|
12804
|
+
return handle;
|
|
12805
|
+
}
|
|
12806
|
+
,
|
|
12807
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11844
12808
|
elemSize32: 12,
|
|
11845
12809
|
elemAlign32: 4,
|
|
11846
12810
|
})],
|
|
12811
|
+
hasResultPointer: true,
|
|
11847
12812
|
funcTypeIsAsync: false,
|
|
11848
12813
|
getCallbackFn: () => null,
|
|
11849
12814
|
getPostReturnFn: () => null,
|
|
@@ -11867,10 +12832,24 @@ null,
|
|
|
11867
12832
|
[ 'none', null, 8, 4, 4 ],
|
|
11868
12833
|
[ 'some', _lowerFlatOwn({
|
|
11869
12834
|
componentIdx: 0,
|
|
11870
|
-
lowerFn:
|
|
12835
|
+
lowerFn:
|
|
12836
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12837
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12838
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12839
|
+
}
|
|
12840
|
+
let handle = obj[symbolRscHandle];
|
|
12841
|
+
if (!handle) {
|
|
12842
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12843
|
+
captureTable3.set(rep, obj);
|
|
12844
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12845
|
+
}
|
|
12846
|
+
return handle;
|
|
12847
|
+
}
|
|
12848
|
+
,
|
|
11871
12849
|
}), 8, 4, 4 ],
|
|
11872
12850
|
])
|
|
11873
12851
|
],
|
|
12852
|
+
hasResultPointer: true,
|
|
11874
12853
|
funcTypeIsAsync: false,
|
|
11875
12854
|
getCallbackFn: () => null,
|
|
11876
12855
|
getPostReturnFn: () => null,
|
|
@@ -11878,7 +12857,7 @@ null,
|
|
|
11878
12857
|
memoryIdx: 0,
|
|
11879
12858
|
stringEncoding: 'utf8',
|
|
11880
12859
|
getMemoryFn: () => memory0,
|
|
11881
|
-
getReallocFn:
|
|
12860
|
+
getReallocFn: undefined,
|
|
11882
12861
|
importFn: _trampoline33,
|
|
11883
12862
|
},
|
|
11884
12863
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11893,10 +12872,24 @@ null,
|
|
|
11893
12872
|
[ 'none', null, 8, 4, 4 ],
|
|
11894
12873
|
[ 'some', _lowerFlatOwn({
|
|
11895
12874
|
componentIdx: 0,
|
|
11896
|
-
lowerFn:
|
|
12875
|
+
lowerFn:
|
|
12876
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12877
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12878
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12879
|
+
}
|
|
12880
|
+
let handle = obj[symbolRscHandle];
|
|
12881
|
+
if (!handle) {
|
|
12882
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12883
|
+
captureTable3.set(rep, obj);
|
|
12884
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12885
|
+
}
|
|
12886
|
+
return handle;
|
|
12887
|
+
}
|
|
12888
|
+
,
|
|
11897
12889
|
}), 8, 4, 4 ],
|
|
11898
12890
|
])
|
|
11899
12891
|
],
|
|
12892
|
+
hasResultPointer: true,
|
|
11900
12893
|
funcTypeIsAsync: false,
|
|
11901
12894
|
getCallbackFn: () => null,
|
|
11902
12895
|
getPostReturnFn: () => null,
|
|
@@ -11904,7 +12897,7 @@ null,
|
|
|
11904
12897
|
memoryIdx: 0,
|
|
11905
12898
|
stringEncoding: 'utf8',
|
|
11906
12899
|
getMemoryFn: () => memory0,
|
|
11907
|
-
getReallocFn:
|
|
12900
|
+
getReallocFn: undefined,
|
|
11908
12901
|
importFn: _trampoline33,
|
|
11909
12902
|
},
|
|
11910
12903
|
);
|
|
@@ -11920,10 +12913,24 @@ null,
|
|
|
11920
12913
|
[ 'none', null, 8, 4, 4 ],
|
|
11921
12914
|
[ 'some', _lowerFlatOwn({
|
|
11922
12915
|
componentIdx: 0,
|
|
11923
|
-
lowerFn:
|
|
12916
|
+
lowerFn:
|
|
12917
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12918
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12919
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12920
|
+
}
|
|
12921
|
+
let handle = obj[symbolRscHandle];
|
|
12922
|
+
if (!handle) {
|
|
12923
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12924
|
+
captureTable4.set(rep, obj);
|
|
12925
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12926
|
+
}
|
|
12927
|
+
return handle;
|
|
12928
|
+
}
|
|
12929
|
+
,
|
|
11924
12930
|
}), 8, 4, 4 ],
|
|
11925
12931
|
])
|
|
11926
12932
|
],
|
|
12933
|
+
hasResultPointer: true,
|
|
11927
12934
|
funcTypeIsAsync: false,
|
|
11928
12935
|
getCallbackFn: () => null,
|
|
11929
12936
|
getPostReturnFn: () => null,
|
|
@@ -11931,7 +12938,7 @@ null,
|
|
|
11931
12938
|
memoryIdx: 0,
|
|
11932
12939
|
stringEncoding: 'utf8',
|
|
11933
12940
|
getMemoryFn: () => memory0,
|
|
11934
|
-
getReallocFn:
|
|
12941
|
+
getReallocFn: undefined,
|
|
11935
12942
|
importFn: _trampoline34,
|
|
11936
12943
|
},
|
|
11937
12944
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11946,10 +12953,24 @@ null,
|
|
|
11946
12953
|
[ 'none', null, 8, 4, 4 ],
|
|
11947
12954
|
[ 'some', _lowerFlatOwn({
|
|
11948
12955
|
componentIdx: 0,
|
|
11949
|
-
lowerFn:
|
|
12956
|
+
lowerFn:
|
|
12957
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12958
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12959
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12960
|
+
}
|
|
12961
|
+
let handle = obj[symbolRscHandle];
|
|
12962
|
+
if (!handle) {
|
|
12963
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12964
|
+
captureTable4.set(rep, obj);
|
|
12965
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12966
|
+
}
|
|
12967
|
+
return handle;
|
|
12968
|
+
}
|
|
12969
|
+
,
|
|
11950
12970
|
}), 8, 4, 4 ],
|
|
11951
12971
|
])
|
|
11952
12972
|
],
|
|
12973
|
+
hasResultPointer: true,
|
|
11953
12974
|
funcTypeIsAsync: false,
|
|
11954
12975
|
getCallbackFn: () => null,
|
|
11955
12976
|
getPostReturnFn: () => null,
|
|
@@ -11957,7 +12978,7 @@ null,
|
|
|
11957
12978
|
memoryIdx: 0,
|
|
11958
12979
|
stringEncoding: 'utf8',
|
|
11959
12980
|
getMemoryFn: () => memory0,
|
|
11960
|
-
getReallocFn:
|
|
12981
|
+
getReallocFn: undefined,
|
|
11961
12982
|
importFn: _trampoline34,
|
|
11962
12983
|
},
|
|
11963
12984
|
);
|
|
@@ -11973,10 +12994,24 @@ null,
|
|
|
11973
12994
|
[ 'none', null, 8, 4, 4 ],
|
|
11974
12995
|
[ 'some', _lowerFlatOwn({
|
|
11975
12996
|
componentIdx: 0,
|
|
11976
|
-
lowerFn:
|
|
12997
|
+
lowerFn:
|
|
12998
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12999
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
13000
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
13001
|
+
}
|
|
13002
|
+
let handle = obj[symbolRscHandle];
|
|
13003
|
+
if (!handle) {
|
|
13004
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
13005
|
+
captureTable4.set(rep, obj);
|
|
13006
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
13007
|
+
}
|
|
13008
|
+
return handle;
|
|
13009
|
+
}
|
|
13010
|
+
,
|
|
11977
13011
|
}), 8, 4, 4 ],
|
|
11978
13012
|
])
|
|
11979
13013
|
],
|
|
13014
|
+
hasResultPointer: true,
|
|
11980
13015
|
funcTypeIsAsync: false,
|
|
11981
13016
|
getCallbackFn: () => null,
|
|
11982
13017
|
getPostReturnFn: () => null,
|
|
@@ -11984,7 +13019,7 @@ null,
|
|
|
11984
13019
|
memoryIdx: 0,
|
|
11985
13020
|
stringEncoding: 'utf8',
|
|
11986
13021
|
getMemoryFn: () => memory0,
|
|
11987
|
-
getReallocFn:
|
|
13022
|
+
getReallocFn: undefined,
|
|
11988
13023
|
importFn: _trampoline35,
|
|
11989
13024
|
},
|
|
11990
13025
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11999,10 +13034,24 @@ null,
|
|
|
11999
13034
|
[ 'none', null, 8, 4, 4 ],
|
|
12000
13035
|
[ 'some', _lowerFlatOwn({
|
|
12001
13036
|
componentIdx: 0,
|
|
12002
|
-
lowerFn:
|
|
13037
|
+
lowerFn:
|
|
13038
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
13039
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
13040
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
13041
|
+
}
|
|
13042
|
+
let handle = obj[symbolRscHandle];
|
|
13043
|
+
if (!handle) {
|
|
13044
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
13045
|
+
captureTable4.set(rep, obj);
|
|
13046
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
13047
|
+
}
|
|
13048
|
+
return handle;
|
|
13049
|
+
}
|
|
13050
|
+
,
|
|
12003
13051
|
}), 8, 4, 4 ],
|
|
12004
13052
|
])
|
|
12005
13053
|
],
|
|
13054
|
+
hasResultPointer: true,
|
|
12006
13055
|
funcTypeIsAsync: false,
|
|
12007
13056
|
getCallbackFn: () => null,
|
|
12008
13057
|
getPostReturnFn: () => null,
|
|
@@ -12010,7 +13059,7 @@ null,
|
|
|
12010
13059
|
memoryIdx: 0,
|
|
12011
13060
|
stringEncoding: 'utf8',
|
|
12012
13061
|
getMemoryFn: () => memory0,
|
|
12013
|
-
getReallocFn:
|
|
13062
|
+
getReallocFn: undefined,
|
|
12014
13063
|
importFn: _trampoline35,
|
|
12015
13064
|
},
|
|
12016
13065
|
);
|