@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
|
@@ -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,12 +9100,25 @@ const _trampoline32 = function(arg0) {
|
|
|
8773
9100
|
}
|
|
8774
9101
|
|
|
8775
9102
|
const started = task.enterSync();
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8780
|
-
|
|
8781
|
-
|
|
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
|
+
|
|
8782
9122
|
var vec3 = ret;
|
|
8783
9123
|
var len3 = vec3.length;
|
|
8784
9124
|
var result3 = realloc0(0, 0, 4, len3 * 12);
|
|
@@ -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);
|
|
@@ -9340,19 +9731,35 @@ function generate(arg0, arg1) {
|
|
|
9340
9731
|
isManualAsync: false,
|
|
9341
9732
|
entryFnName: 'exports1Generate',
|
|
9342
9733
|
getCallbackFn: () => null,
|
|
9343
|
-
callbackFnName:
|
|
9734
|
+
callbackFnName: null,
|
|
9344
9735
|
errHandling: 'throw-result-err',
|
|
9345
9736
|
callingWasmExport: true,
|
|
9346
9737
|
});
|
|
9347
9738
|
|
|
9348
9739
|
const started = task.enterSync();
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9740
|
+
|
|
9741
|
+
if (0!== null) {
|
|
9742
|
+
task.setReturnMemoryIdx(0);
|
|
9743
|
+
task.setReturnMemory(() => memory0());
|
|
9744
|
+
}
|
|
9745
|
+
|
|
9746
|
+
|
|
9747
|
+
let ret;
|
|
9748
|
+
|
|
9749
|
+
try {
|
|
9750
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9751
|
+
taskID: task.id(),
|
|
9752
|
+
componentIdx: task.componentIdx(),
|
|
9753
|
+
fn: () => exports1Generate(ptr0),
|
|
9754
|
+
});
|
|
9755
|
+
} catch (err) {
|
|
9756
|
+
|
|
9757
|
+
task.setErrored(err);
|
|
9758
|
+
task.reject(err);
|
|
9759
|
+
task.exit();
|
|
9760
|
+
throw err;
|
|
9761
|
+
|
|
9762
|
+
}
|
|
9356
9763
|
|
|
9357
9764
|
let variant41;
|
|
9358
9765
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9716,19 +10123,35 @@ function generateTypes(arg0, arg1) {
|
|
|
9716
10123
|
isManualAsync: false,
|
|
9717
10124
|
entryFnName: 'exports1GenerateTypes',
|
|
9718
10125
|
getCallbackFn: () => null,
|
|
9719
|
-
callbackFnName:
|
|
10126
|
+
callbackFnName: null,
|
|
9720
10127
|
errHandling: 'throw-result-err',
|
|
9721
10128
|
callingWasmExport: true,
|
|
9722
10129
|
});
|
|
9723
10130
|
|
|
9724
10131
|
const started = task.enterSync();
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
10132
|
+
|
|
10133
|
+
if (0!== null) {
|
|
10134
|
+
task.setReturnMemoryIdx(0);
|
|
10135
|
+
task.setReturnMemory(() => memory0());
|
|
10136
|
+
}
|
|
10137
|
+
|
|
10138
|
+
|
|
10139
|
+
let ret;
|
|
10140
|
+
|
|
10141
|
+
try {
|
|
10142
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10143
|
+
taskID: task.id(),
|
|
10144
|
+
componentIdx: task.componentIdx(),
|
|
10145
|
+
fn: () => exports1GenerateTypes(ptr0),
|
|
10146
|
+
});
|
|
10147
|
+
} catch (err) {
|
|
10148
|
+
|
|
10149
|
+
task.setErrored(err);
|
|
10150
|
+
task.reject(err);
|
|
10151
|
+
task.exit();
|
|
10152
|
+
throw err;
|
|
10153
|
+
|
|
10154
|
+
}
|
|
9732
10155
|
|
|
9733
10156
|
let variant34;
|
|
9734
10157
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9864,8 +10287,22 @@ null,
|
|
|
9864
10287
|
paramLiftFns: [],
|
|
9865
10288
|
resultLowerFns: [_lowerFlatOwn({
|
|
9866
10289
|
componentIdx: 0,
|
|
9867
|
-
lowerFn:
|
|
10290
|
+
lowerFn:
|
|
10291
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10292
|
+
if (!(obj instanceof OutputStream)) {
|
|
10293
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10294
|
+
}
|
|
10295
|
+
let handle = obj[symbolRscHandle];
|
|
10296
|
+
if (!handle) {
|
|
10297
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10298
|
+
captureTable2.set(rep, obj);
|
|
10299
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10300
|
+
}
|
|
10301
|
+
return handle;
|
|
10302
|
+
}
|
|
10303
|
+
,
|
|
9868
10304
|
})],
|
|
10305
|
+
hasResultPointer: false,
|
|
9869
10306
|
funcTypeIsAsync: false,
|
|
9870
10307
|
getCallbackFn: () => null,
|
|
9871
10308
|
getPostReturnFn: () => null,
|
|
@@ -9873,7 +10310,7 @@ null,
|
|
|
9873
10310
|
memoryIdx: null,
|
|
9874
10311
|
stringEncoding: 'utf8',
|
|
9875
10312
|
getMemoryFn: () => null,
|
|
9876
|
-
getReallocFn:
|
|
10313
|
+
getReallocFn: undefined,
|
|
9877
10314
|
importFn: _trampoline5,
|
|
9878
10315
|
},
|
|
9879
10316
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9886,8 +10323,22 @@ null,
|
|
|
9886
10323
|
paramLiftFns: [],
|
|
9887
10324
|
resultLowerFns: [_lowerFlatOwn({
|
|
9888
10325
|
componentIdx: 0,
|
|
9889
|
-
lowerFn:
|
|
10326
|
+
lowerFn:
|
|
10327
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10328
|
+
if (!(obj instanceof OutputStream)) {
|
|
10329
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10330
|
+
}
|
|
10331
|
+
let handle = obj[symbolRscHandle];
|
|
10332
|
+
if (!handle) {
|
|
10333
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10334
|
+
captureTable2.set(rep, obj);
|
|
10335
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10336
|
+
}
|
|
10337
|
+
return handle;
|
|
10338
|
+
}
|
|
10339
|
+
,
|
|
9890
10340
|
})],
|
|
10341
|
+
hasResultPointer: false,
|
|
9891
10342
|
funcTypeIsAsync: false,
|
|
9892
10343
|
getCallbackFn: () => null,
|
|
9893
10344
|
getPostReturnFn: () => null,
|
|
@@ -9895,7 +10346,7 @@ null,
|
|
|
9895
10346
|
memoryIdx: null,
|
|
9896
10347
|
stringEncoding: 'utf8',
|
|
9897
10348
|
getMemoryFn: () => null,
|
|
9898
|
-
getReallocFn:
|
|
10349
|
+
getReallocFn: undefined,
|
|
9899
10350
|
importFn: _trampoline5,
|
|
9900
10351
|
},
|
|
9901
10352
|
);
|
|
@@ -9935,8 +10386,22 @@ null,
|
|
|
9935
10386
|
paramLiftFns: [],
|
|
9936
10387
|
resultLowerFns: [_lowerFlatOwn({
|
|
9937
10388
|
componentIdx: 0,
|
|
9938
|
-
lowerFn:
|
|
10389
|
+
lowerFn:
|
|
10390
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10391
|
+
if (!(obj instanceof InputStream)) {
|
|
10392
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10393
|
+
}
|
|
10394
|
+
let handle = obj[symbolRscHandle];
|
|
10395
|
+
if (!handle) {
|
|
10396
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10397
|
+
captureTable1.set(rep, obj);
|
|
10398
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10399
|
+
}
|
|
10400
|
+
return handle;
|
|
10401
|
+
}
|
|
10402
|
+
,
|
|
9939
10403
|
})],
|
|
10404
|
+
hasResultPointer: false,
|
|
9940
10405
|
funcTypeIsAsync: false,
|
|
9941
10406
|
getCallbackFn: () => null,
|
|
9942
10407
|
getPostReturnFn: () => null,
|
|
@@ -9944,7 +10409,7 @@ null,
|
|
|
9944
10409
|
memoryIdx: null,
|
|
9945
10410
|
stringEncoding: 'utf8',
|
|
9946
10411
|
getMemoryFn: () => null,
|
|
9947
|
-
getReallocFn:
|
|
10412
|
+
getReallocFn: undefined,
|
|
9948
10413
|
importFn: _trampoline8,
|
|
9949
10414
|
},
|
|
9950
10415
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9957,8 +10422,22 @@ null,
|
|
|
9957
10422
|
paramLiftFns: [],
|
|
9958
10423
|
resultLowerFns: [_lowerFlatOwn({
|
|
9959
10424
|
componentIdx: 0,
|
|
9960
|
-
lowerFn:
|
|
10425
|
+
lowerFn:
|
|
10426
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10427
|
+
if (!(obj instanceof InputStream)) {
|
|
10428
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10429
|
+
}
|
|
10430
|
+
let handle = obj[symbolRscHandle];
|
|
10431
|
+
if (!handle) {
|
|
10432
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10433
|
+
captureTable1.set(rep, obj);
|
|
10434
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10435
|
+
}
|
|
10436
|
+
return handle;
|
|
10437
|
+
}
|
|
10438
|
+
,
|
|
9961
10439
|
})],
|
|
10440
|
+
hasResultPointer: false,
|
|
9962
10441
|
funcTypeIsAsync: false,
|
|
9963
10442
|
getCallbackFn: () => null,
|
|
9964
10443
|
getPostReturnFn: () => null,
|
|
@@ -9966,7 +10445,7 @@ null,
|
|
|
9966
10445
|
memoryIdx: null,
|
|
9967
10446
|
stringEncoding: 'utf8',
|
|
9968
10447
|
getMemoryFn: () => null,
|
|
9969
|
-
getReallocFn:
|
|
10448
|
+
getReallocFn: undefined,
|
|
9970
10449
|
importFn: _trampoline8,
|
|
9971
10450
|
},
|
|
9972
10451
|
);
|
|
@@ -9980,8 +10459,22 @@ null,
|
|
|
9980
10459
|
paramLiftFns: [],
|
|
9981
10460
|
resultLowerFns: [_lowerFlatOwn({
|
|
9982
10461
|
componentIdx: 0,
|
|
9983
|
-
lowerFn:
|
|
10462
|
+
lowerFn:
|
|
10463
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10464
|
+
if (!(obj instanceof OutputStream)) {
|
|
10465
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10466
|
+
}
|
|
10467
|
+
let handle = obj[symbolRscHandle];
|
|
10468
|
+
if (!handle) {
|
|
10469
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10470
|
+
captureTable2.set(rep, obj);
|
|
10471
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10472
|
+
}
|
|
10473
|
+
return handle;
|
|
10474
|
+
}
|
|
10475
|
+
,
|
|
9984
10476
|
})],
|
|
10477
|
+
hasResultPointer: false,
|
|
9985
10478
|
funcTypeIsAsync: false,
|
|
9986
10479
|
getCallbackFn: () => null,
|
|
9987
10480
|
getPostReturnFn: () => null,
|
|
@@ -9989,7 +10482,7 @@ null,
|
|
|
9989
10482
|
memoryIdx: null,
|
|
9990
10483
|
stringEncoding: 'utf8',
|
|
9991
10484
|
getMemoryFn: () => null,
|
|
9992
|
-
getReallocFn:
|
|
10485
|
+
getReallocFn: undefined,
|
|
9993
10486
|
importFn: _trampoline9,
|
|
9994
10487
|
},
|
|
9995
10488
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10002,8 +10495,22 @@ null,
|
|
|
10002
10495
|
paramLiftFns: [],
|
|
10003
10496
|
resultLowerFns: [_lowerFlatOwn({
|
|
10004
10497
|
componentIdx: 0,
|
|
10005
|
-
lowerFn:
|
|
10498
|
+
lowerFn:
|
|
10499
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10500
|
+
if (!(obj instanceof OutputStream)) {
|
|
10501
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10502
|
+
}
|
|
10503
|
+
let handle = obj[symbolRscHandle];
|
|
10504
|
+
if (!handle) {
|
|
10505
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10506
|
+
captureTable2.set(rep, obj);
|
|
10507
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10508
|
+
}
|
|
10509
|
+
return handle;
|
|
10510
|
+
}
|
|
10511
|
+
,
|
|
10006
10512
|
})],
|
|
10513
|
+
hasResultPointer: false,
|
|
10007
10514
|
funcTypeIsAsync: false,
|
|
10008
10515
|
getCallbackFn: () => null,
|
|
10009
10516
|
getPostReturnFn: () => null,
|
|
@@ -10011,7 +10518,7 @@ null,
|
|
|
10011
10518
|
memoryIdx: null,
|
|
10012
10519
|
stringEncoding: 'utf8',
|
|
10013
10520
|
getMemoryFn: () => null,
|
|
10014
|
-
getReallocFn:
|
|
10521
|
+
getReallocFn: undefined,
|
|
10015
10522
|
importFn: _trampoline9,
|
|
10016
10523
|
},
|
|
10017
10524
|
);
|
|
@@ -10022,8 +10529,9 @@ null,
|
|
|
10022
10529
|
componentIdx: 0,
|
|
10023
10530
|
isAsync: false,
|
|
10024
10531
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10025
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10532
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10026
10533
|
resultLowerFns: [],
|
|
10534
|
+
hasResultPointer: false,
|
|
10027
10535
|
funcTypeIsAsync: false,
|
|
10028
10536
|
getCallbackFn: () => null,
|
|
10029
10537
|
getPostReturnFn: () => null,
|
|
@@ -10031,7 +10539,7 @@ null,
|
|
|
10031
10539
|
memoryIdx: null,
|
|
10032
10540
|
stringEncoding: 'utf8',
|
|
10033
10541
|
getMemoryFn: () => null,
|
|
10034
|
-
getReallocFn:
|
|
10542
|
+
getReallocFn: undefined,
|
|
10035
10543
|
importFn: _trampoline10,
|
|
10036
10544
|
},
|
|
10037
10545
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10041,8 +10549,9 @@ null,
|
|
|
10041
10549
|
componentIdx: 0,
|
|
10042
10550
|
isAsync: false,
|
|
10043
10551
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10044
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10552
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10045
10553
|
resultLowerFns: [],
|
|
10554
|
+
hasResultPointer: false,
|
|
10046
10555
|
funcTypeIsAsync: false,
|
|
10047
10556
|
getCallbackFn: () => null,
|
|
10048
10557
|
getPostReturnFn: () => null,
|
|
@@ -10050,7 +10559,7 @@ null,
|
|
|
10050
10559
|
memoryIdx: null,
|
|
10051
10560
|
stringEncoding: 'utf8',
|
|
10052
10561
|
getMemoryFn: () => null,
|
|
10053
|
-
getReallocFn:
|
|
10562
|
+
getReallocFn: undefined,
|
|
10054
10563
|
importFn: _trampoline10,
|
|
10055
10564
|
},
|
|
10056
10565
|
);
|
|
@@ -10063,10 +10572,11 @@ null,
|
|
|
10063
10572
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10064
10573
|
paramLiftFns: [],
|
|
10065
10574
|
resultLowerFns: [_lowerFlatList({
|
|
10066
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10575
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10067
10576
|
elemSize32: 16,
|
|
10068
10577
|
elemAlign32: 4,
|
|
10069
10578
|
})],
|
|
10579
|
+
hasResultPointer: true,
|
|
10070
10580
|
funcTypeIsAsync: false,
|
|
10071
10581
|
getCallbackFn: () => null,
|
|
10072
10582
|
getPostReturnFn: () => null,
|
|
@@ -10086,10 +10596,11 @@ null,
|
|
|
10086
10596
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10087
10597
|
paramLiftFns: [],
|
|
10088
10598
|
resultLowerFns: [_lowerFlatList({
|
|
10089
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10599
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10090
10600
|
elemSize32: 16,
|
|
10091
10601
|
elemAlign32: 4,
|
|
10092
10602
|
})],
|
|
10603
|
+
hasResultPointer: true,
|
|
10093
10604
|
funcTypeIsAsync: false,
|
|
10094
10605
|
getCallbackFn: () => null,
|
|
10095
10606
|
getPostReturnFn: () => null,
|
|
@@ -10114,6 +10625,7 @@ null,
|
|
|
10114
10625
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10115
10626
|
])
|
|
10116
10627
|
],
|
|
10628
|
+
hasResultPointer: true,
|
|
10117
10629
|
funcTypeIsAsync: false,
|
|
10118
10630
|
getCallbackFn: () => null,
|
|
10119
10631
|
getPostReturnFn: () => null,
|
|
@@ -10121,7 +10633,7 @@ null,
|
|
|
10121
10633
|
memoryIdx: 0,
|
|
10122
10634
|
stringEncoding: 'utf8',
|
|
10123
10635
|
getMemoryFn: () => memory0,
|
|
10124
|
-
getReallocFn:
|
|
10636
|
+
getReallocFn: undefined,
|
|
10125
10637
|
importFn: _trampoline12,
|
|
10126
10638
|
},
|
|
10127
10639
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10137,6 +10649,7 @@ null,
|
|
|
10137
10649
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10138
10650
|
])
|
|
10139
10651
|
],
|
|
10652
|
+
hasResultPointer: true,
|
|
10140
10653
|
funcTypeIsAsync: false,
|
|
10141
10654
|
getCallbackFn: () => null,
|
|
10142
10655
|
getPostReturnFn: () => null,
|
|
@@ -10144,7 +10657,7 @@ null,
|
|
|
10144
10657
|
memoryIdx: 0,
|
|
10145
10658
|
stringEncoding: 'utf8',
|
|
10146
10659
|
getMemoryFn: () => memory0,
|
|
10147
|
-
getReallocFn:
|
|
10660
|
+
getReallocFn: undefined,
|
|
10148
10661
|
importFn: _trampoline12,
|
|
10149
10662
|
},
|
|
10150
10663
|
);
|
|
@@ -10161,6 +10674,7 @@ null,
|
|
|
10161
10674
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10162
10675
|
])
|
|
10163
10676
|
],
|
|
10677
|
+
hasResultPointer: true,
|
|
10164
10678
|
funcTypeIsAsync: false,
|
|
10165
10679
|
getCallbackFn: () => null,
|
|
10166
10680
|
getPostReturnFn: () => null,
|
|
@@ -10168,7 +10682,7 @@ null,
|
|
|
10168
10682
|
memoryIdx: 0,
|
|
10169
10683
|
stringEncoding: 'utf8',
|
|
10170
10684
|
getMemoryFn: () => memory0,
|
|
10171
|
-
getReallocFn:
|
|
10685
|
+
getReallocFn: undefined,
|
|
10172
10686
|
importFn: _trampoline13,
|
|
10173
10687
|
},
|
|
10174
10688
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10184,6 +10698,7 @@ null,
|
|
|
10184
10698
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10185
10699
|
])
|
|
10186
10700
|
],
|
|
10701
|
+
hasResultPointer: true,
|
|
10187
10702
|
funcTypeIsAsync: false,
|
|
10188
10703
|
getCallbackFn: () => null,
|
|
10189
10704
|
getPostReturnFn: () => null,
|
|
@@ -10191,7 +10706,7 @@ null,
|
|
|
10191
10706
|
memoryIdx: 0,
|
|
10192
10707
|
stringEncoding: 'utf8',
|
|
10193
10708
|
getMemoryFn: () => memory0,
|
|
10194
|
-
getReallocFn:
|
|
10709
|
+
getReallocFn: undefined,
|
|
10195
10710
|
importFn: _trampoline13,
|
|
10196
10711
|
},
|
|
10197
10712
|
);
|
|
@@ -10204,10 +10719,11 @@ null,
|
|
|
10204
10719
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10205
10720
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10206
10721
|
resultLowerFns: [_lowerFlatResult([
|
|
10207
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10722
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10208
10723
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10209
10724
|
])
|
|
10210
10725
|
],
|
|
10726
|
+
hasResultPointer: true,
|
|
10211
10727
|
funcTypeIsAsync: false,
|
|
10212
10728
|
getCallbackFn: () => null,
|
|
10213
10729
|
getPostReturnFn: () => null,
|
|
@@ -10215,7 +10731,7 @@ null,
|
|
|
10215
10731
|
memoryIdx: 0,
|
|
10216
10732
|
stringEncoding: 'utf8',
|
|
10217
10733
|
getMemoryFn: () => memory0,
|
|
10218
|
-
getReallocFn:
|
|
10734
|
+
getReallocFn: undefined,
|
|
10219
10735
|
importFn: _trampoline14,
|
|
10220
10736
|
},
|
|
10221
10737
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10227,10 +10743,11 @@ null,
|
|
|
10227
10743
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10228
10744
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10229
10745
|
resultLowerFns: [_lowerFlatResult([
|
|
10230
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10746
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10231
10747
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10232
10748
|
])
|
|
10233
10749
|
],
|
|
10750
|
+
hasResultPointer: true,
|
|
10234
10751
|
funcTypeIsAsync: false,
|
|
10235
10752
|
getCallbackFn: () => null,
|
|
10236
10753
|
getPostReturnFn: () => null,
|
|
@@ -10238,7 +10755,7 @@ null,
|
|
|
10238
10755
|
memoryIdx: 0,
|
|
10239
10756
|
stringEncoding: 'utf8',
|
|
10240
10757
|
getMemoryFn: () => memory0,
|
|
10241
|
-
getReallocFn:
|
|
10758
|
+
getReallocFn: undefined,
|
|
10242
10759
|
importFn: _trampoline14,
|
|
10243
10760
|
},
|
|
10244
10761
|
);
|
|
@@ -10255,6 +10772,7 @@ null,
|
|
|
10255
10772
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10256
10773
|
])
|
|
10257
10774
|
],
|
|
10775
|
+
hasResultPointer: true,
|
|
10258
10776
|
funcTypeIsAsync: false,
|
|
10259
10777
|
getCallbackFn: () => null,
|
|
10260
10778
|
getPostReturnFn: () => null,
|
|
@@ -10262,7 +10780,7 @@ null,
|
|
|
10262
10780
|
memoryIdx: 0,
|
|
10263
10781
|
stringEncoding: 'utf8',
|
|
10264
10782
|
getMemoryFn: () => memory0,
|
|
10265
|
-
getReallocFn:
|
|
10783
|
+
getReallocFn: undefined,
|
|
10266
10784
|
importFn: _trampoline15,
|
|
10267
10785
|
},
|
|
10268
10786
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10278,6 +10796,7 @@ null,
|
|
|
10278
10796
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10279
10797
|
])
|
|
10280
10798
|
],
|
|
10799
|
+
hasResultPointer: true,
|
|
10281
10800
|
funcTypeIsAsync: false,
|
|
10282
10801
|
getCallbackFn: () => null,
|
|
10283
10802
|
getPostReturnFn: () => null,
|
|
@@ -10285,7 +10804,7 @@ null,
|
|
|
10285
10804
|
memoryIdx: 0,
|
|
10286
10805
|
stringEncoding: 'utf8',
|
|
10287
10806
|
getMemoryFn: () => memory0,
|
|
10288
|
-
getReallocFn:
|
|
10807
|
+
getReallocFn: undefined,
|
|
10289
10808
|
importFn: _trampoline15,
|
|
10290
10809
|
},
|
|
10291
10810
|
);
|
|
@@ -10298,10 +10817,11 @@ null,
|
|
|
10298
10817
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10299
10818
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10300
10819
|
resultLowerFns: [_lowerFlatResult([
|
|
10301
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10820
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10302
10821
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10303
10822
|
])
|
|
10304
10823
|
],
|
|
10824
|
+
hasResultPointer: true,
|
|
10305
10825
|
funcTypeIsAsync: false,
|
|
10306
10826
|
getCallbackFn: () => null,
|
|
10307
10827
|
getPostReturnFn: () => null,
|
|
@@ -10309,7 +10829,7 @@ null,
|
|
|
10309
10829
|
memoryIdx: 0,
|
|
10310
10830
|
stringEncoding: 'utf8',
|
|
10311
10831
|
getMemoryFn: () => memory0,
|
|
10312
|
-
getReallocFn:
|
|
10832
|
+
getReallocFn: undefined,
|
|
10313
10833
|
importFn: _trampoline16,
|
|
10314
10834
|
},
|
|
10315
10835
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10321,10 +10841,11 @@ null,
|
|
|
10321
10841
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10322
10842
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10323
10843
|
resultLowerFns: [_lowerFlatResult([
|
|
10324
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10844
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10325
10845
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10326
10846
|
])
|
|
10327
10847
|
],
|
|
10848
|
+
hasResultPointer: true,
|
|
10328
10849
|
funcTypeIsAsync: false,
|
|
10329
10850
|
getCallbackFn: () => null,
|
|
10330
10851
|
getPostReturnFn: () => null,
|
|
@@ -10332,7 +10853,7 @@ null,
|
|
|
10332
10853
|
memoryIdx: 0,
|
|
10333
10854
|
stringEncoding: 'utf8',
|
|
10334
10855
|
getMemoryFn: () => memory0,
|
|
10335
|
-
getReallocFn:
|
|
10856
|
+
getReallocFn: undefined,
|
|
10336
10857
|
importFn: _trampoline16,
|
|
10337
10858
|
},
|
|
10338
10859
|
);
|
|
@@ -10347,11 +10868,25 @@ null,
|
|
|
10347
10868
|
resultLowerFns: [_lowerFlatResult([
|
|
10348
10869
|
[ 'ok', _lowerFlatOwn({
|
|
10349
10870
|
componentIdx: 0,
|
|
10350
|
-
lowerFn:
|
|
10871
|
+
lowerFn:
|
|
10872
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10873
|
+
if (!(obj instanceof InputStream)) {
|
|
10874
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10875
|
+
}
|
|
10876
|
+
let handle = obj[symbolRscHandle];
|
|
10877
|
+
if (!handle) {
|
|
10878
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10879
|
+
captureTable1.set(rep, obj);
|
|
10880
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10881
|
+
}
|
|
10882
|
+
return handle;
|
|
10883
|
+
}
|
|
10884
|
+
,
|
|
10351
10885
|
}), 8, 4, 4 ],
|
|
10352
10886
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10353
10887
|
])
|
|
10354
10888
|
],
|
|
10889
|
+
hasResultPointer: true,
|
|
10355
10890
|
funcTypeIsAsync: false,
|
|
10356
10891
|
getCallbackFn: () => null,
|
|
10357
10892
|
getPostReturnFn: () => null,
|
|
@@ -10359,7 +10894,7 @@ null,
|
|
|
10359
10894
|
memoryIdx: 0,
|
|
10360
10895
|
stringEncoding: 'utf8',
|
|
10361
10896
|
getMemoryFn: () => memory0,
|
|
10362
|
-
getReallocFn:
|
|
10897
|
+
getReallocFn: undefined,
|
|
10363
10898
|
importFn: _trampoline17,
|
|
10364
10899
|
},
|
|
10365
10900
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10373,11 +10908,25 @@ null,
|
|
|
10373
10908
|
resultLowerFns: [_lowerFlatResult([
|
|
10374
10909
|
[ 'ok', _lowerFlatOwn({
|
|
10375
10910
|
componentIdx: 0,
|
|
10376
|
-
lowerFn:
|
|
10911
|
+
lowerFn:
|
|
10912
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10913
|
+
if (!(obj instanceof InputStream)) {
|
|
10914
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10915
|
+
}
|
|
10916
|
+
let handle = obj[symbolRscHandle];
|
|
10917
|
+
if (!handle) {
|
|
10918
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10919
|
+
captureTable1.set(rep, obj);
|
|
10920
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10921
|
+
}
|
|
10922
|
+
return handle;
|
|
10923
|
+
}
|
|
10924
|
+
,
|
|
10377
10925
|
}), 8, 4, 4 ],
|
|
10378
10926
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10379
10927
|
])
|
|
10380
10928
|
],
|
|
10929
|
+
hasResultPointer: true,
|
|
10381
10930
|
funcTypeIsAsync: false,
|
|
10382
10931
|
getCallbackFn: () => null,
|
|
10383
10932
|
getPostReturnFn: () => null,
|
|
@@ -10385,7 +10934,7 @@ null,
|
|
|
10385
10934
|
memoryIdx: 0,
|
|
10386
10935
|
stringEncoding: 'utf8',
|
|
10387
10936
|
getMemoryFn: () => memory0,
|
|
10388
|
-
getReallocFn:
|
|
10937
|
+
getReallocFn: undefined,
|
|
10389
10938
|
importFn: _trampoline17,
|
|
10390
10939
|
},
|
|
10391
10940
|
);
|
|
@@ -10400,11 +10949,25 @@ null,
|
|
|
10400
10949
|
resultLowerFns: [_lowerFlatResult([
|
|
10401
10950
|
[ 'ok', _lowerFlatOwn({
|
|
10402
10951
|
componentIdx: 0,
|
|
10403
|
-
lowerFn:
|
|
10952
|
+
lowerFn:
|
|
10953
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10954
|
+
if (!(obj instanceof OutputStream)) {
|
|
10955
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10956
|
+
}
|
|
10957
|
+
let handle = obj[symbolRscHandle];
|
|
10958
|
+
if (!handle) {
|
|
10959
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10960
|
+
captureTable2.set(rep, obj);
|
|
10961
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10962
|
+
}
|
|
10963
|
+
return handle;
|
|
10964
|
+
}
|
|
10965
|
+
,
|
|
10404
10966
|
}), 8, 4, 4 ],
|
|
10405
10967
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10406
10968
|
])
|
|
10407
10969
|
],
|
|
10970
|
+
hasResultPointer: true,
|
|
10408
10971
|
funcTypeIsAsync: false,
|
|
10409
10972
|
getCallbackFn: () => null,
|
|
10410
10973
|
getPostReturnFn: () => null,
|
|
@@ -10412,7 +10975,7 @@ null,
|
|
|
10412
10975
|
memoryIdx: 0,
|
|
10413
10976
|
stringEncoding: 'utf8',
|
|
10414
10977
|
getMemoryFn: () => memory0,
|
|
10415
|
-
getReallocFn:
|
|
10978
|
+
getReallocFn: undefined,
|
|
10416
10979
|
importFn: _trampoline18,
|
|
10417
10980
|
},
|
|
10418
10981
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10426,11 +10989,25 @@ null,
|
|
|
10426
10989
|
resultLowerFns: [_lowerFlatResult([
|
|
10427
10990
|
[ 'ok', _lowerFlatOwn({
|
|
10428
10991
|
componentIdx: 0,
|
|
10429
|
-
lowerFn:
|
|
10992
|
+
lowerFn:
|
|
10993
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10994
|
+
if (!(obj instanceof OutputStream)) {
|
|
10995
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10996
|
+
}
|
|
10997
|
+
let handle = obj[symbolRscHandle];
|
|
10998
|
+
if (!handle) {
|
|
10999
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11000
|
+
captureTable2.set(rep, obj);
|
|
11001
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11002
|
+
}
|
|
11003
|
+
return handle;
|
|
11004
|
+
}
|
|
11005
|
+
,
|
|
10430
11006
|
}), 8, 4, 4 ],
|
|
10431
11007
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10432
11008
|
])
|
|
10433
11009
|
],
|
|
11010
|
+
hasResultPointer: true,
|
|
10434
11011
|
funcTypeIsAsync: false,
|
|
10435
11012
|
getCallbackFn: () => null,
|
|
10436
11013
|
getPostReturnFn: () => null,
|
|
@@ -10438,7 +11015,7 @@ null,
|
|
|
10438
11015
|
memoryIdx: 0,
|
|
10439
11016
|
stringEncoding: 'utf8',
|
|
10440
11017
|
getMemoryFn: () => memory0,
|
|
10441
|
-
getReallocFn:
|
|
11018
|
+
getReallocFn: undefined,
|
|
10442
11019
|
importFn: _trampoline18,
|
|
10443
11020
|
},
|
|
10444
11021
|
);
|
|
@@ -10453,11 +11030,25 @@ null,
|
|
|
10453
11030
|
resultLowerFns: [_lowerFlatResult([
|
|
10454
11031
|
[ 'ok', _lowerFlatOwn({
|
|
10455
11032
|
componentIdx: 0,
|
|
10456
|
-
lowerFn:
|
|
11033
|
+
lowerFn:
|
|
11034
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11035
|
+
if (!(obj instanceof OutputStream)) {
|
|
11036
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11037
|
+
}
|
|
11038
|
+
let handle = obj[symbolRscHandle];
|
|
11039
|
+
if (!handle) {
|
|
11040
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11041
|
+
captureTable2.set(rep, obj);
|
|
11042
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11043
|
+
}
|
|
11044
|
+
return handle;
|
|
11045
|
+
}
|
|
11046
|
+
,
|
|
10457
11047
|
}), 8, 4, 4 ],
|
|
10458
11048
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10459
11049
|
])
|
|
10460
11050
|
],
|
|
11051
|
+
hasResultPointer: true,
|
|
10461
11052
|
funcTypeIsAsync: false,
|
|
10462
11053
|
getCallbackFn: () => null,
|
|
10463
11054
|
getPostReturnFn: () => null,
|
|
@@ -10465,7 +11056,7 @@ null,
|
|
|
10465
11056
|
memoryIdx: 0,
|
|
10466
11057
|
stringEncoding: 'utf8',
|
|
10467
11058
|
getMemoryFn: () => memory0,
|
|
10468
|
-
getReallocFn:
|
|
11059
|
+
getReallocFn: undefined,
|
|
10469
11060
|
importFn: _trampoline19,
|
|
10470
11061
|
},
|
|
10471
11062
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10479,11 +11070,25 @@ null,
|
|
|
10479
11070
|
resultLowerFns: [_lowerFlatResult([
|
|
10480
11071
|
[ 'ok', _lowerFlatOwn({
|
|
10481
11072
|
componentIdx: 0,
|
|
10482
|
-
lowerFn:
|
|
11073
|
+
lowerFn:
|
|
11074
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11075
|
+
if (!(obj instanceof OutputStream)) {
|
|
11076
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11077
|
+
}
|
|
11078
|
+
let handle = obj[symbolRscHandle];
|
|
11079
|
+
if (!handle) {
|
|
11080
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11081
|
+
captureTable2.set(rep, obj);
|
|
11082
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11083
|
+
}
|
|
11084
|
+
return handle;
|
|
11085
|
+
}
|
|
11086
|
+
,
|
|
10483
11087
|
}), 8, 4, 4 ],
|
|
10484
11088
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10485
11089
|
])
|
|
10486
11090
|
],
|
|
11091
|
+
hasResultPointer: true,
|
|
10487
11092
|
funcTypeIsAsync: false,
|
|
10488
11093
|
getCallbackFn: () => null,
|
|
10489
11094
|
getPostReturnFn: () => null,
|
|
@@ -10491,7 +11096,7 @@ null,
|
|
|
10491
11096
|
memoryIdx: 0,
|
|
10492
11097
|
stringEncoding: 'utf8',
|
|
10493
11098
|
getMemoryFn: () => memory0,
|
|
10494
|
-
getReallocFn:
|
|
11099
|
+
getReallocFn: undefined,
|
|
10495
11100
|
importFn: _trampoline19,
|
|
10496
11101
|
},
|
|
10497
11102
|
);
|
|
@@ -10506,11 +11111,25 @@ null,
|
|
|
10506
11111
|
resultLowerFns: [_lowerFlatResult([
|
|
10507
11112
|
[ 'ok', _lowerFlatOwn({
|
|
10508
11113
|
componentIdx: 0,
|
|
10509
|
-
lowerFn:
|
|
11114
|
+
lowerFn:
|
|
11115
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11116
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11117
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11118
|
+
}
|
|
11119
|
+
let handle = obj[symbolRscHandle];
|
|
11120
|
+
if (!handle) {
|
|
11121
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11122
|
+
captureTable5.set(rep, obj);
|
|
11123
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11124
|
+
}
|
|
11125
|
+
return handle;
|
|
11126
|
+
}
|
|
11127
|
+
,
|
|
10510
11128
|
}), 8, 4, 4 ],
|
|
10511
11129
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10512
11130
|
])
|
|
10513
11131
|
],
|
|
11132
|
+
hasResultPointer: true,
|
|
10514
11133
|
funcTypeIsAsync: false,
|
|
10515
11134
|
getCallbackFn: () => null,
|
|
10516
11135
|
getPostReturnFn: () => null,
|
|
@@ -10518,7 +11137,7 @@ null,
|
|
|
10518
11137
|
memoryIdx: 0,
|
|
10519
11138
|
stringEncoding: 'utf8',
|
|
10520
11139
|
getMemoryFn: () => memory0,
|
|
10521
|
-
getReallocFn:
|
|
11140
|
+
getReallocFn: undefined,
|
|
10522
11141
|
importFn: _trampoline20,
|
|
10523
11142
|
},
|
|
10524
11143
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10532,11 +11151,25 @@ null,
|
|
|
10532
11151
|
resultLowerFns: [_lowerFlatResult([
|
|
10533
11152
|
[ 'ok', _lowerFlatOwn({
|
|
10534
11153
|
componentIdx: 0,
|
|
10535
|
-
lowerFn:
|
|
11154
|
+
lowerFn:
|
|
11155
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11156
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11157
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11158
|
+
}
|
|
11159
|
+
let handle = obj[symbolRscHandle];
|
|
11160
|
+
if (!handle) {
|
|
11161
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11162
|
+
captureTable5.set(rep, obj);
|
|
11163
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11164
|
+
}
|
|
11165
|
+
return handle;
|
|
11166
|
+
}
|
|
11167
|
+
,
|
|
10536
11168
|
}), 8, 4, 4 ],
|
|
10537
11169
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10538
11170
|
])
|
|
10539
11171
|
],
|
|
11172
|
+
hasResultPointer: true,
|
|
10540
11173
|
funcTypeIsAsync: false,
|
|
10541
11174
|
getCallbackFn: () => null,
|
|
10542
11175
|
getPostReturnFn: () => null,
|
|
@@ -10544,7 +11177,7 @@ null,
|
|
|
10544
11177
|
memoryIdx: 0,
|
|
10545
11178
|
stringEncoding: 'utf8',
|
|
10546
11179
|
getMemoryFn: () => memory0,
|
|
10547
|
-
getReallocFn:
|
|
11180
|
+
getReallocFn: undefined,
|
|
10548
11181
|
importFn: _trampoline20,
|
|
10549
11182
|
},
|
|
10550
11183
|
);
|
|
@@ -10557,22 +11190,23 @@ null,
|
|
|
10557
11190
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10558
11191
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10559
11192
|
resultLowerFns: [_lowerFlatResult([
|
|
10560
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11193
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10561
11194
|
[ 'none', null, 24, 8, 8 ],
|
|
10562
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11195
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10563
11196
|
])
|
|
10564
|
-
,
|
|
11197
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10565
11198
|
[ 'none', null, 24, 8, 8 ],
|
|
10566
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11199
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10567
11200
|
])
|
|
10568
|
-
,
|
|
11201
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10569
11202
|
[ 'none', null, 24, 8, 8 ],
|
|
10570
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11203
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10571
11204
|
])
|
|
10572
|
-
,
|
|
11205
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10573
11206
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10574
11207
|
])
|
|
10575
11208
|
],
|
|
11209
|
+
hasResultPointer: true,
|
|
10576
11210
|
funcTypeIsAsync: false,
|
|
10577
11211
|
getCallbackFn: () => null,
|
|
10578
11212
|
getPostReturnFn: () => null,
|
|
@@ -10580,7 +11214,7 @@ null,
|
|
|
10580
11214
|
memoryIdx: 0,
|
|
10581
11215
|
stringEncoding: 'utf8',
|
|
10582
11216
|
getMemoryFn: () => memory0,
|
|
10583
|
-
getReallocFn:
|
|
11217
|
+
getReallocFn: undefined,
|
|
10584
11218
|
importFn: _trampoline21,
|
|
10585
11219
|
},
|
|
10586
11220
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10592,22 +11226,23 @@ null,
|
|
|
10592
11226
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10593
11227
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10594
11228
|
resultLowerFns: [_lowerFlatResult([
|
|
10595
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11229
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10596
11230
|
[ 'none', null, 24, 8, 8 ],
|
|
10597
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11231
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10598
11232
|
])
|
|
10599
|
-
,
|
|
11233
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10600
11234
|
[ 'none', null, 24, 8, 8 ],
|
|
10601
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11235
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10602
11236
|
])
|
|
10603
|
-
,
|
|
11237
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10604
11238
|
[ 'none', null, 24, 8, 8 ],
|
|
10605
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11239
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10606
11240
|
])
|
|
10607
|
-
,
|
|
11241
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10608
11242
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10609
11243
|
])
|
|
10610
11244
|
],
|
|
11245
|
+
hasResultPointer: true,
|
|
10611
11246
|
funcTypeIsAsync: false,
|
|
10612
11247
|
getCallbackFn: () => null,
|
|
10613
11248
|
getPostReturnFn: () => null,
|
|
@@ -10615,7 +11250,7 @@ null,
|
|
|
10615
11250
|
memoryIdx: 0,
|
|
10616
11251
|
stringEncoding: 'utf8',
|
|
10617
11252
|
getMemoryFn: () => memory0,
|
|
10618
|
-
getReallocFn:
|
|
11253
|
+
getReallocFn: undefined,
|
|
10619
11254
|
importFn: _trampoline21,
|
|
10620
11255
|
},
|
|
10621
11256
|
);
|
|
@@ -10628,22 +11263,23 @@ null,
|
|
|
10628
11263
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10629
11264
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10630
11265
|
resultLowerFns: [_lowerFlatResult([
|
|
10631
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11266
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10632
11267
|
[ 'none', null, 24, 8, 8 ],
|
|
10633
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11268
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10634
11269
|
])
|
|
10635
|
-
,
|
|
11270
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10636
11271
|
[ 'none', null, 24, 8, 8 ],
|
|
10637
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11272
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10638
11273
|
])
|
|
10639
|
-
,
|
|
11274
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10640
11275
|
[ 'none', null, 24, 8, 8 ],
|
|
10641
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11276
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10642
11277
|
])
|
|
10643
|
-
,
|
|
11278
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10644
11279
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10645
11280
|
])
|
|
10646
11281
|
],
|
|
11282
|
+
hasResultPointer: true,
|
|
10647
11283
|
funcTypeIsAsync: false,
|
|
10648
11284
|
getCallbackFn: () => null,
|
|
10649
11285
|
getPostReturnFn: () => null,
|
|
@@ -10651,7 +11287,7 @@ null,
|
|
|
10651
11287
|
memoryIdx: 0,
|
|
10652
11288
|
stringEncoding: 'utf8',
|
|
10653
11289
|
getMemoryFn: () => memory0,
|
|
10654
|
-
getReallocFn:
|
|
11290
|
+
getReallocFn: undefined,
|
|
10655
11291
|
importFn: _trampoline22,
|
|
10656
11292
|
},
|
|
10657
11293
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10663,22 +11299,23 @@ null,
|
|
|
10663
11299
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10664
11300
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10665
11301
|
resultLowerFns: [_lowerFlatResult([
|
|
10666
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11302
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10667
11303
|
[ 'none', null, 24, 8, 8 ],
|
|
10668
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11304
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10669
11305
|
])
|
|
10670
|
-
,
|
|
11306
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10671
11307
|
[ 'none', null, 24, 8, 8 ],
|
|
10672
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11308
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10673
11309
|
])
|
|
10674
|
-
,
|
|
11310
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10675
11311
|
[ 'none', null, 24, 8, 8 ],
|
|
10676
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11312
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10677
11313
|
])
|
|
10678
|
-
,
|
|
11314
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10679
11315
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10680
11316
|
])
|
|
10681
11317
|
],
|
|
11318
|
+
hasResultPointer: true,
|
|
10682
11319
|
funcTypeIsAsync: false,
|
|
10683
11320
|
getCallbackFn: () => null,
|
|
10684
11321
|
getPostReturnFn: () => null,
|
|
@@ -10686,7 +11323,7 @@ null,
|
|
|
10686
11323
|
memoryIdx: 0,
|
|
10687
11324
|
stringEncoding: 'utf8',
|
|
10688
11325
|
getMemoryFn: () => memory0,
|
|
10689
|
-
getReallocFn:
|
|
11326
|
+
getReallocFn: undefined,
|
|
10690
11327
|
importFn: _trampoline22,
|
|
10691
11328
|
},
|
|
10692
11329
|
);
|
|
@@ -10701,11 +11338,25 @@ null,
|
|
|
10701
11338
|
resultLowerFns: [_lowerFlatResult([
|
|
10702
11339
|
[ 'ok', _lowerFlatOwn({
|
|
10703
11340
|
componentIdx: 0,
|
|
10704
|
-
lowerFn:
|
|
11341
|
+
lowerFn:
|
|
11342
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11343
|
+
if (!(obj instanceof Descriptor)) {
|
|
11344
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11345
|
+
}
|
|
11346
|
+
let handle = obj[symbolRscHandle];
|
|
11347
|
+
if (!handle) {
|
|
11348
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11349
|
+
captureTable6.set(rep, obj);
|
|
11350
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11351
|
+
}
|
|
11352
|
+
return handle;
|
|
11353
|
+
}
|
|
11354
|
+
,
|
|
10705
11355
|
}), 8, 4, 4 ],
|
|
10706
11356
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10707
11357
|
])
|
|
10708
11358
|
],
|
|
11359
|
+
hasResultPointer: true,
|
|
10709
11360
|
funcTypeIsAsync: false,
|
|
10710
11361
|
getCallbackFn: () => null,
|
|
10711
11362
|
getPostReturnFn: () => null,
|
|
@@ -10713,7 +11364,7 @@ null,
|
|
|
10713
11364
|
memoryIdx: 0,
|
|
10714
11365
|
stringEncoding: 'utf8',
|
|
10715
11366
|
getMemoryFn: () => memory0,
|
|
10716
|
-
getReallocFn:
|
|
11367
|
+
getReallocFn: undefined,
|
|
10717
11368
|
importFn: _trampoline23,
|
|
10718
11369
|
},
|
|
10719
11370
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10727,11 +11378,25 @@ null,
|
|
|
10727
11378
|
resultLowerFns: [_lowerFlatResult([
|
|
10728
11379
|
[ 'ok', _lowerFlatOwn({
|
|
10729
11380
|
componentIdx: 0,
|
|
10730
|
-
lowerFn:
|
|
11381
|
+
lowerFn:
|
|
11382
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11383
|
+
if (!(obj instanceof Descriptor)) {
|
|
11384
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11385
|
+
}
|
|
11386
|
+
let handle = obj[symbolRscHandle];
|
|
11387
|
+
if (!handle) {
|
|
11388
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11389
|
+
captureTable6.set(rep, obj);
|
|
11390
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11391
|
+
}
|
|
11392
|
+
return handle;
|
|
11393
|
+
}
|
|
11394
|
+
,
|
|
10731
11395
|
}), 8, 4, 4 ],
|
|
10732
11396
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10733
11397
|
])
|
|
10734
11398
|
],
|
|
11399
|
+
hasResultPointer: true,
|
|
10735
11400
|
funcTypeIsAsync: false,
|
|
10736
11401
|
getCallbackFn: () => null,
|
|
10737
11402
|
getPostReturnFn: () => null,
|
|
@@ -10739,7 +11404,7 @@ null,
|
|
|
10739
11404
|
memoryIdx: 0,
|
|
10740
11405
|
stringEncoding: 'utf8',
|
|
10741
11406
|
getMemoryFn: () => memory0,
|
|
10742
|
-
getReallocFn:
|
|
11407
|
+
getReallocFn: undefined,
|
|
10743
11408
|
importFn: _trampoline23,
|
|
10744
11409
|
},
|
|
10745
11410
|
);
|
|
@@ -10754,12 +11419,13 @@ null,
|
|
|
10754
11419
|
resultLowerFns: [_lowerFlatResult([
|
|
10755
11420
|
[ 'ok', _lowerFlatOption([
|
|
10756
11421
|
[ 'none', null, 16, 4, 4 ],
|
|
10757
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11422
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10758
11423
|
])
|
|
10759
11424
|
, 20, 4, 4 ],
|
|
10760
11425
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10761
11426
|
])
|
|
10762
11427
|
],
|
|
11428
|
+
hasResultPointer: true,
|
|
10763
11429
|
funcTypeIsAsync: false,
|
|
10764
11430
|
getCallbackFn: () => null,
|
|
10765
11431
|
getPostReturnFn: () => null,
|
|
@@ -10781,12 +11447,13 @@ null,
|
|
|
10781
11447
|
resultLowerFns: [_lowerFlatResult([
|
|
10782
11448
|
[ 'ok', _lowerFlatOption([
|
|
10783
11449
|
[ 'none', null, 16, 4, 4 ],
|
|
10784
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11450
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10785
11451
|
])
|
|
10786
11452
|
, 20, 4, 4 ],
|
|
10787
11453
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10788
11454
|
])
|
|
10789
11455
|
],
|
|
11456
|
+
hasResultPointer: true,
|
|
10790
11457
|
funcTypeIsAsync: false,
|
|
10791
11458
|
getCallbackFn: () => null,
|
|
10792
11459
|
getPostReturnFn: () => null,
|
|
@@ -10814,10 +11481,24 @@ null,
|
|
|
10814
11481
|
}), 12, 4, 4 ],
|
|
10815
11482
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10816
11483
|
componentIdx: 0,
|
|
10817
|
-
lowerFn:
|
|
11484
|
+
lowerFn:
|
|
11485
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11486
|
+
if (!(obj instanceof Error$1)) {
|
|
11487
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11488
|
+
}
|
|
11489
|
+
let handle = obj[symbolRscHandle];
|
|
11490
|
+
if (!handle) {
|
|
11491
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11492
|
+
captureTable0.set(rep, obj);
|
|
11493
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11494
|
+
}
|
|
11495
|
+
return handle;
|
|
11496
|
+
}
|
|
11497
|
+
,
|
|
10818
11498
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10819
11499
|
])
|
|
10820
11500
|
],
|
|
11501
|
+
hasResultPointer: true,
|
|
10821
11502
|
funcTypeIsAsync: false,
|
|
10822
11503
|
getCallbackFn: () => null,
|
|
10823
11504
|
getPostReturnFn: () => null,
|
|
@@ -10844,10 +11525,24 @@ null,
|
|
|
10844
11525
|
}), 12, 4, 4 ],
|
|
10845
11526
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10846
11527
|
componentIdx: 0,
|
|
10847
|
-
lowerFn:
|
|
11528
|
+
lowerFn:
|
|
11529
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11530
|
+
if (!(obj instanceof Error$1)) {
|
|
11531
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11532
|
+
}
|
|
11533
|
+
let handle = obj[symbolRscHandle];
|
|
11534
|
+
if (!handle) {
|
|
11535
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11536
|
+
captureTable0.set(rep, obj);
|
|
11537
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11538
|
+
}
|
|
11539
|
+
return handle;
|
|
11540
|
+
}
|
|
11541
|
+
,
|
|
10848
11542
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10849
11543
|
])
|
|
10850
11544
|
],
|
|
11545
|
+
hasResultPointer: true,
|
|
10851
11546
|
funcTypeIsAsync: false,
|
|
10852
11547
|
getCallbackFn: () => null,
|
|
10853
11548
|
getPostReturnFn: () => null,
|
|
@@ -10875,10 +11570,24 @@ null,
|
|
|
10875
11570
|
}), 12, 4, 4 ],
|
|
10876
11571
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10877
11572
|
componentIdx: 0,
|
|
10878
|
-
lowerFn:
|
|
11573
|
+
lowerFn:
|
|
11574
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11575
|
+
if (!(obj instanceof Error$1)) {
|
|
11576
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11577
|
+
}
|
|
11578
|
+
let handle = obj[symbolRscHandle];
|
|
11579
|
+
if (!handle) {
|
|
11580
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11581
|
+
captureTable0.set(rep, obj);
|
|
11582
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11583
|
+
}
|
|
11584
|
+
return handle;
|
|
11585
|
+
}
|
|
11586
|
+
,
|
|
10879
11587
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10880
11588
|
])
|
|
10881
11589
|
],
|
|
11590
|
+
hasResultPointer: true,
|
|
10882
11591
|
funcTypeIsAsync: false,
|
|
10883
11592
|
getCallbackFn: () => null,
|
|
10884
11593
|
getPostReturnFn: () => null,
|
|
@@ -10905,10 +11614,24 @@ null,
|
|
|
10905
11614
|
}), 12, 4, 4 ],
|
|
10906
11615
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10907
11616
|
componentIdx: 0,
|
|
10908
|
-
lowerFn:
|
|
11617
|
+
lowerFn:
|
|
11618
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11619
|
+
if (!(obj instanceof Error$1)) {
|
|
11620
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11621
|
+
}
|
|
11622
|
+
let handle = obj[symbolRscHandle];
|
|
11623
|
+
if (!handle) {
|
|
11624
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11625
|
+
captureTable0.set(rep, obj);
|
|
11626
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11627
|
+
}
|
|
11628
|
+
return handle;
|
|
11629
|
+
}
|
|
11630
|
+
,
|
|
10909
11631
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10910
11632
|
])
|
|
10911
11633
|
],
|
|
11634
|
+
hasResultPointer: true,
|
|
10912
11635
|
funcTypeIsAsync: false,
|
|
10913
11636
|
getCallbackFn: () => null,
|
|
10914
11637
|
getPostReturnFn: () => null,
|
|
@@ -10932,10 +11655,24 @@ null,
|
|
|
10932
11655
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10933
11656
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10934
11657
|
componentIdx: 0,
|
|
10935
|
-
lowerFn:
|
|
11658
|
+
lowerFn:
|
|
11659
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11660
|
+
if (!(obj instanceof Error$1)) {
|
|
11661
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11662
|
+
}
|
|
11663
|
+
let handle = obj[symbolRscHandle];
|
|
11664
|
+
if (!handle) {
|
|
11665
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11666
|
+
captureTable0.set(rep, obj);
|
|
11667
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11668
|
+
}
|
|
11669
|
+
return handle;
|
|
11670
|
+
}
|
|
11671
|
+
,
|
|
10936
11672
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10937
11673
|
])
|
|
10938
11674
|
],
|
|
11675
|
+
hasResultPointer: true,
|
|
10939
11676
|
funcTypeIsAsync: false,
|
|
10940
11677
|
getCallbackFn: () => null,
|
|
10941
11678
|
getPostReturnFn: () => null,
|
|
@@ -10943,7 +11680,7 @@ null,
|
|
|
10943
11680
|
memoryIdx: 0,
|
|
10944
11681
|
stringEncoding: 'utf8',
|
|
10945
11682
|
getMemoryFn: () => memory0,
|
|
10946
|
-
getReallocFn:
|
|
11683
|
+
getReallocFn: undefined,
|
|
10947
11684
|
importFn: _trampoline27,
|
|
10948
11685
|
},
|
|
10949
11686
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10958,10 +11695,24 @@ null,
|
|
|
10958
11695
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10959
11696
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10960
11697
|
componentIdx: 0,
|
|
10961
|
-
lowerFn:
|
|
11698
|
+
lowerFn:
|
|
11699
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11700
|
+
if (!(obj instanceof Error$1)) {
|
|
11701
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11702
|
+
}
|
|
11703
|
+
let handle = obj[symbolRscHandle];
|
|
11704
|
+
if (!handle) {
|
|
11705
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11706
|
+
captureTable0.set(rep, obj);
|
|
11707
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11708
|
+
}
|
|
11709
|
+
return handle;
|
|
11710
|
+
}
|
|
11711
|
+
,
|
|
10962
11712
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10963
11713
|
])
|
|
10964
11714
|
],
|
|
11715
|
+
hasResultPointer: true,
|
|
10965
11716
|
funcTypeIsAsync: false,
|
|
10966
11717
|
getCallbackFn: () => null,
|
|
10967
11718
|
getPostReturnFn: () => null,
|
|
@@ -10969,7 +11720,7 @@ null,
|
|
|
10969
11720
|
memoryIdx: 0,
|
|
10970
11721
|
stringEncoding: 'utf8',
|
|
10971
11722
|
getMemoryFn: () => memory0,
|
|
10972
|
-
getReallocFn:
|
|
11723
|
+
getReallocFn: undefined,
|
|
10973
11724
|
importFn: _trampoline27,
|
|
10974
11725
|
},
|
|
10975
11726
|
);
|
|
@@ -10984,15 +11735,30 @@ null,
|
|
|
10984
11735
|
elemLiftFn: _liftFlatU8,
|
|
10985
11736
|
elemAlign32: 1,
|
|
10986
11737
|
elemSize32: 1,
|
|
11738
|
+
typedArray: Uint8Array,
|
|
10987
11739
|
})],
|
|
10988
11740
|
resultLowerFns: [_lowerFlatResult([
|
|
10989
11741
|
[ 'ok', null, 12, 4, 4 ],
|
|
10990
11742
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10991
11743
|
componentIdx: 0,
|
|
10992
|
-
lowerFn:
|
|
11744
|
+
lowerFn:
|
|
11745
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11746
|
+
if (!(obj instanceof Error$1)) {
|
|
11747
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11748
|
+
}
|
|
11749
|
+
let handle = obj[symbolRscHandle];
|
|
11750
|
+
if (!handle) {
|
|
11751
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11752
|
+
captureTable0.set(rep, obj);
|
|
11753
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11754
|
+
}
|
|
11755
|
+
return handle;
|
|
11756
|
+
}
|
|
11757
|
+
,
|
|
10993
11758
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10994
11759
|
])
|
|
10995
11760
|
],
|
|
11761
|
+
hasResultPointer: true,
|
|
10996
11762
|
funcTypeIsAsync: false,
|
|
10997
11763
|
getCallbackFn: () => null,
|
|
10998
11764
|
getPostReturnFn: () => null,
|
|
@@ -11000,7 +11766,7 @@ null,
|
|
|
11000
11766
|
memoryIdx: 0,
|
|
11001
11767
|
stringEncoding: 'utf8',
|
|
11002
11768
|
getMemoryFn: () => memory0,
|
|
11003
|
-
getReallocFn:
|
|
11769
|
+
getReallocFn: undefined,
|
|
11004
11770
|
importFn: _trampoline28,
|
|
11005
11771
|
},
|
|
11006
11772
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11014,15 +11780,30 @@ null,
|
|
|
11014
11780
|
elemLiftFn: _liftFlatU8,
|
|
11015
11781
|
elemAlign32: 1,
|
|
11016
11782
|
elemSize32: 1,
|
|
11783
|
+
typedArray: Uint8Array,
|
|
11017
11784
|
})],
|
|
11018
11785
|
resultLowerFns: [_lowerFlatResult([
|
|
11019
11786
|
[ 'ok', null, 12, 4, 4 ],
|
|
11020
11787
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11021
11788
|
componentIdx: 0,
|
|
11022
|
-
lowerFn:
|
|
11789
|
+
lowerFn:
|
|
11790
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11791
|
+
if (!(obj instanceof Error$1)) {
|
|
11792
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11793
|
+
}
|
|
11794
|
+
let handle = obj[symbolRscHandle];
|
|
11795
|
+
if (!handle) {
|
|
11796
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11797
|
+
captureTable0.set(rep, obj);
|
|
11798
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11799
|
+
}
|
|
11800
|
+
return handle;
|
|
11801
|
+
}
|
|
11802
|
+
,
|
|
11023
11803
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11024
11804
|
])
|
|
11025
11805
|
],
|
|
11806
|
+
hasResultPointer: true,
|
|
11026
11807
|
funcTypeIsAsync: false,
|
|
11027
11808
|
getCallbackFn: () => null,
|
|
11028
11809
|
getPostReturnFn: () => null,
|
|
@@ -11030,7 +11811,7 @@ null,
|
|
|
11030
11811
|
memoryIdx: 0,
|
|
11031
11812
|
stringEncoding: 'utf8',
|
|
11032
11813
|
getMemoryFn: () => memory0,
|
|
11033
|
-
getReallocFn:
|
|
11814
|
+
getReallocFn: undefined,
|
|
11034
11815
|
importFn: _trampoline28,
|
|
11035
11816
|
},
|
|
11036
11817
|
);
|
|
@@ -11045,15 +11826,30 @@ null,
|
|
|
11045
11826
|
elemLiftFn: _liftFlatU8,
|
|
11046
11827
|
elemAlign32: 1,
|
|
11047
11828
|
elemSize32: 1,
|
|
11829
|
+
typedArray: Uint8Array,
|
|
11048
11830
|
})],
|
|
11049
11831
|
resultLowerFns: [_lowerFlatResult([
|
|
11050
11832
|
[ 'ok', null, 12, 4, 4 ],
|
|
11051
11833
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11052
11834
|
componentIdx: 0,
|
|
11053
|
-
lowerFn:
|
|
11835
|
+
lowerFn:
|
|
11836
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11837
|
+
if (!(obj instanceof Error$1)) {
|
|
11838
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11839
|
+
}
|
|
11840
|
+
let handle = obj[symbolRscHandle];
|
|
11841
|
+
if (!handle) {
|
|
11842
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11843
|
+
captureTable0.set(rep, obj);
|
|
11844
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11845
|
+
}
|
|
11846
|
+
return handle;
|
|
11847
|
+
}
|
|
11848
|
+
,
|
|
11054
11849
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11055
11850
|
])
|
|
11056
11851
|
],
|
|
11852
|
+
hasResultPointer: true,
|
|
11057
11853
|
funcTypeIsAsync: false,
|
|
11058
11854
|
getCallbackFn: () => null,
|
|
11059
11855
|
getPostReturnFn: () => null,
|
|
@@ -11061,7 +11857,7 @@ null,
|
|
|
11061
11857
|
memoryIdx: 0,
|
|
11062
11858
|
stringEncoding: 'utf8',
|
|
11063
11859
|
getMemoryFn: () => memory0,
|
|
11064
|
-
getReallocFn:
|
|
11860
|
+
getReallocFn: undefined,
|
|
11065
11861
|
importFn: _trampoline29,
|
|
11066
11862
|
},
|
|
11067
11863
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11075,15 +11871,30 @@ null,
|
|
|
11075
11871
|
elemLiftFn: _liftFlatU8,
|
|
11076
11872
|
elemAlign32: 1,
|
|
11077
11873
|
elemSize32: 1,
|
|
11874
|
+
typedArray: Uint8Array,
|
|
11078
11875
|
})],
|
|
11079
11876
|
resultLowerFns: [_lowerFlatResult([
|
|
11080
11877
|
[ 'ok', null, 12, 4, 4 ],
|
|
11081
11878
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11082
11879
|
componentIdx: 0,
|
|
11083
|
-
lowerFn:
|
|
11880
|
+
lowerFn:
|
|
11881
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11882
|
+
if (!(obj instanceof Error$1)) {
|
|
11883
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11884
|
+
}
|
|
11885
|
+
let handle = obj[symbolRscHandle];
|
|
11886
|
+
if (!handle) {
|
|
11887
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11888
|
+
captureTable0.set(rep, obj);
|
|
11889
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11890
|
+
}
|
|
11891
|
+
return handle;
|
|
11892
|
+
}
|
|
11893
|
+
,
|
|
11084
11894
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11085
11895
|
])
|
|
11086
11896
|
],
|
|
11897
|
+
hasResultPointer: true,
|
|
11087
11898
|
funcTypeIsAsync: false,
|
|
11088
11899
|
getCallbackFn: () => null,
|
|
11089
11900
|
getPostReturnFn: () => null,
|
|
@@ -11091,7 +11902,7 @@ null,
|
|
|
11091
11902
|
memoryIdx: 0,
|
|
11092
11903
|
stringEncoding: 'utf8',
|
|
11093
11904
|
getMemoryFn: () => memory0,
|
|
11094
|
-
getReallocFn:
|
|
11905
|
+
getReallocFn: undefined,
|
|
11095
11906
|
importFn: _trampoline29,
|
|
11096
11907
|
},
|
|
11097
11908
|
);
|
|
@@ -11107,10 +11918,24 @@ null,
|
|
|
11107
11918
|
[ 'ok', null, 12, 4, 4 ],
|
|
11108
11919
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11109
11920
|
componentIdx: 0,
|
|
11110
|
-
lowerFn:
|
|
11921
|
+
lowerFn:
|
|
11922
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11923
|
+
if (!(obj instanceof Error$1)) {
|
|
11924
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11925
|
+
}
|
|
11926
|
+
let handle = obj[symbolRscHandle];
|
|
11927
|
+
if (!handle) {
|
|
11928
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11929
|
+
captureTable0.set(rep, obj);
|
|
11930
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11931
|
+
}
|
|
11932
|
+
return handle;
|
|
11933
|
+
}
|
|
11934
|
+
,
|
|
11111
11935
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11112
11936
|
])
|
|
11113
11937
|
],
|
|
11938
|
+
hasResultPointer: true,
|
|
11114
11939
|
funcTypeIsAsync: false,
|
|
11115
11940
|
getCallbackFn: () => null,
|
|
11116
11941
|
getPostReturnFn: () => null,
|
|
@@ -11118,7 +11943,7 @@ null,
|
|
|
11118
11943
|
memoryIdx: 0,
|
|
11119
11944
|
stringEncoding: 'utf8',
|
|
11120
11945
|
getMemoryFn: () => memory0,
|
|
11121
|
-
getReallocFn:
|
|
11946
|
+
getReallocFn: undefined,
|
|
11122
11947
|
importFn: _trampoline30,
|
|
11123
11948
|
},
|
|
11124
11949
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11133,10 +11958,24 @@ null,
|
|
|
11133
11958
|
[ 'ok', null, 12, 4, 4 ],
|
|
11134
11959
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11135
11960
|
componentIdx: 0,
|
|
11136
|
-
lowerFn:
|
|
11961
|
+
lowerFn:
|
|
11962
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11963
|
+
if (!(obj instanceof Error$1)) {
|
|
11964
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11965
|
+
}
|
|
11966
|
+
let handle = obj[symbolRscHandle];
|
|
11967
|
+
if (!handle) {
|
|
11968
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11969
|
+
captureTable0.set(rep, obj);
|
|
11970
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11971
|
+
}
|
|
11972
|
+
return handle;
|
|
11973
|
+
}
|
|
11974
|
+
,
|
|
11137
11975
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11138
11976
|
])
|
|
11139
11977
|
],
|
|
11978
|
+
hasResultPointer: true,
|
|
11140
11979
|
funcTypeIsAsync: false,
|
|
11141
11980
|
getCallbackFn: () => null,
|
|
11142
11981
|
getPostReturnFn: () => null,
|
|
@@ -11144,7 +11983,7 @@ null,
|
|
|
11144
11983
|
memoryIdx: 0,
|
|
11145
11984
|
stringEncoding: 'utf8',
|
|
11146
11985
|
getMemoryFn: () => memory0,
|
|
11147
|
-
getReallocFn:
|
|
11986
|
+
getReallocFn: undefined,
|
|
11148
11987
|
importFn: _trampoline30,
|
|
11149
11988
|
},
|
|
11150
11989
|
);
|
|
@@ -11161,6 +12000,7 @@ null,
|
|
|
11161
12000
|
elemSize32: 1,
|
|
11162
12001
|
elemAlign32: 1,
|
|
11163
12002
|
})],
|
|
12003
|
+
hasResultPointer: true,
|
|
11164
12004
|
funcTypeIsAsync: false,
|
|
11165
12005
|
getCallbackFn: () => null,
|
|
11166
12006
|
getPostReturnFn: () => null,
|
|
@@ -11184,6 +12024,7 @@ null,
|
|
|
11184
12024
|
elemSize32: 1,
|
|
11185
12025
|
elemAlign32: 1,
|
|
11186
12026
|
})],
|
|
12027
|
+
hasResultPointer: true,
|
|
11187
12028
|
funcTypeIsAsync: false,
|
|
11188
12029
|
getCallbackFn: () => null,
|
|
11189
12030
|
getPostReturnFn: () => null,
|
|
@@ -11204,13 +12045,27 @@ null,
|
|
|
11204
12045
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11205
12046
|
paramLiftFns: [],
|
|
11206
12047
|
resultLowerFns: [_lowerFlatList({
|
|
11207
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12048
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11208
12049
|
componentIdx: 0,
|
|
11209
|
-
lowerFn:
|
|
11210
|
-
|
|
12050
|
+
lowerFn:
|
|
12051
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12052
|
+
if (!(obj instanceof Descriptor)) {
|
|
12053
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12054
|
+
}
|
|
12055
|
+
let handle = obj[symbolRscHandle];
|
|
12056
|
+
if (!handle) {
|
|
12057
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12058
|
+
captureTable6.set(rep, obj);
|
|
12059
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12060
|
+
}
|
|
12061
|
+
return handle;
|
|
12062
|
+
}
|
|
12063
|
+
,
|
|
12064
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11211
12065
|
elemSize32: 12,
|
|
11212
12066
|
elemAlign32: 4,
|
|
11213
12067
|
})],
|
|
12068
|
+
hasResultPointer: true,
|
|
11214
12069
|
funcTypeIsAsync: false,
|
|
11215
12070
|
getCallbackFn: () => null,
|
|
11216
12071
|
getPostReturnFn: () => null,
|
|
@@ -11230,13 +12085,27 @@ null,
|
|
|
11230
12085
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11231
12086
|
paramLiftFns: [],
|
|
11232
12087
|
resultLowerFns: [_lowerFlatList({
|
|
11233
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12088
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11234
12089
|
componentIdx: 0,
|
|
11235
|
-
lowerFn:
|
|
11236
|
-
|
|
12090
|
+
lowerFn:
|
|
12091
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12092
|
+
if (!(obj instanceof Descriptor)) {
|
|
12093
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12094
|
+
}
|
|
12095
|
+
let handle = obj[symbolRscHandle];
|
|
12096
|
+
if (!handle) {
|
|
12097
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12098
|
+
captureTable6.set(rep, obj);
|
|
12099
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12100
|
+
}
|
|
12101
|
+
return handle;
|
|
12102
|
+
}
|
|
12103
|
+
,
|
|
12104
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11237
12105
|
elemSize32: 12,
|
|
11238
12106
|
elemAlign32: 4,
|
|
11239
12107
|
})],
|
|
12108
|
+
hasResultPointer: true,
|
|
11240
12109
|
funcTypeIsAsync: false,
|
|
11241
12110
|
getCallbackFn: () => null,
|
|
11242
12111
|
getPostReturnFn: () => null,
|
|
@@ -11260,10 +12129,24 @@ null,
|
|
|
11260
12129
|
[ 'none', null, 8, 4, 4 ],
|
|
11261
12130
|
[ 'some', _lowerFlatOwn({
|
|
11262
12131
|
componentIdx: 0,
|
|
11263
|
-
lowerFn:
|
|
12132
|
+
lowerFn:
|
|
12133
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12134
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12135
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12136
|
+
}
|
|
12137
|
+
let handle = obj[symbolRscHandle];
|
|
12138
|
+
if (!handle) {
|
|
12139
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12140
|
+
captureTable3.set(rep, obj);
|
|
12141
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12142
|
+
}
|
|
12143
|
+
return handle;
|
|
12144
|
+
}
|
|
12145
|
+
,
|
|
11264
12146
|
}), 8, 4, 4 ],
|
|
11265
12147
|
])
|
|
11266
12148
|
],
|
|
12149
|
+
hasResultPointer: true,
|
|
11267
12150
|
funcTypeIsAsync: false,
|
|
11268
12151
|
getCallbackFn: () => null,
|
|
11269
12152
|
getPostReturnFn: () => null,
|
|
@@ -11271,7 +12154,7 @@ null,
|
|
|
11271
12154
|
memoryIdx: 0,
|
|
11272
12155
|
stringEncoding: 'utf8',
|
|
11273
12156
|
getMemoryFn: () => memory0,
|
|
11274
|
-
getReallocFn:
|
|
12157
|
+
getReallocFn: undefined,
|
|
11275
12158
|
importFn: _trampoline33,
|
|
11276
12159
|
},
|
|
11277
12160
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11286,10 +12169,24 @@ null,
|
|
|
11286
12169
|
[ 'none', null, 8, 4, 4 ],
|
|
11287
12170
|
[ 'some', _lowerFlatOwn({
|
|
11288
12171
|
componentIdx: 0,
|
|
11289
|
-
lowerFn:
|
|
12172
|
+
lowerFn:
|
|
12173
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12174
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12175
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12176
|
+
}
|
|
12177
|
+
let handle = obj[symbolRscHandle];
|
|
12178
|
+
if (!handle) {
|
|
12179
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12180
|
+
captureTable3.set(rep, obj);
|
|
12181
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12182
|
+
}
|
|
12183
|
+
return handle;
|
|
12184
|
+
}
|
|
12185
|
+
,
|
|
11290
12186
|
}), 8, 4, 4 ],
|
|
11291
12187
|
])
|
|
11292
12188
|
],
|
|
12189
|
+
hasResultPointer: true,
|
|
11293
12190
|
funcTypeIsAsync: false,
|
|
11294
12191
|
getCallbackFn: () => null,
|
|
11295
12192
|
getPostReturnFn: () => null,
|
|
@@ -11297,7 +12194,7 @@ null,
|
|
|
11297
12194
|
memoryIdx: 0,
|
|
11298
12195
|
stringEncoding: 'utf8',
|
|
11299
12196
|
getMemoryFn: () => memory0,
|
|
11300
|
-
getReallocFn:
|
|
12197
|
+
getReallocFn: undefined,
|
|
11301
12198
|
importFn: _trampoline33,
|
|
11302
12199
|
},
|
|
11303
12200
|
);
|
|
@@ -11313,10 +12210,24 @@ null,
|
|
|
11313
12210
|
[ 'none', null, 8, 4, 4 ],
|
|
11314
12211
|
[ 'some', _lowerFlatOwn({
|
|
11315
12212
|
componentIdx: 0,
|
|
11316
|
-
lowerFn:
|
|
12213
|
+
lowerFn:
|
|
12214
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12215
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12216
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12217
|
+
}
|
|
12218
|
+
let handle = obj[symbolRscHandle];
|
|
12219
|
+
if (!handle) {
|
|
12220
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12221
|
+
captureTable4.set(rep, obj);
|
|
12222
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12223
|
+
}
|
|
12224
|
+
return handle;
|
|
12225
|
+
}
|
|
12226
|
+
,
|
|
11317
12227
|
}), 8, 4, 4 ],
|
|
11318
12228
|
])
|
|
11319
12229
|
],
|
|
12230
|
+
hasResultPointer: true,
|
|
11320
12231
|
funcTypeIsAsync: false,
|
|
11321
12232
|
getCallbackFn: () => null,
|
|
11322
12233
|
getPostReturnFn: () => null,
|
|
@@ -11324,7 +12235,7 @@ null,
|
|
|
11324
12235
|
memoryIdx: 0,
|
|
11325
12236
|
stringEncoding: 'utf8',
|
|
11326
12237
|
getMemoryFn: () => memory0,
|
|
11327
|
-
getReallocFn:
|
|
12238
|
+
getReallocFn: undefined,
|
|
11328
12239
|
importFn: _trampoline34,
|
|
11329
12240
|
},
|
|
11330
12241
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11339,10 +12250,24 @@ null,
|
|
|
11339
12250
|
[ 'none', null, 8, 4, 4 ],
|
|
11340
12251
|
[ 'some', _lowerFlatOwn({
|
|
11341
12252
|
componentIdx: 0,
|
|
11342
|
-
lowerFn:
|
|
12253
|
+
lowerFn:
|
|
12254
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12255
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12256
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12257
|
+
}
|
|
12258
|
+
let handle = obj[symbolRscHandle];
|
|
12259
|
+
if (!handle) {
|
|
12260
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12261
|
+
captureTable4.set(rep, obj);
|
|
12262
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12263
|
+
}
|
|
12264
|
+
return handle;
|
|
12265
|
+
}
|
|
12266
|
+
,
|
|
11343
12267
|
}), 8, 4, 4 ],
|
|
11344
12268
|
])
|
|
11345
12269
|
],
|
|
12270
|
+
hasResultPointer: true,
|
|
11346
12271
|
funcTypeIsAsync: false,
|
|
11347
12272
|
getCallbackFn: () => null,
|
|
11348
12273
|
getPostReturnFn: () => null,
|
|
@@ -11350,7 +12275,7 @@ null,
|
|
|
11350
12275
|
memoryIdx: 0,
|
|
11351
12276
|
stringEncoding: 'utf8',
|
|
11352
12277
|
getMemoryFn: () => memory0,
|
|
11353
|
-
getReallocFn:
|
|
12278
|
+
getReallocFn: undefined,
|
|
11354
12279
|
importFn: _trampoline34,
|
|
11355
12280
|
},
|
|
11356
12281
|
);
|
|
@@ -11366,10 +12291,24 @@ null,
|
|
|
11366
12291
|
[ 'none', null, 8, 4, 4 ],
|
|
11367
12292
|
[ 'some', _lowerFlatOwn({
|
|
11368
12293
|
componentIdx: 0,
|
|
11369
|
-
lowerFn:
|
|
12294
|
+
lowerFn:
|
|
12295
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12296
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12297
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12298
|
+
}
|
|
12299
|
+
let handle = obj[symbolRscHandle];
|
|
12300
|
+
if (!handle) {
|
|
12301
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12302
|
+
captureTable4.set(rep, obj);
|
|
12303
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12304
|
+
}
|
|
12305
|
+
return handle;
|
|
12306
|
+
}
|
|
12307
|
+
,
|
|
11370
12308
|
}), 8, 4, 4 ],
|
|
11371
12309
|
])
|
|
11372
12310
|
],
|
|
12311
|
+
hasResultPointer: true,
|
|
11373
12312
|
funcTypeIsAsync: false,
|
|
11374
12313
|
getCallbackFn: () => null,
|
|
11375
12314
|
getPostReturnFn: () => null,
|
|
@@ -11377,7 +12316,7 @@ null,
|
|
|
11377
12316
|
memoryIdx: 0,
|
|
11378
12317
|
stringEncoding: 'utf8',
|
|
11379
12318
|
getMemoryFn: () => memory0,
|
|
11380
|
-
getReallocFn:
|
|
12319
|
+
getReallocFn: undefined,
|
|
11381
12320
|
importFn: _trampoline35,
|
|
11382
12321
|
},
|
|
11383
12322
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11392,10 +12331,24 @@ null,
|
|
|
11392
12331
|
[ 'none', null, 8, 4, 4 ],
|
|
11393
12332
|
[ 'some', _lowerFlatOwn({
|
|
11394
12333
|
componentIdx: 0,
|
|
11395
|
-
lowerFn:
|
|
12334
|
+
lowerFn:
|
|
12335
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12336
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12337
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12338
|
+
}
|
|
12339
|
+
let handle = obj[symbolRscHandle];
|
|
12340
|
+
if (!handle) {
|
|
12341
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12342
|
+
captureTable4.set(rep, obj);
|
|
12343
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12344
|
+
}
|
|
12345
|
+
return handle;
|
|
12346
|
+
}
|
|
12347
|
+
,
|
|
11396
12348
|
}), 8, 4, 4 ],
|
|
11397
12349
|
])
|
|
11398
12350
|
],
|
|
12351
|
+
hasResultPointer: true,
|
|
11399
12352
|
funcTypeIsAsync: false,
|
|
11400
12353
|
getCallbackFn: () => null,
|
|
11401
12354
|
getPostReturnFn: () => null,
|
|
@@ -11403,7 +12356,7 @@ null,
|
|
|
11403
12356
|
memoryIdx: 0,
|
|
11404
12357
|
stringEncoding: 'utf8',
|
|
11405
12358
|
getMemoryFn: () => memory0,
|
|
11406
|
-
getReallocFn:
|
|
12359
|
+
getReallocFn: undefined,
|
|
11407
12360
|
importFn: _trampoline35,
|
|
11408
12361
|
},
|
|
11409
12362
|
);
|