@bytecodealliance/jco 1.18.1 → 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.d.ts +1 -0
- package/obj/js-component-bindgen-component.js +1481 -518
- package/obj/wasm-tools.core.wasm +0 -0
- package/obj/wasm-tools.js +1570 -519
- package/package.json +97 -96
- package/src/api.js +11 -16
- package/src/cmd/transpile.js +8 -0
- package/src/jco.js +1 -1
- package/types/api.d.ts +17 -23
- package/types/api.d.ts.map +1 -1
- package/{src → types}/cmd/componentize.d.ts +1 -1
- package/types/cmd/componentize.d.ts.map +1 -0
- package/{src → types}/cmd/opt.d.ts +7 -10
- package/types/cmd/opt.d.ts.map +1 -0
- package/{src → types}/cmd/run.d.ts +1 -1
- package/types/cmd/run.d.ts.map +1 -0
- package/types/cmd/transpile.d.ts +62 -0
- package/types/cmd/transpile.d.ts.map +1 -0
- package/types/cmd/types.d.ts +45 -0
- package/types/cmd/types.d.ts.map +1 -0
- package/{src → types}/cmd/wasm-tools.d.ts +1 -1
- package/types/cmd/wasm-tools.d.ts.map +1 -0
- package/src/cmd/componentize.d.ts.map +0 -1
- package/src/cmd/opt.d.ts.map +0 -1
- package/src/cmd/run.d.ts.map +0 -1
- package/src/cmd/transpile.d.ts +0 -138
- package/src/cmd/transpile.d.ts.map +0 -1
- package/src/cmd/types.d.ts +0 -38
- package/src/cmd/wasm-tools.d.ts.map +0 -1
package/obj/wasm-tools.js
CHANGED
|
@@ -11,7 +11,6 @@ if (getEnvironment=== undefined) {
|
|
|
11
11
|
throw err;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
getEnvironment._isHostProvided = true;
|
|
15
14
|
const { exit } = exit$1;
|
|
16
15
|
|
|
17
16
|
if (exit=== undefined) {
|
|
@@ -20,7 +19,6 @@ if (exit=== undefined) {
|
|
|
20
19
|
throw err;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
exit._isHostProvided = true;
|
|
24
22
|
const { getStderr } = stderr;
|
|
25
23
|
|
|
26
24
|
if (getStderr=== undefined) {
|
|
@@ -29,7 +27,6 @@ if (getStderr=== undefined) {
|
|
|
29
27
|
throw err;
|
|
30
28
|
}
|
|
31
29
|
|
|
32
|
-
getStderr._isHostProvided = true;
|
|
33
30
|
const { getStdin } = stdin;
|
|
34
31
|
|
|
35
32
|
if (getStdin=== undefined) {
|
|
@@ -38,7 +35,6 @@ if (getStdin=== undefined) {
|
|
|
38
35
|
throw err;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
getStdin._isHostProvided = true;
|
|
42
38
|
const { getStdout } = stdout;
|
|
43
39
|
|
|
44
40
|
if (getStdout=== undefined) {
|
|
@@ -47,7 +43,6 @@ if (getStdout=== undefined) {
|
|
|
47
43
|
throw err;
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
getStdout._isHostProvided = true;
|
|
51
46
|
const { TerminalInput } = terminalInput;
|
|
52
47
|
|
|
53
48
|
if (TerminalInput=== undefined) {
|
|
@@ -56,7 +51,6 @@ if (TerminalInput=== undefined) {
|
|
|
56
51
|
throw err;
|
|
57
52
|
}
|
|
58
53
|
|
|
59
|
-
TerminalInput._isHostProvided = true;
|
|
60
54
|
const { TerminalOutput } = terminalOutput;
|
|
61
55
|
|
|
62
56
|
if (TerminalOutput=== undefined) {
|
|
@@ -65,7 +59,6 @@ if (TerminalOutput=== undefined) {
|
|
|
65
59
|
throw err;
|
|
66
60
|
}
|
|
67
61
|
|
|
68
|
-
TerminalOutput._isHostProvided = true;
|
|
69
62
|
const { getTerminalStderr } = terminalStderr;
|
|
70
63
|
|
|
71
64
|
if (getTerminalStderr=== undefined) {
|
|
@@ -74,7 +67,6 @@ if (getTerminalStderr=== undefined) {
|
|
|
74
67
|
throw err;
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
getTerminalStderr._isHostProvided = true;
|
|
78
70
|
const { getTerminalStdin } = terminalStdin;
|
|
79
71
|
|
|
80
72
|
if (getTerminalStdin=== undefined) {
|
|
@@ -83,7 +75,6 @@ if (getTerminalStdin=== undefined) {
|
|
|
83
75
|
throw err;
|
|
84
76
|
}
|
|
85
77
|
|
|
86
|
-
getTerminalStdin._isHostProvided = true;
|
|
87
78
|
const { getTerminalStdout } = terminalStdout;
|
|
88
79
|
|
|
89
80
|
if (getTerminalStdout=== undefined) {
|
|
@@ -92,7 +83,6 @@ if (getTerminalStdout=== undefined) {
|
|
|
92
83
|
throw err;
|
|
93
84
|
}
|
|
94
85
|
|
|
95
|
-
getTerminalStdout._isHostProvided = true;
|
|
96
86
|
const { getDirectories } = preopens;
|
|
97
87
|
|
|
98
88
|
if (getDirectories=== undefined) {
|
|
@@ -101,7 +91,6 @@ if (getDirectories=== undefined) {
|
|
|
101
91
|
throw err;
|
|
102
92
|
}
|
|
103
93
|
|
|
104
|
-
getDirectories._isHostProvided = true;
|
|
105
94
|
const { Descriptor,
|
|
106
95
|
DirectoryEntryStream,
|
|
107
96
|
filesystemErrorCode } = types;
|
|
@@ -112,7 +101,6 @@ if (Descriptor=== undefined) {
|
|
|
112
101
|
throw err;
|
|
113
102
|
}
|
|
114
103
|
|
|
115
|
-
Descriptor._isHostProvided = true;
|
|
116
104
|
|
|
117
105
|
if (DirectoryEntryStream=== undefined) {
|
|
118
106
|
const err = new Error("unexpectedly undefined local import 'DirectoryEntryStream', was 'DirectoryEntryStream' available at instantiation?");
|
|
@@ -120,7 +108,6 @@ if (DirectoryEntryStream=== undefined) {
|
|
|
120
108
|
throw err;
|
|
121
109
|
}
|
|
122
110
|
|
|
123
|
-
DirectoryEntryStream._isHostProvided = true;
|
|
124
111
|
|
|
125
112
|
if (filesystemErrorCode=== undefined) {
|
|
126
113
|
const err = new Error("unexpectedly undefined local import 'filesystemErrorCode', was 'filesystemErrorCode' available at instantiation?");
|
|
@@ -128,7 +115,6 @@ if (filesystemErrorCode=== undefined) {
|
|
|
128
115
|
throw err;
|
|
129
116
|
}
|
|
130
117
|
|
|
131
|
-
filesystemErrorCode._isHostProvided = true;
|
|
132
118
|
const { Error: Error$1 } = error;
|
|
133
119
|
|
|
134
120
|
if (Error$1=== undefined) {
|
|
@@ -137,7 +123,6 @@ if (Error$1=== undefined) {
|
|
|
137
123
|
throw err;
|
|
138
124
|
}
|
|
139
125
|
|
|
140
|
-
Error$1._isHostProvided = true;
|
|
141
126
|
const { InputStream,
|
|
142
127
|
OutputStream } = streams;
|
|
143
128
|
|
|
@@ -147,7 +132,6 @@ if (InputStream=== undefined) {
|
|
|
147
132
|
throw err;
|
|
148
133
|
}
|
|
149
134
|
|
|
150
|
-
InputStream._isHostProvided = true;
|
|
151
135
|
|
|
152
136
|
if (OutputStream=== undefined) {
|
|
153
137
|
const err = new Error("unexpectedly undefined local import 'OutputStream', was 'OutputStream' available at instantiation?");
|
|
@@ -155,7 +139,6 @@ if (OutputStream=== undefined) {
|
|
|
155
139
|
throw err;
|
|
156
140
|
}
|
|
157
141
|
|
|
158
|
-
OutputStream._isHostProvided = true;
|
|
159
142
|
const { getRandomBytes } = random;
|
|
160
143
|
|
|
161
144
|
if (getRandomBytes=== undefined) {
|
|
@@ -164,7 +147,6 @@ if (getRandomBytes=== undefined) {
|
|
|
164
147
|
throw err;
|
|
165
148
|
}
|
|
166
149
|
|
|
167
|
-
getRandomBytes._isHostProvided = true;
|
|
168
150
|
|
|
169
151
|
function promiseWithResolvers() {
|
|
170
152
|
if (Promise.withResolvers) {
|
|
@@ -193,10 +175,11 @@ const CURRENT_TASK_META = {};
|
|
|
193
175
|
|
|
194
176
|
function _getGlobalCurrentTaskMeta(componentIdx) {
|
|
195
177
|
const v = CURRENT_TASK_META[componentIdx];
|
|
196
|
-
if (v === undefined) { return
|
|
178
|
+
if (v === undefined || v === null) { return undefined; }
|
|
197
179
|
return { ...v };
|
|
198
180
|
}
|
|
199
181
|
|
|
182
|
+
|
|
200
183
|
function _setGlobalCurrentTaskMeta(args) {
|
|
201
184
|
if (!args) { throw new TypeError('args missing'); }
|
|
202
185
|
if (args.taskID === undefined) { throw new TypeError('missing task ID'); }
|
|
@@ -205,6 +188,7 @@ function _setGlobalCurrentTaskMeta(args) {
|
|
|
205
188
|
return CURRENT_TASK_META[componentIdx] = { taskID, componentIdx };
|
|
206
189
|
}
|
|
207
190
|
|
|
191
|
+
|
|
208
192
|
function _withGlobalCurrentTaskMeta(args) {
|
|
209
193
|
_debugLog('[_withGlobalCurrentTaskMeta()] args', args);
|
|
210
194
|
if (!args) { throw new TypeError('args missing'); }
|
|
@@ -383,7 +367,9 @@ class RepTable {
|
|
|
383
367
|
const _coinFlip = () => { return Math.random() > 0.5; };
|
|
384
368
|
let SCOPE_ID = 0;
|
|
385
369
|
const I32_MIN = -2_147_483_648;
|
|
386
|
-
|
|
370
|
+
|
|
371
|
+
const I32_MAX= 2_147_483_647;
|
|
372
|
+
|
|
387
373
|
|
|
388
374
|
function _isValidNumericPrimitive(ty, v) {
|
|
389
375
|
if (v === undefined || v === null) { return false; }
|
|
@@ -425,8 +411,10 @@ function _requireValidNumericPrimitive(ty, v) {
|
|
|
425
411
|
}
|
|
426
412
|
return true;
|
|
427
413
|
}
|
|
414
|
+
|
|
428
415
|
const _typeCheckValidI32 = (n) => typeof n === 'number' && n >= I32_MIN && n <= I32_MAX;
|
|
429
416
|
|
|
417
|
+
|
|
430
418
|
const _typeCheckAsyncFn= (f) => {
|
|
431
419
|
return f instanceof ASYNC_FN_CTOR;
|
|
432
420
|
};
|
|
@@ -462,7 +450,9 @@ function clearCurrentTask(componentIdx, taskID) {
|
|
|
462
450
|
const taskMeta = tasks.pop();
|
|
463
451
|
return taskMeta.task;
|
|
464
452
|
}
|
|
465
|
-
|
|
453
|
+
|
|
454
|
+
const CURRENT_TASK_MAY_BLOCK= globalThis.WebAssembly ? new globalThis.WebAssembly.Global({ value: 'i32', mutable: true }, 0) : false;
|
|
455
|
+
|
|
466
456
|
const ASYNC_CURRENT_TASK_IDS = [];
|
|
467
457
|
const ASYNC_CURRENT_COMPONENT_IDXS = [];
|
|
468
458
|
|
|
@@ -674,11 +664,7 @@ class AsyncSubtask {
|
|
|
674
664
|
|
|
675
665
|
if (this.#onProgressFn) { this.#onProgressFn(); }
|
|
676
666
|
|
|
677
|
-
if (subtaskValue === null) {
|
|
678
|
-
if (this.#cancelRequested) {
|
|
679
|
-
throw new Error('cancel was not requested, but no value present at return');
|
|
680
|
-
}
|
|
681
|
-
|
|
667
|
+
if (subtaskValue === null && this.#cancelRequested) {
|
|
682
668
|
if (this.#state === AsyncSubtask.State.STARTING) {
|
|
683
669
|
this.#state = AsyncSubtask.State.CANCELLED_BEFORE_STARTED;
|
|
684
670
|
} else {
|
|
@@ -1493,8 +1479,6 @@ class Waitable {
|
|
|
1493
1479
|
|
|
1494
1480
|
#parentSubtask = null;
|
|
1495
1481
|
|
|
1496
|
-
#needsExclusiveLock = false;
|
|
1497
|
-
|
|
1498
1482
|
#errHandling;
|
|
1499
1483
|
|
|
1500
1484
|
#backpressurePromise;
|
|
@@ -1516,6 +1500,8 @@ class Waitable {
|
|
|
1516
1500
|
storage = [0, 0];
|
|
1517
1501
|
borrowedHandles = {};
|
|
1518
1502
|
|
|
1503
|
+
tmpRetI64HighBits = 0|0;
|
|
1504
|
+
|
|
1519
1505
|
constructor(opts) {
|
|
1520
1506
|
this.#id = ++AsyncTask._ID;
|
|
1521
1507
|
|
|
@@ -1567,7 +1553,6 @@ class Waitable {
|
|
|
1567
1553
|
|
|
1568
1554
|
if (opts.parentSubtask) { this.#parentSubtask = opts.parentSubtask; }
|
|
1569
1555
|
|
|
1570
|
-
this.#needsExclusiveLock = this.isSync() || !this.hasCallback();
|
|
1571
1556
|
|
|
1572
1557
|
if (opts.errHandling) { this.#errHandling = opts.errHandling; }
|
|
1573
1558
|
}
|
|
@@ -1641,8 +1626,12 @@ class Waitable {
|
|
|
1641
1626
|
}
|
|
1642
1627
|
|
|
1643
1628
|
async runCallbackFn(...args) {
|
|
1644
|
-
if (!this.#callbackFn) { throw new Error('
|
|
1645
|
-
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
|
+
});
|
|
1646
1635
|
}
|
|
1647
1636
|
|
|
1648
1637
|
getCalleeParams() {
|
|
@@ -1673,6 +1662,11 @@ class Waitable {
|
|
|
1673
1662
|
enterSync() {
|
|
1674
1663
|
if (this.needsExclusiveLock()) {
|
|
1675
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()`.
|
|
1676
1670
|
cstate.exclusiveLock();
|
|
1677
1671
|
}
|
|
1678
1672
|
return true;
|
|
@@ -1683,6 +1677,7 @@ class Waitable {
|
|
|
1683
1677
|
taskID: this.#id,
|
|
1684
1678
|
componentIdx: this.#componentIdx,
|
|
1685
1679
|
subtaskID: this.getParentSubtask()?.id(),
|
|
1680
|
+
entryFnName: this.#entryFnName,
|
|
1686
1681
|
});
|
|
1687
1682
|
|
|
1688
1683
|
if (this.#entered) {
|
|
@@ -1691,12 +1686,14 @@ class Waitable {
|
|
|
1691
1686
|
|
|
1692
1687
|
const cstate = getOrCreateAsyncState(this.#componentIdx);
|
|
1693
1688
|
|
|
1689
|
+
await cstate.nextTaskExecutionSlot({ task: this });
|
|
1690
|
+
|
|
1694
1691
|
// If a task is either synchronous or host-provided (e.g. a host import, whether sync or async)
|
|
1695
1692
|
// then we can avoid component-relevant tracking and immediately enter
|
|
1696
1693
|
if (this.isSync() || opts?.isHost) {
|
|
1697
1694
|
this.#entered = true;
|
|
1698
1695
|
|
|
1699
|
-
// TODO(breaking): remove once manually-
|
|
1696
|
+
// TODO(breaking): remove once manually-specifying async fns is removed
|
|
1700
1697
|
// It is currently possible for an actually sync export to be specified
|
|
1701
1698
|
// as async via JSPI
|
|
1702
1699
|
if (this.#isManualAsync) {
|
|
@@ -1706,11 +1703,15 @@ class Waitable {
|
|
|
1706
1703
|
return this.#entered;
|
|
1707
1704
|
}
|
|
1708
1705
|
|
|
1709
|
-
|
|
1706
|
+
// Perform intial backpressure check
|
|
1707
|
+
if (cstate.hasBackpressure() || this.needsExclusiveLock() && cstate.isExclusivelyLocked()) {
|
|
1710
1708
|
cstate.addBackpressureWaiter();
|
|
1711
1709
|
|
|
1712
1710
|
const result = await this.waitUntil({
|
|
1713
|
-
readyFn: () =>
|
|
1711
|
+
readyFn: () => {
|
|
1712
|
+
return !(cstate.hasBackpressure()
|
|
1713
|
+
|| this.needsExclusiveLock() && cstate.isExclusivelyLocked());
|
|
1714
|
+
},
|
|
1714
1715
|
cancellable: true,
|
|
1715
1716
|
});
|
|
1716
1717
|
|
|
@@ -1722,7 +1723,32 @@ class Waitable {
|
|
|
1722
1723
|
}
|
|
1723
1724
|
}
|
|
1724
1725
|
|
|
1725
|
-
|
|
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
|
+
}
|
|
1726
1752
|
|
|
1727
1753
|
this.#entered = true;
|
|
1728
1754
|
return this.#entered;
|
|
@@ -1733,38 +1759,19 @@ class Waitable {
|
|
|
1733
1759
|
isResolved() { return this.#state === AsyncTask.State.RESOLVED; }
|
|
1734
1760
|
|
|
1735
1761
|
async waitUntil(opts) {
|
|
1736
|
-
const { readyFn,
|
|
1737
|
-
_debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id,
|
|
1738
|
-
|
|
1739
|
-
const state = getOrCreateAsyncState(this.#componentIdx);
|
|
1740
|
-
const wset = state.handles.get(waitableSetRep);
|
|
1741
|
-
|
|
1742
|
-
let event;
|
|
1762
|
+
const { readyFn, cancellable } = opts;
|
|
1763
|
+
_debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id, cancellable });
|
|
1743
1764
|
|
|
1744
|
-
|
|
1765
|
+
// TODO(fix): check for cancel
|
|
1766
|
+
// TODO(fix): determinism
|
|
1767
|
+
// TODO(threads): add this thread to waiting list
|
|
1745
1768
|
|
|
1746
1769
|
const keepGoing = await this.suspendUntil({
|
|
1747
|
-
readyFn
|
|
1748
|
-
const hasPendingEvent = wset.hasPendingEvent();
|
|
1749
|
-
const ready = readyFn();
|
|
1750
|
-
return ready && hasPendingEvent;
|
|
1751
|
-
},
|
|
1770
|
+
readyFn,
|
|
1752
1771
|
cancellable,
|
|
1753
1772
|
});
|
|
1754
1773
|
|
|
1755
|
-
|
|
1756
|
-
event = wset.getPendingEvent();
|
|
1757
|
-
} else {
|
|
1758
|
-
event = {
|
|
1759
|
-
code: ASYNC_EVENT_CODE.TASK_CANCELLED,
|
|
1760
|
-
payload0: 0,
|
|
1761
|
-
payload1: 0,
|
|
1762
|
-
};
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
wset.decrementNumWaiting();
|
|
1766
|
-
|
|
1767
|
-
return event;
|
|
1774
|
+
return keepGoing;
|
|
1768
1775
|
}
|
|
1769
1776
|
|
|
1770
1777
|
async yieldUntil(opts) {
|
|
@@ -1805,9 +1812,8 @@ class Waitable {
|
|
|
1805
1812
|
|
|
1806
1813
|
const ready = readyFn();
|
|
1807
1814
|
if (ready && ASYNC_DETERMINISM === 'random') {
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
return true;
|
|
1815
|
+
const coinFlip = _coinFlip();
|
|
1816
|
+
if (coinFlip) { return true }
|
|
1811
1817
|
}
|
|
1812
1818
|
|
|
1813
1819
|
const keepGoing = await this.immediateSuspend({ cancellable, readyFn });
|
|
@@ -1934,7 +1940,6 @@ class Waitable {
|
|
|
1934
1940
|
|
|
1935
1941
|
// TODO: do cleanup here to reset the machinery so we can run again?
|
|
1936
1942
|
|
|
1937
|
-
|
|
1938
1943
|
this.cancel({ error: taskErr });
|
|
1939
1944
|
}
|
|
1940
1945
|
|
|
@@ -1976,7 +1981,7 @@ class Waitable {
|
|
|
1976
1981
|
}
|
|
1977
1982
|
}
|
|
1978
1983
|
|
|
1979
|
-
exit() {
|
|
1984
|
+
exit(args) {
|
|
1980
1985
|
_debugLog('[AsyncTask#exit()]', {
|
|
1981
1986
|
componentIdx: this.#componentIdx,
|
|
1982
1987
|
taskID: this.#id,
|
|
@@ -2011,8 +2016,10 @@ class Waitable {
|
|
|
2011
2016
|
if (!state) { throw new Error('missing async state for component [' + this.#componentIdx + ']'); }
|
|
2012
2017
|
|
|
2013
2018
|
// Exempt the host from exclusive lock check
|
|
2014
|
-
if (this.#componentIdx !== -1 &&
|
|
2015
|
-
|
|
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
|
+
}
|
|
2016
2023
|
}
|
|
2017
2024
|
|
|
2018
2025
|
state.exclusiveRelease();
|
|
@@ -2098,6 +2105,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2098
2105
|
isManualAsync,
|
|
2099
2106
|
paramLiftFns,
|
|
2100
2107
|
resultLowerFns,
|
|
2108
|
+
hasResultPointer,
|
|
2101
2109
|
funcTypeIsAsync,
|
|
2102
2110
|
metadata,
|
|
2103
2111
|
memoryIdx,
|
|
@@ -2172,6 +2180,10 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2172
2180
|
|
|
2173
2181
|
// If there is an existing task, this should be part of a subtask
|
|
2174
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;
|
|
2175
2187
|
const subtask = task.createSubtask({
|
|
2176
2188
|
componentIdx,
|
|
2177
2189
|
parentTask: task,
|
|
@@ -2181,8 +2193,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2181
2193
|
callMetadata: {
|
|
2182
2194
|
memoryIdx,
|
|
2183
2195
|
memory,
|
|
2184
|
-
realloc: getReallocFn(),
|
|
2185
|
-
|
|
2196
|
+
realloc: getReallocFn?.(),
|
|
2197
|
+
getReallocFn,
|
|
2198
|
+
resultPtr,
|
|
2186
2199
|
lowers: resultLowerFns,
|
|
2187
2200
|
stringEncoding,
|
|
2188
2201
|
}
|
|
@@ -2233,7 +2246,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2233
2246
|
// NOTE: at this point we know that we are working with an async lowered import
|
|
2234
2247
|
|
|
2235
2248
|
const subtaskState = subtask.getStateNumber();
|
|
2236
|
-
if (subtaskState < 0 || subtaskState
|
|
2249
|
+
if (subtaskState < 0 || subtaskState >= 2**4) {
|
|
2237
2250
|
throw new Error('invalid subtask state, out of valid range');
|
|
2238
2251
|
}
|
|
2239
2252
|
|
|
@@ -2332,7 +2345,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2332
2345
|
let val;
|
|
2333
2346
|
|
|
2334
2347
|
if (ctx.useDirectParams) {
|
|
2335
|
-
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'); }
|
|
2336
2349
|
val = ctx.params[0];
|
|
2337
2350
|
ctx.params = ctx.params.slice(1);
|
|
2338
2351
|
return [val, ctx];
|
|
@@ -2488,7 +2501,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2488
2501
|
caseIdx = liftRes[0];
|
|
2489
2502
|
ctx = liftRes[1];
|
|
2490
2503
|
|
|
2491
|
-
const [ tag, liftFn, size32, align32, payloadOffset32 ] = casesAndLiftFns[caseIdx];
|
|
2504
|
+
const [ tag, liftFn, size32, align32, payloadOffset32, caseFlatCount, variantFlatCount ] = casesAndLiftFns[caseIdx];
|
|
2492
2505
|
if (payloadOffset32 === undefined) { throw new Error('unexpectedly missing payload offset'); }
|
|
2493
2506
|
|
|
2494
2507
|
if (originalPtr !== undefined) {
|
|
@@ -2500,7 +2513,9 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2500
2513
|
val = { tag };
|
|
2501
2514
|
// NOTE: here we need to move past the entire object in memory
|
|
2502
2515
|
// despite moving to the payload which we now know is missing/unnecessary
|
|
2503
|
-
|
|
2516
|
+
if (originalPtr !== undefined) {
|
|
2517
|
+
ctx.storagePtr = originalPtr + size32;
|
|
2518
|
+
}
|
|
2504
2519
|
} else {
|
|
2505
2520
|
const [newVal, newCtx] = liftFn(ctx);
|
|
2506
2521
|
val = { tag, val: newVal };
|
|
@@ -2508,105 +2523,144 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2508
2523
|
|
|
2509
2524
|
// NOTE: Padding can be left over after doing the lift if it was less than
|
|
2510
2525
|
// space left for the payload normally.
|
|
2511
|
-
if (
|
|
2512
|
-
ctx.storagePtr = originalPtr + size32;
|
|
2526
|
+
if (originalPtr !== undefined) {
|
|
2527
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2513
2528
|
}
|
|
2514
2529
|
}
|
|
2515
2530
|
|
|
2516
|
-
|
|
2517
|
-
|
|
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
|
+
}
|
|
2518
2552
|
|
|
2519
2553
|
return [val, ctx];
|
|
2520
2554
|
}
|
|
2521
2555
|
}
|
|
2522
2556
|
|
|
2523
2557
|
function _liftFlatList(meta) {
|
|
2524
|
-
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);
|
|
2525
2564
|
|
|
2526
2565
|
const readValuesAndReset = (ctx, originalPtr, dataPtr, len) => {
|
|
2527
2566
|
ctx.storagePtr = dataPtr;
|
|
2528
2567
|
const val = [];
|
|
2529
2568
|
for (var i = 0; i < len; i++) {
|
|
2569
|
+
const elemPtr = dataPtr + i * elemSize32;
|
|
2570
|
+
ctx.storagePtr = elemPtr;
|
|
2530
2571
|
const [res, nextCtx] = elemLiftFn(ctx);
|
|
2531
2572
|
val.push(res);
|
|
2532
2573
|
ctx = nextCtx;
|
|
2533
2574
|
|
|
2534
|
-
|
|
2535
|
-
if (rem !== 0) { ctx.storagePtr += elemAlign32 - rem; }
|
|
2575
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2536
2576
|
}
|
|
2537
2577
|
if (originalPtr !== null) { ctx.storagePtr = originalPtr; }
|
|
2538
|
-
return [val, ctx];
|
|
2578
|
+
return [listValue(val), ctx];
|
|
2539
2579
|
};
|
|
2540
2580
|
|
|
2541
|
-
// TODO(fix): special case for u8/u16/etc into appropriate type
|
|
2542
|
-
|
|
2543
2581
|
return function _liftFlatListInner(ctx) {
|
|
2544
2582
|
_debugLog('[_liftFlatList()] args', { ctx });
|
|
2545
2583
|
|
|
2546
2584
|
let liftResults;
|
|
2547
2585
|
if (knownLen !== undefined) { // list with known length
|
|
2548
|
-
|
|
2549
2586
|
if (ctx.useDirectParams) {
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
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`);
|
|
2569
2619
|
}
|
|
2570
2620
|
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
if (ctx.useDirectParams) {
|
|
2574
|
-
// unknown length list ptr w/ direct params
|
|
2575
|
-
const dataPtr = ctx.params[0];
|
|
2576
|
-
const len = ctx.params[1];
|
|
2577
|
-
ctx.params = ctx.params.slice(2);
|
|
2578
|
-
|
|
2579
|
-
ctx.useDirectParams = false;
|
|
2580
|
-
const originalPtr = ctx.storagePtr;
|
|
2581
|
-
ctx.storageLen = len * elemSize32;
|
|
2582
|
-
|
|
2583
|
-
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2584
|
-
|
|
2585
|
-
ctx.useDirectParams = true;
|
|
2586
|
-
ctx.storagePtr = null;
|
|
2587
|
-
ctx.storageLen = null;
|
|
2588
|
-
|
|
2589
|
-
} else {
|
|
2590
|
-
// unknown length list ptr w/ in-memory params
|
|
2591
|
-
ctx.storageLen = 8;
|
|
2592
|
-
|
|
2593
|
-
const dataPtrLiftRes = _liftFlatU32(ctx);
|
|
2594
|
-
const dataPtr = dataPtrLiftRes[0];
|
|
2595
|
-
ctx = dataPtrLiftRes[1];
|
|
2596
|
-
|
|
2597
|
-
const lenLiftRes = _liftFlatU32(ctx);
|
|
2598
|
-
const len = lenLiftRes[0];
|
|
2599
|
-
ctx = lenLiftRes[1];
|
|
2600
|
-
|
|
2601
|
-
const originalPtr = ctx.storagePtr;
|
|
2602
|
-
ctx.storagePtr = dataPtr;
|
|
2603
|
-
|
|
2604
|
-
ctx.storageLen = len * elemSize32;
|
|
2605
|
-
liftResults = readValuesAndReset(ctx, originalPtr, dataPtr, len);
|
|
2621
|
+
ctx.storageLen = knownLen * elemSize32;
|
|
2622
|
+
liftResults = readValuesAndReset(ctx, null, ctx.storagePtr, knownLen);
|
|
2606
2623
|
}
|
|
2607
|
-
|
|
2624
|
+
|
|
2625
|
+
} else { // unknown length list
|
|
2608
2626
|
|
|
2609
|
-
|
|
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;
|
|
2610
2664
|
}
|
|
2611
2665
|
}
|
|
2612
2666
|
|
|
@@ -2771,14 +2825,29 @@ function _lowerFlatStringUTF16(ctx) {
|
|
|
2771
2825
|
ctx.storagePtr += len;
|
|
2772
2826
|
}
|
|
2773
2827
|
|
|
2774
|
-
function _lowerFlatRecord(
|
|
2828
|
+
function _lowerFlatRecord(meta) {
|
|
2829
|
+
const { fieldMetas, size32: recordSize32, align32: recordAlign32 } = meta;
|
|
2775
2830
|
return function _lowerFlatRecordInner(ctx) {
|
|
2776
2831
|
_debugLog('[_lowerFlatRecord()] args', { ctx });
|
|
2777
2832
|
|
|
2833
|
+
const originalPtr = ctx.storagePtr;
|
|
2778
2834
|
const r = ctx.vals[0];
|
|
2779
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;
|
|
2780
2840
|
ctx.vals = [r[tag]];
|
|
2781
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;
|
|
2782
2851
|
}
|
|
2783
2852
|
}
|
|
2784
2853
|
}
|
|
@@ -2819,16 +2888,10 @@ function _lowerFlatVariant(lowerMetas) {
|
|
|
2819
2888
|
ctx.vals = [val];
|
|
2820
2889
|
if (lowerFn) { lowerFn(ctx); }
|
|
2821
2890
|
|
|
2822
|
-
|
|
2891
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, originalPtr + size32);
|
|
2823
2892
|
|
|
2824
2893
|
const rem = ctx.storagePtr % align32;
|
|
2825
|
-
if (rem !== 0) {
|
|
2826
|
-
const pad = align32 - rem;
|
|
2827
|
-
ctx.storagePtr += pad;
|
|
2828
|
-
bytesWritten += pad;
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
ctx.storagePtr += bytesWritten;
|
|
2894
|
+
if (rem !== 0) { ctx.storagePtr += align32 - rem; }
|
|
2832
2895
|
}
|
|
2833
2896
|
}
|
|
2834
2897
|
|
|
@@ -2862,16 +2925,16 @@ function _lowerFlatList(meta) {
|
|
|
2862
2925
|
stringEncoding: ctx.stringEncoding,
|
|
2863
2926
|
};
|
|
2864
2927
|
for (let idx = 0; idx < list.length; idx++) {
|
|
2928
|
+
const elemPtr = storagePtr + idx * elemSize32;
|
|
2929
|
+
lowerCtx.storagePtr = elemPtr;
|
|
2865
2930
|
lowerCtx.vals = list.slice(idx, idx+1);
|
|
2866
2931
|
elemLowerFn(lowerCtx);
|
|
2932
|
+
lowerCtx.storagePtr = Math.max(lowerCtx.storagePtr, elemPtr + elemSize32);
|
|
2867
2933
|
}
|
|
2868
|
-
|
|
2869
|
-
const bytesLowered = lowerCtx.storagePtr - ctx.storagePtr;
|
|
2870
2934
|
ctx.storagePtr = lowerCtx.storagePtr;
|
|
2871
2935
|
|
|
2872
2936
|
// TODO: implement parma-only known-length processing
|
|
2873
2937
|
|
|
2874
|
-
ctx.storagePtr += bytesLowered;
|
|
2875
2938
|
return;
|
|
2876
2939
|
}
|
|
2877
2940
|
|
|
@@ -2893,10 +2956,12 @@ function _lowerFlatList(meta) {
|
|
|
2893
2956
|
const origPtr = ctx.storagePtr;
|
|
2894
2957
|
ctx.storagePtr = dataPtr;
|
|
2895
2958
|
|
|
2896
|
-
|
|
2897
|
-
|
|
2959
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2960
|
+
const elemPtr = dataPtr + idx * elemSize32;
|
|
2961
|
+
ctx.storagePtr = elemPtr;
|
|
2898
2962
|
ctx.vals = [elem];
|
|
2899
2963
|
elemLowerFn(ctx);
|
|
2964
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2900
2965
|
}
|
|
2901
2966
|
|
|
2902
2967
|
ctx.storagePtr = origPtr;
|
|
@@ -2908,9 +2973,13 @@ function _lowerFlatList(meta) {
|
|
|
2908
2973
|
throw new TypeError(`invalid list input of length [${elems.length}], must be length [${knownLen}]`);
|
|
2909
2974
|
}
|
|
2910
2975
|
|
|
2911
|
-
|
|
2976
|
+
const originalPtr = ctx.storagePtr;
|
|
2977
|
+
for (const [idx, elem] of elems.entries()) {
|
|
2978
|
+
const elemPtr = originalPtr + idx * elemSize32;
|
|
2979
|
+
ctx.storagePtr = elemPtr;
|
|
2912
2980
|
ctx.vals = [elem];
|
|
2913
2981
|
elemLowerFn(ctx);
|
|
2982
|
+
ctx.storagePtr = Math.max(ctx.storagePtr, elemPtr + elemSize32);
|
|
2914
2983
|
}
|
|
2915
2984
|
}
|
|
2916
2985
|
|
|
@@ -2923,13 +2992,27 @@ function _lowerFlatList(meta) {
|
|
|
2923
2992
|
}
|
|
2924
2993
|
}
|
|
2925
2994
|
|
|
2926
|
-
function _lowerFlatTuple(
|
|
2995
|
+
function _lowerFlatTuple(meta) {
|
|
2996
|
+
const { elemLowerMetas, size32: tupleSize32, align32: tupleAlign32 } = meta;
|
|
2927
2997
|
return function _lowerFlatTupleInner(ctx) {
|
|
2928
2998
|
_debugLog('[_lowerFlatTuple()] args', { ctx });
|
|
2999
|
+
const originalPtr = ctx.storagePtr;
|
|
2929
3000
|
const tuple = ctx.vals[0];
|
|
2930
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;
|
|
2931
3006
|
ctx.vals = [tuple[idx]];
|
|
2932
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;
|
|
2933
3016
|
}
|
|
2934
3017
|
}
|
|
2935
3018
|
}
|
|
@@ -3218,8 +3301,6 @@ class ComponentAsyncState {
|
|
|
3218
3301
|
this.#locked = locked;
|
|
3219
3302
|
}
|
|
3220
3303
|
|
|
3221
|
-
// TODO(fix): we might want to check for pre-locked status here, we should be deterministically
|
|
3222
|
-
// going from locked -> unlocked and vice versa
|
|
3223
3304
|
exclusiveLock() {
|
|
3224
3305
|
_debugLog('[ComponentAsyncState#exclusiveLock()]', {
|
|
3225
3306
|
locked: this.#locked,
|
|
@@ -3252,6 +3333,54 @@ class ComponentAsyncState {
|
|
|
3252
3333
|
this.#onExclusiveReleaseHandlers.push(fn);
|
|
3253
3334
|
}
|
|
3254
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
|
+
|
|
3255
3384
|
#getSuspendedTaskMeta(taskID) {
|
|
3256
3385
|
return this.#suspendedTasksByTaskID.get(taskID);
|
|
3257
3386
|
}
|
|
@@ -3697,7 +3826,12 @@ class ComponentAsyncState {
|
|
|
3697
3826
|
|
|
3698
3827
|
}
|
|
3699
3828
|
|
|
3700
|
-
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
|
+
|
|
3701
3835
|
|
|
3702
3836
|
const isNode = typeof process !== 'undefined' && process.versions && process.versions.node;
|
|
3703
3837
|
let _fs;
|
|
@@ -3759,11 +3893,11 @@ const _trampoline5 = function() {
|
|
|
3759
3893
|
|
|
3760
3894
|
const createTask = () => {
|
|
3761
3895
|
const results = createNewCurrentTask({
|
|
3762
|
-
componentIdx: -1,
|
|
3896
|
+
componentIdx: -1,
|
|
3763
3897
|
isAsync: false,
|
|
3764
3898
|
entryFnName: 'getStderr',
|
|
3765
3899
|
getCallbackFn: () => null,
|
|
3766
|
-
callbackFnName:
|
|
3900
|
+
callbackFnName: null,
|
|
3767
3901
|
errHandling: 'none',
|
|
3768
3902
|
callingWasmExport: false,
|
|
3769
3903
|
});
|
|
@@ -3771,7 +3905,11 @@ const _trampoline5 = function() {
|
|
|
3771
3905
|
};
|
|
3772
3906
|
|
|
3773
3907
|
taskCreation: {
|
|
3774
|
-
parentTask = getCurrentTask(
|
|
3908
|
+
parentTask = getCurrentTask(
|
|
3909
|
+
0,
|
|
3910
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
3911
|
+
)?.task;
|
|
3912
|
+
|
|
3775
3913
|
if (!parentTask) {
|
|
3776
3914
|
createTask();
|
|
3777
3915
|
break taskCreation;
|
|
@@ -3789,12 +3927,25 @@ const _trampoline5 = function() {
|
|
|
3789
3927
|
}
|
|
3790
3928
|
|
|
3791
3929
|
const started = task.enterSync();
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
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
|
+
|
|
3798
3949
|
|
|
3799
3950
|
if (!(ret instanceof OutputStream)) {
|
|
3800
3951
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3832,11 +3983,11 @@ const _trampoline8 = function() {
|
|
|
3832
3983
|
|
|
3833
3984
|
const createTask = () => {
|
|
3834
3985
|
const results = createNewCurrentTask({
|
|
3835
|
-
componentIdx: -1,
|
|
3986
|
+
componentIdx: -1,
|
|
3836
3987
|
isAsync: false,
|
|
3837
3988
|
entryFnName: 'getStdin',
|
|
3838
3989
|
getCallbackFn: () => null,
|
|
3839
|
-
callbackFnName:
|
|
3990
|
+
callbackFnName: null,
|
|
3840
3991
|
errHandling: 'none',
|
|
3841
3992
|
callingWasmExport: false,
|
|
3842
3993
|
});
|
|
@@ -3844,7 +3995,11 @@ const _trampoline8 = function() {
|
|
|
3844
3995
|
};
|
|
3845
3996
|
|
|
3846
3997
|
taskCreation: {
|
|
3847
|
-
parentTask = getCurrentTask(
|
|
3998
|
+
parentTask = getCurrentTask(
|
|
3999
|
+
0,
|
|
4000
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4001
|
+
)?.task;
|
|
4002
|
+
|
|
3848
4003
|
if (!parentTask) {
|
|
3849
4004
|
createTask();
|
|
3850
4005
|
break taskCreation;
|
|
@@ -3862,12 +4017,25 @@ const _trampoline8 = function() {
|
|
|
3862
4017
|
}
|
|
3863
4018
|
|
|
3864
4019
|
const started = task.enterSync();
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
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
|
+
|
|
3871
4039
|
|
|
3872
4040
|
if (!(ret instanceof InputStream)) {
|
|
3873
4041
|
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
@@ -3901,11 +4069,11 @@ const _trampoline9 = function() {
|
|
|
3901
4069
|
|
|
3902
4070
|
const createTask = () => {
|
|
3903
4071
|
const results = createNewCurrentTask({
|
|
3904
|
-
componentIdx: -1,
|
|
4072
|
+
componentIdx: -1,
|
|
3905
4073
|
isAsync: false,
|
|
3906
4074
|
entryFnName: 'getStdout',
|
|
3907
4075
|
getCallbackFn: () => null,
|
|
3908
|
-
callbackFnName:
|
|
4076
|
+
callbackFnName: null,
|
|
3909
4077
|
errHandling: 'none',
|
|
3910
4078
|
callingWasmExport: false,
|
|
3911
4079
|
});
|
|
@@ -3913,7 +4081,11 @@ const _trampoline9 = function() {
|
|
|
3913
4081
|
};
|
|
3914
4082
|
|
|
3915
4083
|
taskCreation: {
|
|
3916
|
-
parentTask = getCurrentTask(
|
|
4084
|
+
parentTask = getCurrentTask(
|
|
4085
|
+
0,
|
|
4086
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4087
|
+
)?.task;
|
|
4088
|
+
|
|
3917
4089
|
if (!parentTask) {
|
|
3918
4090
|
createTask();
|
|
3919
4091
|
break taskCreation;
|
|
@@ -3931,12 +4103,25 @@ const _trampoline9 = function() {
|
|
|
3931
4103
|
}
|
|
3932
4104
|
|
|
3933
4105
|
const started = task.enterSync();
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
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
|
+
|
|
3940
4125
|
|
|
3941
4126
|
if (!(ret instanceof OutputStream)) {
|
|
3942
4127
|
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
@@ -3990,11 +4175,11 @@ const _trampoline10 = function(arg0) {
|
|
|
3990
4175
|
|
|
3991
4176
|
const createTask = () => {
|
|
3992
4177
|
const results = createNewCurrentTask({
|
|
3993
|
-
componentIdx: -1,
|
|
4178
|
+
componentIdx: -1,
|
|
3994
4179
|
isAsync: false,
|
|
3995
4180
|
entryFnName: 'exit',
|
|
3996
4181
|
getCallbackFn: () => null,
|
|
3997
|
-
callbackFnName:
|
|
4182
|
+
callbackFnName: null,
|
|
3998
4183
|
errHandling: 'none',
|
|
3999
4184
|
callingWasmExport: false,
|
|
4000
4185
|
});
|
|
@@ -4002,7 +4187,11 @@ const _trampoline10 = function(arg0) {
|
|
|
4002
4187
|
};
|
|
4003
4188
|
|
|
4004
4189
|
taskCreation: {
|
|
4005
|
-
parentTask = getCurrentTask(
|
|
4190
|
+
parentTask = getCurrentTask(
|
|
4191
|
+
0,
|
|
4192
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4193
|
+
)?.task;
|
|
4194
|
+
|
|
4006
4195
|
if (!parentTask) {
|
|
4007
4196
|
createTask();
|
|
4008
4197
|
break taskCreation;
|
|
@@ -4020,12 +4209,25 @@ const _trampoline10 = function(arg0) {
|
|
|
4020
4209
|
}
|
|
4021
4210
|
|
|
4022
4211
|
const started = task.enterSync();
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
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
|
+
|
|
4029
4231
|
_debugLog('[iface="wasi:cli/exit@0.2.3", function="exit"][Instruction::Return]', {
|
|
4030
4232
|
funcName: 'exit',
|
|
4031
4233
|
paramCount: 0,
|
|
@@ -4051,11 +4253,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4051
4253
|
|
|
4052
4254
|
const createTask = () => {
|
|
4053
4255
|
const results = createNewCurrentTask({
|
|
4054
|
-
componentIdx: -1,
|
|
4256
|
+
componentIdx: -1,
|
|
4055
4257
|
isAsync: false,
|
|
4056
4258
|
entryFnName: 'getEnvironment',
|
|
4057
4259
|
getCallbackFn: () => null,
|
|
4058
|
-
callbackFnName:
|
|
4260
|
+
callbackFnName: null,
|
|
4059
4261
|
errHandling: 'none',
|
|
4060
4262
|
callingWasmExport: false,
|
|
4061
4263
|
});
|
|
@@ -4063,7 +4265,11 @@ const _trampoline11 = function(arg0) {
|
|
|
4063
4265
|
};
|
|
4064
4266
|
|
|
4065
4267
|
taskCreation: {
|
|
4066
|
-
parentTask = getCurrentTask(
|
|
4268
|
+
parentTask = getCurrentTask(
|
|
4269
|
+
0,
|
|
4270
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4271
|
+
)?.task;
|
|
4272
|
+
|
|
4067
4273
|
if (!parentTask) {
|
|
4068
4274
|
createTask();
|
|
4069
4275
|
break taskCreation;
|
|
@@ -4081,12 +4287,25 @@ const _trampoline11 = function(arg0) {
|
|
|
4081
4287
|
}
|
|
4082
4288
|
|
|
4083
4289
|
const started = task.enterSync();
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
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
|
+
|
|
4090
4309
|
var vec3 = ret;
|
|
4091
4310
|
var len3 = vec3.length;
|
|
4092
4311
|
var result3 = realloc0(0, 0, 4, len3 * 16);
|
|
@@ -4146,11 +4365,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4146
4365
|
|
|
4147
4366
|
const createTask = () => {
|
|
4148
4367
|
const results = createNewCurrentTask({
|
|
4149
|
-
componentIdx: -1,
|
|
4368
|
+
componentIdx: -1,
|
|
4150
4369
|
isAsync: false,
|
|
4151
4370
|
entryFnName: 'getFlags',
|
|
4152
4371
|
getCallbackFn: () => null,
|
|
4153
|
-
callbackFnName:
|
|
4372
|
+
callbackFnName: null,
|
|
4154
4373
|
errHandling: 'result-catch-handler',
|
|
4155
4374
|
callingWasmExport: false,
|
|
4156
4375
|
});
|
|
@@ -4158,7 +4377,11 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4158
4377
|
};
|
|
4159
4378
|
|
|
4160
4379
|
taskCreation: {
|
|
4161
|
-
parentTask = getCurrentTask(
|
|
4380
|
+
parentTask = getCurrentTask(
|
|
4381
|
+
0,
|
|
4382
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4383
|
+
)?.task;
|
|
4384
|
+
|
|
4162
4385
|
if (!parentTask) {
|
|
4163
4386
|
createTask();
|
|
4164
4387
|
break taskCreation;
|
|
@@ -4182,7 +4405,7 @@ const _trampoline12 = function(arg0, arg1) {
|
|
|
4182
4405
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4183
4406
|
componentIdx: task.componentIdx(),
|
|
4184
4407
|
taskID: task.id(),
|
|
4185
|
-
fn: () => rsc0.getFlags()
|
|
4408
|
+
fn: () => rsc0.getFlags(),
|
|
4186
4409
|
})
|
|
4187
4410
|
};
|
|
4188
4411
|
} catch (e) {
|
|
@@ -4411,11 +4634,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4411
4634
|
|
|
4412
4635
|
const createTask = () => {
|
|
4413
4636
|
const results = createNewCurrentTask({
|
|
4414
|
-
componentIdx: -1,
|
|
4637
|
+
componentIdx: -1,
|
|
4415
4638
|
isAsync: false,
|
|
4416
4639
|
entryFnName: 'getType',
|
|
4417
4640
|
getCallbackFn: () => null,
|
|
4418
|
-
callbackFnName:
|
|
4641
|
+
callbackFnName: null,
|
|
4419
4642
|
errHandling: 'result-catch-handler',
|
|
4420
4643
|
callingWasmExport: false,
|
|
4421
4644
|
});
|
|
@@ -4423,7 +4646,11 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4423
4646
|
};
|
|
4424
4647
|
|
|
4425
4648
|
taskCreation: {
|
|
4426
|
-
parentTask = getCurrentTask(
|
|
4649
|
+
parentTask = getCurrentTask(
|
|
4650
|
+
0,
|
|
4651
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4652
|
+
)?.task;
|
|
4653
|
+
|
|
4427
4654
|
if (!parentTask) {
|
|
4428
4655
|
createTask();
|
|
4429
4656
|
break taskCreation;
|
|
@@ -4447,7 +4674,7 @@ const _trampoline13 = function(arg0, arg1) {
|
|
|
4447
4674
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4448
4675
|
componentIdx: task.componentIdx(),
|
|
4449
4676
|
taskID: task.id(),
|
|
4450
|
-
fn: () => rsc0.getType()
|
|
4677
|
+
fn: () => rsc0.getType(),
|
|
4451
4678
|
})
|
|
4452
4679
|
};
|
|
4453
4680
|
} catch (e) {
|
|
@@ -4713,11 +4940,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4713
4940
|
|
|
4714
4941
|
const createTask = () => {
|
|
4715
4942
|
const results = createNewCurrentTask({
|
|
4716
|
-
componentIdx: -1,
|
|
4943
|
+
componentIdx: -1,
|
|
4717
4944
|
isAsync: false,
|
|
4718
4945
|
entryFnName: 'metadataHash',
|
|
4719
4946
|
getCallbackFn: () => null,
|
|
4720
|
-
callbackFnName:
|
|
4947
|
+
callbackFnName: null,
|
|
4721
4948
|
errHandling: 'result-catch-handler',
|
|
4722
4949
|
callingWasmExport: false,
|
|
4723
4950
|
});
|
|
@@ -4725,7 +4952,11 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4725
4952
|
};
|
|
4726
4953
|
|
|
4727
4954
|
taskCreation: {
|
|
4728
|
-
parentTask = getCurrentTask(
|
|
4955
|
+
parentTask = getCurrentTask(
|
|
4956
|
+
0,
|
|
4957
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
4958
|
+
)?.task;
|
|
4959
|
+
|
|
4729
4960
|
if (!parentTask) {
|
|
4730
4961
|
createTask();
|
|
4731
4962
|
break taskCreation;
|
|
@@ -4749,7 +4980,7 @@ const _trampoline14 = function(arg0, arg1) {
|
|
|
4749
4980
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
4750
4981
|
componentIdx: task.componentIdx(),
|
|
4751
4982
|
taskID: task.id(),
|
|
4752
|
-
fn: () => rsc0.metadataHash()
|
|
4983
|
+
fn: () => rsc0.metadataHash(),
|
|
4753
4984
|
})
|
|
4754
4985
|
};
|
|
4755
4986
|
} catch (e) {
|
|
@@ -4978,11 +5209,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4978
5209
|
|
|
4979
5210
|
const createTask = () => {
|
|
4980
5211
|
const results = createNewCurrentTask({
|
|
4981
|
-
componentIdx: -1,
|
|
5212
|
+
componentIdx: -1,
|
|
4982
5213
|
isAsync: false,
|
|
4983
5214
|
entryFnName: 'filesystemErrorCode',
|
|
4984
5215
|
getCallbackFn: () => null,
|
|
4985
|
-
callbackFnName:
|
|
5216
|
+
callbackFnName: null,
|
|
4986
5217
|
errHandling: 'none',
|
|
4987
5218
|
callingWasmExport: false,
|
|
4988
5219
|
});
|
|
@@ -4990,7 +5221,11 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
4990
5221
|
};
|
|
4991
5222
|
|
|
4992
5223
|
taskCreation: {
|
|
4993
|
-
parentTask = getCurrentTask(
|
|
5224
|
+
parentTask = getCurrentTask(
|
|
5225
|
+
0,
|
|
5226
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5227
|
+
)?.task;
|
|
5228
|
+
|
|
4994
5229
|
if (!parentTask) {
|
|
4995
5230
|
createTask();
|
|
4996
5231
|
break taskCreation;
|
|
@@ -5008,12 +5243,25 @@ const _trampoline15 = function(arg0, arg1) {
|
|
|
5008
5243
|
}
|
|
5009
5244
|
|
|
5010
5245
|
const started = task.enterSync();
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
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
|
+
|
|
5017
5265
|
for (const rsc of curResourceBorrows) {
|
|
5018
5266
|
rsc[symbolRscHandle] = undefined;
|
|
5019
5267
|
}
|
|
@@ -5226,11 +5474,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5226
5474
|
|
|
5227
5475
|
const createTask = () => {
|
|
5228
5476
|
const results = createNewCurrentTask({
|
|
5229
|
-
componentIdx: -1,
|
|
5477
|
+
componentIdx: -1,
|
|
5230
5478
|
isAsync: false,
|
|
5231
5479
|
entryFnName: 'metadataHashAt',
|
|
5232
5480
|
getCallbackFn: () => null,
|
|
5233
|
-
callbackFnName:
|
|
5481
|
+
callbackFnName: null,
|
|
5234
5482
|
errHandling: 'result-catch-handler',
|
|
5235
5483
|
callingWasmExport: false,
|
|
5236
5484
|
});
|
|
@@ -5238,7 +5486,11 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5238
5486
|
};
|
|
5239
5487
|
|
|
5240
5488
|
taskCreation: {
|
|
5241
|
-
parentTask = getCurrentTask(
|
|
5489
|
+
parentTask = getCurrentTask(
|
|
5490
|
+
0,
|
|
5491
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5492
|
+
)?.task;
|
|
5493
|
+
|
|
5242
5494
|
if (!parentTask) {
|
|
5243
5495
|
createTask();
|
|
5244
5496
|
break taskCreation;
|
|
@@ -5262,7 +5514,7 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
5262
5514
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5263
5515
|
componentIdx: task.componentIdx(),
|
|
5264
5516
|
taskID: task.id(),
|
|
5265
|
-
fn: () => rsc0.metadataHashAt(flags3, result4)
|
|
5517
|
+
fn: () => rsc0.metadataHashAt(flags3, result4),
|
|
5266
5518
|
})
|
|
5267
5519
|
};
|
|
5268
5520
|
} catch (e) {
|
|
@@ -5487,11 +5739,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5487
5739
|
|
|
5488
5740
|
const createTask = () => {
|
|
5489
5741
|
const results = createNewCurrentTask({
|
|
5490
|
-
componentIdx: -1,
|
|
5742
|
+
componentIdx: -1,
|
|
5491
5743
|
isAsync: false,
|
|
5492
5744
|
entryFnName: 'readViaStream',
|
|
5493
5745
|
getCallbackFn: () => null,
|
|
5494
|
-
callbackFnName:
|
|
5746
|
+
callbackFnName: null,
|
|
5495
5747
|
errHandling: 'result-catch-handler',
|
|
5496
5748
|
callingWasmExport: false,
|
|
5497
5749
|
});
|
|
@@ -5499,7 +5751,11 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5499
5751
|
};
|
|
5500
5752
|
|
|
5501
5753
|
taskCreation: {
|
|
5502
|
-
parentTask = getCurrentTask(
|
|
5754
|
+
parentTask = getCurrentTask(
|
|
5755
|
+
0,
|
|
5756
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
5757
|
+
)?.task;
|
|
5758
|
+
|
|
5503
5759
|
if (!parentTask) {
|
|
5504
5760
|
createTask();
|
|
5505
5761
|
break taskCreation;
|
|
@@ -5523,7 +5779,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
|
|
|
5523
5779
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5524
5780
|
componentIdx: task.componentIdx(),
|
|
5525
5781
|
taskID: task.id(),
|
|
5526
|
-
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
5782
|
+
fn: () => rsc0.readViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5527
5783
|
})
|
|
5528
5784
|
};
|
|
5529
5785
|
} catch (e) {
|
|
@@ -5757,11 +6013,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5757
6013
|
|
|
5758
6014
|
const createTask = () => {
|
|
5759
6015
|
const results = createNewCurrentTask({
|
|
5760
|
-
componentIdx: -1,
|
|
6016
|
+
componentIdx: -1,
|
|
5761
6017
|
isAsync: false,
|
|
5762
6018
|
entryFnName: 'writeViaStream',
|
|
5763
6019
|
getCallbackFn: () => null,
|
|
5764
|
-
callbackFnName:
|
|
6020
|
+
callbackFnName: null,
|
|
5765
6021
|
errHandling: 'result-catch-handler',
|
|
5766
6022
|
callingWasmExport: false,
|
|
5767
6023
|
});
|
|
@@ -5769,7 +6025,11 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5769
6025
|
};
|
|
5770
6026
|
|
|
5771
6027
|
taskCreation: {
|
|
5772
|
-
parentTask = getCurrentTask(
|
|
6028
|
+
parentTask = getCurrentTask(
|
|
6029
|
+
0,
|
|
6030
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6031
|
+
)?.task;
|
|
6032
|
+
|
|
5773
6033
|
if (!parentTask) {
|
|
5774
6034
|
createTask();
|
|
5775
6035
|
break taskCreation;
|
|
@@ -5793,7 +6053,7 @@ const _trampoline18 = function(arg0, arg1, arg2) {
|
|
|
5793
6053
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
5794
6054
|
componentIdx: task.componentIdx(),
|
|
5795
6055
|
taskID: task.id(),
|
|
5796
|
-
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1)))
|
|
6056
|
+
fn: () => rsc0.writeViaStream(BigInt.asUintN(64, BigInt(arg1))),
|
|
5797
6057
|
})
|
|
5798
6058
|
};
|
|
5799
6059
|
} catch (e) {
|
|
@@ -6027,11 +6287,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6027
6287
|
|
|
6028
6288
|
const createTask = () => {
|
|
6029
6289
|
const results = createNewCurrentTask({
|
|
6030
|
-
componentIdx: -1,
|
|
6290
|
+
componentIdx: -1,
|
|
6031
6291
|
isAsync: false,
|
|
6032
6292
|
entryFnName: 'appendViaStream',
|
|
6033
6293
|
getCallbackFn: () => null,
|
|
6034
|
-
callbackFnName:
|
|
6294
|
+
callbackFnName: null,
|
|
6035
6295
|
errHandling: 'result-catch-handler',
|
|
6036
6296
|
callingWasmExport: false,
|
|
6037
6297
|
});
|
|
@@ -6039,7 +6299,11 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6039
6299
|
};
|
|
6040
6300
|
|
|
6041
6301
|
taskCreation: {
|
|
6042
|
-
parentTask = getCurrentTask(
|
|
6302
|
+
parentTask = getCurrentTask(
|
|
6303
|
+
0,
|
|
6304
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6305
|
+
)?.task;
|
|
6306
|
+
|
|
6043
6307
|
if (!parentTask) {
|
|
6044
6308
|
createTask();
|
|
6045
6309
|
break taskCreation;
|
|
@@ -6063,7 +6327,7 @@ const _trampoline19 = function(arg0, arg1) {
|
|
|
6063
6327
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6064
6328
|
componentIdx: task.componentIdx(),
|
|
6065
6329
|
taskID: task.id(),
|
|
6066
|
-
fn: () => rsc0.appendViaStream()
|
|
6330
|
+
fn: () => rsc0.appendViaStream(),
|
|
6067
6331
|
})
|
|
6068
6332
|
};
|
|
6069
6333
|
} catch (e) {
|
|
@@ -6301,11 +6565,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6301
6565
|
|
|
6302
6566
|
const createTask = () => {
|
|
6303
6567
|
const results = createNewCurrentTask({
|
|
6304
|
-
componentIdx: -1,
|
|
6568
|
+
componentIdx: -1,
|
|
6305
6569
|
isAsync: false,
|
|
6306
6570
|
entryFnName: 'readDirectory',
|
|
6307
6571
|
getCallbackFn: () => null,
|
|
6308
|
-
callbackFnName:
|
|
6572
|
+
callbackFnName: null,
|
|
6309
6573
|
errHandling: 'result-catch-handler',
|
|
6310
6574
|
callingWasmExport: false,
|
|
6311
6575
|
});
|
|
@@ -6313,7 +6577,11 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6313
6577
|
};
|
|
6314
6578
|
|
|
6315
6579
|
taskCreation: {
|
|
6316
|
-
parentTask = getCurrentTask(
|
|
6580
|
+
parentTask = getCurrentTask(
|
|
6581
|
+
0,
|
|
6582
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6583
|
+
)?.task;
|
|
6584
|
+
|
|
6317
6585
|
if (!parentTask) {
|
|
6318
6586
|
createTask();
|
|
6319
6587
|
break taskCreation;
|
|
@@ -6337,7 +6605,7 @@ const _trampoline20 = function(arg0, arg1) {
|
|
|
6337
6605
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6338
6606
|
componentIdx: task.componentIdx(),
|
|
6339
6607
|
taskID: task.id(),
|
|
6340
|
-
fn: () => rsc0.readDirectory()
|
|
6608
|
+
fn: () => rsc0.readDirectory(),
|
|
6341
6609
|
})
|
|
6342
6610
|
};
|
|
6343
6611
|
} catch (e) {
|
|
@@ -6571,11 +6839,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6571
6839
|
|
|
6572
6840
|
const createTask = () => {
|
|
6573
6841
|
const results = createNewCurrentTask({
|
|
6574
|
-
componentIdx: -1,
|
|
6842
|
+
componentIdx: -1,
|
|
6575
6843
|
isAsync: false,
|
|
6576
6844
|
entryFnName: 'stat',
|
|
6577
6845
|
getCallbackFn: () => null,
|
|
6578
|
-
callbackFnName:
|
|
6846
|
+
callbackFnName: null,
|
|
6579
6847
|
errHandling: 'result-catch-handler',
|
|
6580
6848
|
callingWasmExport: false,
|
|
6581
6849
|
});
|
|
@@ -6583,7 +6851,11 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6583
6851
|
};
|
|
6584
6852
|
|
|
6585
6853
|
taskCreation: {
|
|
6586
|
-
parentTask = getCurrentTask(
|
|
6854
|
+
parentTask = getCurrentTask(
|
|
6855
|
+
0,
|
|
6856
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
6857
|
+
)?.task;
|
|
6858
|
+
|
|
6587
6859
|
if (!parentTask) {
|
|
6588
6860
|
createTask();
|
|
6589
6861
|
break taskCreation;
|
|
@@ -6607,7 +6879,7 @@ const _trampoline21 = function(arg0, arg1) {
|
|
|
6607
6879
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6608
6880
|
componentIdx: task.componentIdx(),
|
|
6609
6881
|
taskID: task.id(),
|
|
6610
|
-
fn: () => rsc0.stat()
|
|
6882
|
+
fn: () => rsc0.stat(),
|
|
6611
6883
|
})
|
|
6612
6884
|
};
|
|
6613
6885
|
} catch (e) {
|
|
@@ -6915,11 +7187,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6915
7187
|
|
|
6916
7188
|
const createTask = () => {
|
|
6917
7189
|
const results = createNewCurrentTask({
|
|
6918
|
-
componentIdx: -1,
|
|
7190
|
+
componentIdx: -1,
|
|
6919
7191
|
isAsync: false,
|
|
6920
7192
|
entryFnName: 'statAt',
|
|
6921
7193
|
getCallbackFn: () => null,
|
|
6922
|
-
callbackFnName:
|
|
7194
|
+
callbackFnName: null,
|
|
6923
7195
|
errHandling: 'result-catch-handler',
|
|
6924
7196
|
callingWasmExport: false,
|
|
6925
7197
|
});
|
|
@@ -6927,7 +7199,11 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6927
7199
|
};
|
|
6928
7200
|
|
|
6929
7201
|
taskCreation: {
|
|
6930
|
-
parentTask = getCurrentTask(
|
|
7202
|
+
parentTask = getCurrentTask(
|
|
7203
|
+
0,
|
|
7204
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7205
|
+
)?.task;
|
|
7206
|
+
|
|
6931
7207
|
if (!parentTask) {
|
|
6932
7208
|
createTask();
|
|
6933
7209
|
break taskCreation;
|
|
@@ -6951,7 +7227,7 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
|
|
|
6951
7227
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
6952
7228
|
componentIdx: task.componentIdx(),
|
|
6953
7229
|
taskID: task.id(),
|
|
6954
|
-
fn: () => rsc0.statAt(flags3, result4)
|
|
7230
|
+
fn: () => rsc0.statAt(flags3, result4),
|
|
6955
7231
|
})
|
|
6956
7232
|
};
|
|
6957
7233
|
} catch (e) {
|
|
@@ -7279,11 +7555,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7279
7555
|
|
|
7280
7556
|
const createTask = () => {
|
|
7281
7557
|
const results = createNewCurrentTask({
|
|
7282
|
-
componentIdx: -1,
|
|
7558
|
+
componentIdx: -1,
|
|
7283
7559
|
isAsync: false,
|
|
7284
7560
|
entryFnName: 'openAt',
|
|
7285
7561
|
getCallbackFn: () => null,
|
|
7286
|
-
callbackFnName:
|
|
7562
|
+
callbackFnName: null,
|
|
7287
7563
|
errHandling: 'result-catch-handler',
|
|
7288
7564
|
callingWasmExport: false,
|
|
7289
7565
|
});
|
|
@@ -7291,7 +7567,11 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7291
7567
|
};
|
|
7292
7568
|
|
|
7293
7569
|
taskCreation: {
|
|
7294
|
-
parentTask = getCurrentTask(
|
|
7570
|
+
parentTask = getCurrentTask(
|
|
7571
|
+
0,
|
|
7572
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7573
|
+
)?.task;
|
|
7574
|
+
|
|
7295
7575
|
if (!parentTask) {
|
|
7296
7576
|
createTask();
|
|
7297
7577
|
break taskCreation;
|
|
@@ -7315,7 +7595,7 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
|
7315
7595
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7316
7596
|
componentIdx: task.componentIdx(),
|
|
7317
7597
|
taskID: task.id(),
|
|
7318
|
-
fn: () => rsc0.openAt(flags3, result4, flags5, flags6)
|
|
7598
|
+
fn: () => rsc0.openAt(flags3, result4, flags5, flags6),
|
|
7319
7599
|
})
|
|
7320
7600
|
};
|
|
7321
7601
|
} catch (e) {
|
|
@@ -7549,11 +7829,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7549
7829
|
|
|
7550
7830
|
const createTask = () => {
|
|
7551
7831
|
const results = createNewCurrentTask({
|
|
7552
|
-
componentIdx: -1,
|
|
7832
|
+
componentIdx: -1,
|
|
7553
7833
|
isAsync: false,
|
|
7554
7834
|
entryFnName: 'readDirectoryEntry',
|
|
7555
7835
|
getCallbackFn: () => null,
|
|
7556
|
-
callbackFnName:
|
|
7836
|
+
callbackFnName: null,
|
|
7557
7837
|
errHandling: 'result-catch-handler',
|
|
7558
7838
|
callingWasmExport: false,
|
|
7559
7839
|
});
|
|
@@ -7561,7 +7841,11 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7561
7841
|
};
|
|
7562
7842
|
|
|
7563
7843
|
taskCreation: {
|
|
7564
|
-
parentTask = getCurrentTask(
|
|
7844
|
+
parentTask = getCurrentTask(
|
|
7845
|
+
0,
|
|
7846
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
7847
|
+
)?.task;
|
|
7848
|
+
|
|
7565
7849
|
if (!parentTask) {
|
|
7566
7850
|
createTask();
|
|
7567
7851
|
break taskCreation;
|
|
@@ -7585,7 +7869,7 @@ const _trampoline24 = function(arg0, arg1) {
|
|
|
7585
7869
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7586
7870
|
componentIdx: task.componentIdx(),
|
|
7587
7871
|
taskID: task.id(),
|
|
7588
|
-
fn: () => rsc0.readDirectoryEntry()
|
|
7872
|
+
fn: () => rsc0.readDirectoryEntry(),
|
|
7589
7873
|
})
|
|
7590
7874
|
};
|
|
7591
7875
|
} catch (e) {
|
|
@@ -7866,11 +8150,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7866
8150
|
|
|
7867
8151
|
const createTask = () => {
|
|
7868
8152
|
const results = createNewCurrentTask({
|
|
7869
|
-
componentIdx: -1,
|
|
8153
|
+
componentIdx: -1,
|
|
7870
8154
|
isAsync: false,
|
|
7871
8155
|
entryFnName: 'read',
|
|
7872
8156
|
getCallbackFn: () => null,
|
|
7873
|
-
callbackFnName:
|
|
8157
|
+
callbackFnName: null,
|
|
7874
8158
|
errHandling: 'result-catch-handler',
|
|
7875
8159
|
callingWasmExport: false,
|
|
7876
8160
|
});
|
|
@@ -7878,7 +8162,11 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7878
8162
|
};
|
|
7879
8163
|
|
|
7880
8164
|
taskCreation: {
|
|
7881
|
-
parentTask = getCurrentTask(
|
|
8165
|
+
parentTask = getCurrentTask(
|
|
8166
|
+
0,
|
|
8167
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8168
|
+
)?.task;
|
|
8169
|
+
|
|
7882
8170
|
if (!parentTask) {
|
|
7883
8171
|
createTask();
|
|
7884
8172
|
break taskCreation;
|
|
@@ -7902,7 +8190,7 @@ const _trampoline25 = function(arg0, arg1, arg2) {
|
|
|
7902
8190
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
7903
8191
|
componentIdx: task.componentIdx(),
|
|
7904
8192
|
taskID: task.id(),
|
|
7905
|
-
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1)))
|
|
8193
|
+
fn: () => rsc0.read(BigInt.asUintN(64, BigInt(arg1))),
|
|
7906
8194
|
})
|
|
7907
8195
|
};
|
|
7908
8196
|
} catch (e) {
|
|
@@ -8015,11 +8303,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8015
8303
|
|
|
8016
8304
|
const createTask = () => {
|
|
8017
8305
|
const results = createNewCurrentTask({
|
|
8018
|
-
componentIdx: -1,
|
|
8306
|
+
componentIdx: -1,
|
|
8019
8307
|
isAsync: false,
|
|
8020
8308
|
entryFnName: 'blockingRead',
|
|
8021
8309
|
getCallbackFn: () => null,
|
|
8022
|
-
callbackFnName:
|
|
8310
|
+
callbackFnName: null,
|
|
8023
8311
|
errHandling: 'result-catch-handler',
|
|
8024
8312
|
callingWasmExport: false,
|
|
8025
8313
|
});
|
|
@@ -8027,7 +8315,11 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8027
8315
|
};
|
|
8028
8316
|
|
|
8029
8317
|
taskCreation: {
|
|
8030
|
-
parentTask = getCurrentTask(
|
|
8318
|
+
parentTask = getCurrentTask(
|
|
8319
|
+
0,
|
|
8320
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8321
|
+
)?.task;
|
|
8322
|
+
|
|
8031
8323
|
if (!parentTask) {
|
|
8032
8324
|
createTask();
|
|
8033
8325
|
break taskCreation;
|
|
@@ -8051,7 +8343,7 @@ const _trampoline26 = function(arg0, arg1, arg2) {
|
|
|
8051
8343
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8052
8344
|
componentIdx: task.componentIdx(),
|
|
8053
8345
|
taskID: task.id(),
|
|
8054
|
-
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1)))
|
|
8346
|
+
fn: () => rsc0.blockingRead(BigInt.asUintN(64, BigInt(arg1))),
|
|
8055
8347
|
})
|
|
8056
8348
|
};
|
|
8057
8349
|
} catch (e) {
|
|
@@ -8164,11 +8456,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8164
8456
|
|
|
8165
8457
|
const createTask = () => {
|
|
8166
8458
|
const results = createNewCurrentTask({
|
|
8167
|
-
componentIdx: -1,
|
|
8459
|
+
componentIdx: -1,
|
|
8168
8460
|
isAsync: false,
|
|
8169
8461
|
entryFnName: 'checkWrite',
|
|
8170
8462
|
getCallbackFn: () => null,
|
|
8171
|
-
callbackFnName:
|
|
8463
|
+
callbackFnName: null,
|
|
8172
8464
|
errHandling: 'result-catch-handler',
|
|
8173
8465
|
callingWasmExport: false,
|
|
8174
8466
|
});
|
|
@@ -8176,7 +8468,11 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8176
8468
|
};
|
|
8177
8469
|
|
|
8178
8470
|
taskCreation: {
|
|
8179
|
-
parentTask = getCurrentTask(
|
|
8471
|
+
parentTask = getCurrentTask(
|
|
8472
|
+
0,
|
|
8473
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8474
|
+
)?.task;
|
|
8475
|
+
|
|
8180
8476
|
if (!parentTask) {
|
|
8181
8477
|
createTask();
|
|
8182
8478
|
break taskCreation;
|
|
@@ -8200,7 +8496,7 @@ const _trampoline27 = function(arg0, arg1) {
|
|
|
8200
8496
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8201
8497
|
componentIdx: task.componentIdx(),
|
|
8202
8498
|
taskID: task.id(),
|
|
8203
|
-
fn: () => rsc0.checkWrite()
|
|
8499
|
+
fn: () => rsc0.checkWrite(),
|
|
8204
8500
|
})
|
|
8205
8501
|
};
|
|
8206
8502
|
} catch (e) {
|
|
@@ -8293,11 +8589,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8293
8589
|
|
|
8294
8590
|
const createTask = () => {
|
|
8295
8591
|
const results = createNewCurrentTask({
|
|
8296
|
-
componentIdx: -1,
|
|
8592
|
+
componentIdx: -1,
|
|
8297
8593
|
isAsync: false,
|
|
8298
8594
|
entryFnName: 'write',
|
|
8299
8595
|
getCallbackFn: () => null,
|
|
8300
|
-
callbackFnName:
|
|
8596
|
+
callbackFnName: null,
|
|
8301
8597
|
errHandling: 'result-catch-handler',
|
|
8302
8598
|
callingWasmExport: false,
|
|
8303
8599
|
});
|
|
@@ -8305,7 +8601,11 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8305
8601
|
};
|
|
8306
8602
|
|
|
8307
8603
|
taskCreation: {
|
|
8308
|
-
parentTask = getCurrentTask(
|
|
8604
|
+
parentTask = getCurrentTask(
|
|
8605
|
+
0,
|
|
8606
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8607
|
+
)?.task;
|
|
8608
|
+
|
|
8309
8609
|
if (!parentTask) {
|
|
8310
8610
|
createTask();
|
|
8311
8611
|
break taskCreation;
|
|
@@ -8329,7 +8629,7 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
|
|
|
8329
8629
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8330
8630
|
componentIdx: task.componentIdx(),
|
|
8331
8631
|
taskID: task.id(),
|
|
8332
|
-
fn: () => rsc0.write(result3)
|
|
8632
|
+
fn: () => rsc0.write(result3),
|
|
8333
8633
|
})
|
|
8334
8634
|
};
|
|
8335
8635
|
} catch (e) {
|
|
@@ -8421,11 +8721,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8421
8721
|
|
|
8422
8722
|
const createTask = () => {
|
|
8423
8723
|
const results = createNewCurrentTask({
|
|
8424
|
-
componentIdx: -1,
|
|
8724
|
+
componentIdx: -1,
|
|
8425
8725
|
isAsync: false,
|
|
8426
8726
|
entryFnName: 'blockingWriteAndFlush',
|
|
8427
8727
|
getCallbackFn: () => null,
|
|
8428
|
-
callbackFnName:
|
|
8728
|
+
callbackFnName: null,
|
|
8429
8729
|
errHandling: 'result-catch-handler',
|
|
8430
8730
|
callingWasmExport: false,
|
|
8431
8731
|
});
|
|
@@ -8433,7 +8733,11 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8433
8733
|
};
|
|
8434
8734
|
|
|
8435
8735
|
taskCreation: {
|
|
8436
|
-
parentTask = getCurrentTask(
|
|
8736
|
+
parentTask = getCurrentTask(
|
|
8737
|
+
0,
|
|
8738
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8739
|
+
)?.task;
|
|
8740
|
+
|
|
8437
8741
|
if (!parentTask) {
|
|
8438
8742
|
createTask();
|
|
8439
8743
|
break taskCreation;
|
|
@@ -8457,7 +8761,7 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
|
|
|
8457
8761
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8458
8762
|
componentIdx: task.componentIdx(),
|
|
8459
8763
|
taskID: task.id(),
|
|
8460
|
-
fn: () => rsc0.blockingWriteAndFlush(result3)
|
|
8764
|
+
fn: () => rsc0.blockingWriteAndFlush(result3),
|
|
8461
8765
|
})
|
|
8462
8766
|
};
|
|
8463
8767
|
} catch (e) {
|
|
@@ -8546,11 +8850,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8546
8850
|
|
|
8547
8851
|
const createTask = () => {
|
|
8548
8852
|
const results = createNewCurrentTask({
|
|
8549
|
-
componentIdx: -1,
|
|
8853
|
+
componentIdx: -1,
|
|
8550
8854
|
isAsync: false,
|
|
8551
8855
|
entryFnName: 'blockingFlush',
|
|
8552
8856
|
getCallbackFn: () => null,
|
|
8553
|
-
callbackFnName:
|
|
8857
|
+
callbackFnName: null,
|
|
8554
8858
|
errHandling: 'result-catch-handler',
|
|
8555
8859
|
callingWasmExport: false,
|
|
8556
8860
|
});
|
|
@@ -8558,7 +8862,11 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8558
8862
|
};
|
|
8559
8863
|
|
|
8560
8864
|
taskCreation: {
|
|
8561
|
-
parentTask = getCurrentTask(
|
|
8865
|
+
parentTask = getCurrentTask(
|
|
8866
|
+
0,
|
|
8867
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8868
|
+
)?.task;
|
|
8869
|
+
|
|
8562
8870
|
if (!parentTask) {
|
|
8563
8871
|
createTask();
|
|
8564
8872
|
break taskCreation;
|
|
@@ -8582,7 +8890,7 @@ const _trampoline30 = function(arg0, arg1) {
|
|
|
8582
8890
|
ret = { tag: 'ok', val: _withGlobalCurrentTaskMeta({
|
|
8583
8891
|
componentIdx: task.componentIdx(),
|
|
8584
8892
|
taskID: task.id(),
|
|
8585
|
-
fn: () => rsc0.blockingFlush()
|
|
8893
|
+
fn: () => rsc0.blockingFlush(),
|
|
8586
8894
|
})
|
|
8587
8895
|
};
|
|
8588
8896
|
} catch (e) {
|
|
@@ -8660,11 +8968,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8660
8968
|
|
|
8661
8969
|
const createTask = () => {
|
|
8662
8970
|
const results = createNewCurrentTask({
|
|
8663
|
-
componentIdx: -1,
|
|
8971
|
+
componentIdx: -1,
|
|
8664
8972
|
isAsync: false,
|
|
8665
8973
|
entryFnName: 'getRandomBytes',
|
|
8666
8974
|
getCallbackFn: () => null,
|
|
8667
|
-
callbackFnName:
|
|
8975
|
+
callbackFnName: null,
|
|
8668
8976
|
errHandling: 'none',
|
|
8669
8977
|
callingWasmExport: false,
|
|
8670
8978
|
});
|
|
@@ -8672,7 +8980,11 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8672
8980
|
};
|
|
8673
8981
|
|
|
8674
8982
|
taskCreation: {
|
|
8675
|
-
parentTask = getCurrentTask(
|
|
8983
|
+
parentTask = getCurrentTask(
|
|
8984
|
+
0,
|
|
8985
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
8986
|
+
)?.task;
|
|
8987
|
+
|
|
8676
8988
|
if (!parentTask) {
|
|
8677
8989
|
createTask();
|
|
8678
8990
|
break taskCreation;
|
|
@@ -8690,12 +9002,25 @@ const _trampoline31 = function(arg0, arg1) {
|
|
|
8690
9002
|
}
|
|
8691
9003
|
|
|
8692
9004
|
const started = task.enterSync();
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
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
|
+
|
|
8699
9024
|
var val0 = ret;
|
|
8700
9025
|
var len0 = Array.isArray(val0) ? val0.length : val0.byteLength;
|
|
8701
9026
|
var ptr0 = realloc0(0, 0, 1, len0 * 1);
|
|
@@ -8741,11 +9066,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8741
9066
|
|
|
8742
9067
|
const createTask = () => {
|
|
8743
9068
|
const results = createNewCurrentTask({
|
|
8744
|
-
componentIdx: -1,
|
|
9069
|
+
componentIdx: -1,
|
|
8745
9070
|
isAsync: false,
|
|
8746
9071
|
entryFnName: 'getDirectories',
|
|
8747
9072
|
getCallbackFn: () => null,
|
|
8748
|
-
callbackFnName:
|
|
9073
|
+
callbackFnName: null,
|
|
8749
9074
|
errHandling: 'none',
|
|
8750
9075
|
callingWasmExport: false,
|
|
8751
9076
|
});
|
|
@@ -8753,7 +9078,11 @@ const _trampoline32 = function(arg0) {
|
|
|
8753
9078
|
};
|
|
8754
9079
|
|
|
8755
9080
|
taskCreation: {
|
|
8756
|
-
parentTask = getCurrentTask(
|
|
9081
|
+
parentTask = getCurrentTask(
|
|
9082
|
+
0,
|
|
9083
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9084
|
+
)?.task;
|
|
9085
|
+
|
|
8757
9086
|
if (!parentTask) {
|
|
8758
9087
|
createTask();
|
|
8759
9088
|
break taskCreation;
|
|
@@ -8771,12 +9100,25 @@ const _trampoline32 = function(arg0) {
|
|
|
8771
9100
|
}
|
|
8772
9101
|
|
|
8773
9102
|
const started = task.enterSync();
|
|
8774
|
-
|
|
8775
|
-
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
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
|
+
|
|
8780
9122
|
var vec3 = ret;
|
|
8781
9123
|
var len3 = vec3.length;
|
|
8782
9124
|
var result3 = realloc0(0, 0, 4, len3 * 12);
|
|
@@ -8830,11 +9172,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8830
9172
|
|
|
8831
9173
|
const createTask = () => {
|
|
8832
9174
|
const results = createNewCurrentTask({
|
|
8833
|
-
componentIdx: -1,
|
|
9175
|
+
componentIdx: -1,
|
|
8834
9176
|
isAsync: false,
|
|
8835
9177
|
entryFnName: 'getTerminalStdin',
|
|
8836
9178
|
getCallbackFn: () => null,
|
|
8837
|
-
callbackFnName:
|
|
9179
|
+
callbackFnName: null,
|
|
8838
9180
|
errHandling: 'none',
|
|
8839
9181
|
callingWasmExport: false,
|
|
8840
9182
|
});
|
|
@@ -8842,7 +9184,11 @@ const _trampoline33 = function(arg0) {
|
|
|
8842
9184
|
};
|
|
8843
9185
|
|
|
8844
9186
|
taskCreation: {
|
|
8845
|
-
parentTask = getCurrentTask(
|
|
9187
|
+
parentTask = getCurrentTask(
|
|
9188
|
+
0,
|
|
9189
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9190
|
+
)?.task;
|
|
9191
|
+
|
|
8846
9192
|
if (!parentTask) {
|
|
8847
9193
|
createTask();
|
|
8848
9194
|
break taskCreation;
|
|
@@ -8860,12 +9206,25 @@ const _trampoline33 = function(arg0) {
|
|
|
8860
9206
|
}
|
|
8861
9207
|
|
|
8862
9208
|
const started = task.enterSync();
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
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
|
+
|
|
8869
9228
|
var variant1 = ret;
|
|
8870
9229
|
if (variant1 === null || variant1=== undefined) {
|
|
8871
9230
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8910,11 +9269,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8910
9269
|
|
|
8911
9270
|
const createTask = () => {
|
|
8912
9271
|
const results = createNewCurrentTask({
|
|
8913
|
-
componentIdx: -1,
|
|
9272
|
+
componentIdx: -1,
|
|
8914
9273
|
isAsync: false,
|
|
8915
9274
|
entryFnName: 'getTerminalStdout',
|
|
8916
9275
|
getCallbackFn: () => null,
|
|
8917
|
-
callbackFnName:
|
|
9276
|
+
callbackFnName: null,
|
|
8918
9277
|
errHandling: 'none',
|
|
8919
9278
|
callingWasmExport: false,
|
|
8920
9279
|
});
|
|
@@ -8922,7 +9281,11 @@ const _trampoline34 = function(arg0) {
|
|
|
8922
9281
|
};
|
|
8923
9282
|
|
|
8924
9283
|
taskCreation: {
|
|
8925
|
-
parentTask = getCurrentTask(
|
|
9284
|
+
parentTask = getCurrentTask(
|
|
9285
|
+
0,
|
|
9286
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9287
|
+
)?.task;
|
|
9288
|
+
|
|
8926
9289
|
if (!parentTask) {
|
|
8927
9290
|
createTask();
|
|
8928
9291
|
break taskCreation;
|
|
@@ -8940,12 +9303,25 @@ const _trampoline34 = function(arg0) {
|
|
|
8940
9303
|
}
|
|
8941
9304
|
|
|
8942
9305
|
const started = task.enterSync();
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
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
|
+
|
|
8949
9325
|
var variant1 = ret;
|
|
8950
9326
|
if (variant1 === null || variant1=== undefined) {
|
|
8951
9327
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -8986,11 +9362,11 @@ const _trampoline35 = function(arg0) {
|
|
|
8986
9362
|
|
|
8987
9363
|
const createTask = () => {
|
|
8988
9364
|
const results = createNewCurrentTask({
|
|
8989
|
-
componentIdx: -1,
|
|
9365
|
+
componentIdx: -1,
|
|
8990
9366
|
isAsync: false,
|
|
8991
9367
|
entryFnName: 'getTerminalStderr',
|
|
8992
9368
|
getCallbackFn: () => null,
|
|
8993
|
-
callbackFnName:
|
|
9369
|
+
callbackFnName: null,
|
|
8994
9370
|
errHandling: 'none',
|
|
8995
9371
|
callingWasmExport: false,
|
|
8996
9372
|
});
|
|
@@ -8998,7 +9374,11 @@ const _trampoline35 = function(arg0) {
|
|
|
8998
9374
|
};
|
|
8999
9375
|
|
|
9000
9376
|
taskCreation: {
|
|
9001
|
-
parentTask = getCurrentTask(
|
|
9377
|
+
parentTask = getCurrentTask(
|
|
9378
|
+
0,
|
|
9379
|
+
_getGlobalCurrentTaskMeta(0)?.taskID,
|
|
9380
|
+
)?.task;
|
|
9381
|
+
|
|
9002
9382
|
if (!parentTask) {
|
|
9003
9383
|
createTask();
|
|
9004
9384
|
break taskCreation;
|
|
@@ -9016,12 +9396,25 @@ const _trampoline35 = function(arg0) {
|
|
|
9016
9396
|
}
|
|
9017
9397
|
|
|
9018
9398
|
const started = task.enterSync();
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
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
|
+
|
|
9025
9418
|
var variant1 = ret;
|
|
9026
9419
|
if (variant1 === null || variant1=== undefined) {
|
|
9027
9420
|
dataView(memory0).setInt8(arg0 + 0, 0, true);
|
|
@@ -9083,19 +9476,35 @@ function parse(arg0) {
|
|
|
9083
9476
|
isManualAsync: false,
|
|
9084
9477
|
entryFnName: 'toolsParse',
|
|
9085
9478
|
getCallbackFn: () => null,
|
|
9086
|
-
callbackFnName:
|
|
9479
|
+
callbackFnName: null,
|
|
9087
9480
|
errHandling: 'throw-result-err',
|
|
9088
9481
|
callingWasmExport: true,
|
|
9089
9482
|
});
|
|
9090
9483
|
|
|
9091
9484
|
const started = task.enterSync();
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9485
|
+
|
|
9486
|
+
if (0!== null) {
|
|
9487
|
+
task.setReturnMemoryIdx(0);
|
|
9488
|
+
task.setReturnMemory(() => memory0());
|
|
9489
|
+
}
|
|
9490
|
+
|
|
9491
|
+
|
|
9492
|
+
let ret;
|
|
9493
|
+
|
|
9494
|
+
try {
|
|
9495
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9496
|
+
taskID: task.id(),
|
|
9497
|
+
componentIdx: task.componentIdx(),
|
|
9498
|
+
fn: () => toolsParse(ptr0, len0),
|
|
9499
|
+
});
|
|
9500
|
+
} catch (err) {
|
|
9501
|
+
|
|
9502
|
+
task.setErrored(err);
|
|
9503
|
+
task.reject(err);
|
|
9504
|
+
task.exit();
|
|
9505
|
+
throw err;
|
|
9506
|
+
|
|
9507
|
+
}
|
|
9099
9508
|
|
|
9100
9509
|
let variant3;
|
|
9101
9510
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9186,19 +9595,35 @@ function print(arg0) {
|
|
|
9186
9595
|
isManualAsync: false,
|
|
9187
9596
|
entryFnName: 'toolsPrint',
|
|
9188
9597
|
getCallbackFn: () => null,
|
|
9189
|
-
callbackFnName:
|
|
9598
|
+
callbackFnName: null,
|
|
9190
9599
|
errHandling: 'throw-result-err',
|
|
9191
9600
|
callingWasmExport: true,
|
|
9192
9601
|
});
|
|
9193
9602
|
|
|
9194
9603
|
const started = task.enterSync();
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9604
|
+
|
|
9605
|
+
if (0!== null) {
|
|
9606
|
+
task.setReturnMemoryIdx(0);
|
|
9607
|
+
task.setReturnMemory(() => memory0());
|
|
9608
|
+
}
|
|
9609
|
+
|
|
9610
|
+
|
|
9611
|
+
let ret;
|
|
9612
|
+
|
|
9613
|
+
try {
|
|
9614
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9615
|
+
taskID: task.id(),
|
|
9616
|
+
componentIdx: task.componentIdx(),
|
|
9617
|
+
fn: () => toolsPrint(ptr0, len0),
|
|
9618
|
+
});
|
|
9619
|
+
} catch (err) {
|
|
9620
|
+
|
|
9621
|
+
task.setErrored(err);
|
|
9622
|
+
task.reject(err);
|
|
9623
|
+
task.exit();
|
|
9624
|
+
throw err;
|
|
9625
|
+
|
|
9626
|
+
}
|
|
9202
9627
|
|
|
9203
9628
|
let variant3;
|
|
9204
9629
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9341,19 +9766,35 @@ function componentNew(arg0, arg1) {
|
|
|
9341
9766
|
isManualAsync: false,
|
|
9342
9767
|
entryFnName: 'toolsComponentNew',
|
|
9343
9768
|
getCallbackFn: () => null,
|
|
9344
|
-
callbackFnName:
|
|
9769
|
+
callbackFnName: null,
|
|
9345
9770
|
errHandling: 'throw-result-err',
|
|
9346
9771
|
callingWasmExport: true,
|
|
9347
9772
|
});
|
|
9348
9773
|
|
|
9349
9774
|
const started = task.enterSync();
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9775
|
+
|
|
9776
|
+
if (0!== null) {
|
|
9777
|
+
task.setReturnMemoryIdx(0);
|
|
9778
|
+
task.setReturnMemory(() => memory0());
|
|
9779
|
+
}
|
|
9780
|
+
|
|
9781
|
+
|
|
9782
|
+
let ret;
|
|
9783
|
+
|
|
9784
|
+
try {
|
|
9785
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9786
|
+
taskID: task.id(),
|
|
9787
|
+
componentIdx: task.componentIdx(),
|
|
9788
|
+
fn: () => toolsComponentNew(ptr0, len0, variant5_0, variant5_1, variant5_2),
|
|
9789
|
+
});
|
|
9790
|
+
} catch (err) {
|
|
9791
|
+
|
|
9792
|
+
task.setErrored(err);
|
|
9793
|
+
task.reject(err);
|
|
9794
|
+
task.exit();
|
|
9795
|
+
throw err;
|
|
9796
|
+
|
|
9797
|
+
}
|
|
9357
9798
|
|
|
9358
9799
|
let variant8;
|
|
9359
9800
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9444,19 +9885,35 @@ function componentWit(arg0) {
|
|
|
9444
9885
|
isManualAsync: false,
|
|
9445
9886
|
entryFnName: 'toolsComponentWit',
|
|
9446
9887
|
getCallbackFn: () => null,
|
|
9447
|
-
callbackFnName:
|
|
9888
|
+
callbackFnName: null,
|
|
9448
9889
|
errHandling: 'throw-result-err',
|
|
9449
9890
|
callingWasmExport: true,
|
|
9450
9891
|
});
|
|
9451
9892
|
|
|
9452
9893
|
const started = task.enterSync();
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9894
|
+
|
|
9895
|
+
if (0!== null) {
|
|
9896
|
+
task.setReturnMemoryIdx(0);
|
|
9897
|
+
task.setReturnMemory(() => memory0());
|
|
9898
|
+
}
|
|
9899
|
+
|
|
9900
|
+
|
|
9901
|
+
let ret;
|
|
9902
|
+
|
|
9903
|
+
try {
|
|
9904
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9905
|
+
taskID: task.id(),
|
|
9906
|
+
componentIdx: task.componentIdx(),
|
|
9907
|
+
fn: () => toolsComponentWit(ptr0, len0),
|
|
9908
|
+
});
|
|
9909
|
+
} catch (err) {
|
|
9910
|
+
|
|
9911
|
+
task.setErrored(err);
|
|
9912
|
+
task.reject(err);
|
|
9913
|
+
task.exit();
|
|
9914
|
+
throw err;
|
|
9915
|
+
|
|
9916
|
+
}
|
|
9460
9917
|
|
|
9461
9918
|
let variant3;
|
|
9462
9919
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9577,19 +10034,35 @@ function componentWitMetadataForWorld(arg0, arg1) {
|
|
|
9577
10034
|
isManualAsync: false,
|
|
9578
10035
|
entryFnName: 'toolsComponentWitMetadataForWorld',
|
|
9579
10036
|
getCallbackFn: () => null,
|
|
9580
|
-
callbackFnName:
|
|
10037
|
+
callbackFnName: null,
|
|
9581
10038
|
errHandling: 'throw-result-err',
|
|
9582
10039
|
callingWasmExport: true,
|
|
9583
10040
|
});
|
|
9584
10041
|
|
|
9585
10042
|
const started = task.enterSync();
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
10043
|
+
|
|
10044
|
+
if (0!== null) {
|
|
10045
|
+
task.setReturnMemoryIdx(0);
|
|
10046
|
+
task.setReturnMemory(() => memory0());
|
|
10047
|
+
}
|
|
10048
|
+
|
|
10049
|
+
|
|
10050
|
+
let ret;
|
|
10051
|
+
|
|
10052
|
+
try {
|
|
10053
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10054
|
+
taskID: task.id(),
|
|
10055
|
+
componentIdx: task.componentIdx(),
|
|
10056
|
+
fn: () => toolsComponentWitMetadataForWorld(variant2_0, variant2_1, variant2_2, variant4_0, variant4_1, variant4_2),
|
|
10057
|
+
});
|
|
10058
|
+
} catch (err) {
|
|
10059
|
+
|
|
10060
|
+
task.setErrored(err);
|
|
10061
|
+
task.reject(err);
|
|
10062
|
+
task.exit();
|
|
10063
|
+
throw err;
|
|
10064
|
+
|
|
10065
|
+
}
|
|
9593
10066
|
|
|
9594
10067
|
let variant24;
|
|
9595
10068
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10005,19 +10478,35 @@ function componentEmbed(arg0) {
|
|
|
10005
10478
|
isManualAsync: false,
|
|
10006
10479
|
entryFnName: 'toolsComponentEmbed',
|
|
10007
10480
|
getCallbackFn: () => null,
|
|
10008
|
-
callbackFnName:
|
|
10481
|
+
callbackFnName: null,
|
|
10009
10482
|
errHandling: 'throw-result-err',
|
|
10010
10483
|
callingWasmExport: true,
|
|
10011
10484
|
});
|
|
10012
10485
|
|
|
10013
10486
|
const started = task.enterSync();
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10487
|
+
|
|
10488
|
+
if (0!== null) {
|
|
10489
|
+
task.setReturnMemoryIdx(0);
|
|
10490
|
+
task.setReturnMemory(() => memory0());
|
|
10491
|
+
}
|
|
10492
|
+
|
|
10493
|
+
|
|
10494
|
+
let ret;
|
|
10495
|
+
|
|
10496
|
+
try {
|
|
10497
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10498
|
+
taskID: task.id(),
|
|
10499
|
+
componentIdx: task.componentIdx(),
|
|
10500
|
+
fn: () => toolsComponentEmbed(ptr0),
|
|
10501
|
+
});
|
|
10502
|
+
} catch (err) {
|
|
10503
|
+
|
|
10504
|
+
task.setErrored(err);
|
|
10505
|
+
task.reject(err);
|
|
10506
|
+
task.exit();
|
|
10507
|
+
throw err;
|
|
10508
|
+
|
|
10509
|
+
}
|
|
10021
10510
|
|
|
10022
10511
|
let variant27;
|
|
10023
10512
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10108,19 +10597,35 @@ function metadataShow(arg0) {
|
|
|
10108
10597
|
isManualAsync: false,
|
|
10109
10598
|
entryFnName: 'toolsMetadataShow',
|
|
10110
10599
|
getCallbackFn: () => null,
|
|
10111
|
-
callbackFnName:
|
|
10600
|
+
callbackFnName: null,
|
|
10112
10601
|
errHandling: 'throw-result-err',
|
|
10113
10602
|
callingWasmExport: true,
|
|
10114
10603
|
});
|
|
10115
10604
|
|
|
10116
10605
|
const started = task.enterSync();
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10606
|
+
|
|
10607
|
+
if (0!== null) {
|
|
10608
|
+
task.setReturnMemoryIdx(0);
|
|
10609
|
+
task.setReturnMemory(() => memory0());
|
|
10610
|
+
}
|
|
10611
|
+
|
|
10612
|
+
|
|
10613
|
+
let ret;
|
|
10614
|
+
|
|
10615
|
+
try {
|
|
10616
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10617
|
+
taskID: task.id(),
|
|
10618
|
+
componentIdx: task.componentIdx(),
|
|
10619
|
+
fn: () => toolsMetadataShow(ptr0, len0),
|
|
10620
|
+
});
|
|
10621
|
+
} catch (err) {
|
|
10622
|
+
|
|
10623
|
+
task.setErrored(err);
|
|
10624
|
+
task.reject(err);
|
|
10625
|
+
task.exit();
|
|
10626
|
+
throw err;
|
|
10627
|
+
|
|
10628
|
+
}
|
|
10124
10629
|
|
|
10125
10630
|
let variant12;
|
|
10126
10631
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10331,19 +10836,35 @@ function metadataAdd(arg0, arg1) {
|
|
|
10331
10836
|
isManualAsync: false,
|
|
10332
10837
|
entryFnName: 'toolsMetadataAdd',
|
|
10333
10838
|
getCallbackFn: () => null,
|
|
10334
|
-
callbackFnName:
|
|
10839
|
+
callbackFnName: null,
|
|
10335
10840
|
errHandling: 'throw-result-err',
|
|
10336
10841
|
callingWasmExport: true,
|
|
10337
10842
|
});
|
|
10338
10843
|
|
|
10339
10844
|
const started = task.enterSync();
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10845
|
+
|
|
10846
|
+
if (0!== null) {
|
|
10847
|
+
task.setReturnMemoryIdx(0);
|
|
10848
|
+
task.setReturnMemory(() => memory0());
|
|
10849
|
+
}
|
|
10850
|
+
|
|
10851
|
+
|
|
10852
|
+
let ret;
|
|
10853
|
+
|
|
10854
|
+
try {
|
|
10855
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10856
|
+
taskID: task.id(),
|
|
10857
|
+
componentIdx: task.componentIdx(),
|
|
10858
|
+
fn: () => toolsMetadataAdd(ptr0, len0, result7, len7),
|
|
10859
|
+
});
|
|
10860
|
+
} catch (err) {
|
|
10861
|
+
|
|
10862
|
+
task.setErrored(err);
|
|
10863
|
+
task.reject(err);
|
|
10864
|
+
task.exit();
|
|
10865
|
+
throw err;
|
|
10866
|
+
|
|
10867
|
+
}
|
|
10347
10868
|
|
|
10348
10869
|
let variant10;
|
|
10349
10870
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -10469,8 +10990,22 @@ null,
|
|
|
10469
10990
|
paramLiftFns: [],
|
|
10470
10991
|
resultLowerFns: [_lowerFlatOwn({
|
|
10471
10992
|
componentIdx: 0,
|
|
10472
|
-
lowerFn:
|
|
10993
|
+
lowerFn:
|
|
10994
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10995
|
+
if (!(obj instanceof OutputStream)) {
|
|
10996
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10997
|
+
}
|
|
10998
|
+
let handle = obj[symbolRscHandle];
|
|
10999
|
+
if (!handle) {
|
|
11000
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11001
|
+
captureTable2.set(rep, obj);
|
|
11002
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11003
|
+
}
|
|
11004
|
+
return handle;
|
|
11005
|
+
}
|
|
11006
|
+
,
|
|
10473
11007
|
})],
|
|
11008
|
+
hasResultPointer: false,
|
|
10474
11009
|
funcTypeIsAsync: false,
|
|
10475
11010
|
getCallbackFn: () => null,
|
|
10476
11011
|
getPostReturnFn: () => null,
|
|
@@ -10478,7 +11013,7 @@ null,
|
|
|
10478
11013
|
memoryIdx: null,
|
|
10479
11014
|
stringEncoding: 'utf8',
|
|
10480
11015
|
getMemoryFn: () => null,
|
|
10481
|
-
getReallocFn:
|
|
11016
|
+
getReallocFn: undefined,
|
|
10482
11017
|
importFn: _trampoline5,
|
|
10483
11018
|
},
|
|
10484
11019
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10491,8 +11026,22 @@ null,
|
|
|
10491
11026
|
paramLiftFns: [],
|
|
10492
11027
|
resultLowerFns: [_lowerFlatOwn({
|
|
10493
11028
|
componentIdx: 0,
|
|
10494
|
-
lowerFn:
|
|
11029
|
+
lowerFn:
|
|
11030
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11031
|
+
if (!(obj instanceof OutputStream)) {
|
|
11032
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11033
|
+
}
|
|
11034
|
+
let handle = obj[symbolRscHandle];
|
|
11035
|
+
if (!handle) {
|
|
11036
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11037
|
+
captureTable2.set(rep, obj);
|
|
11038
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11039
|
+
}
|
|
11040
|
+
return handle;
|
|
11041
|
+
}
|
|
11042
|
+
,
|
|
10495
11043
|
})],
|
|
11044
|
+
hasResultPointer: false,
|
|
10496
11045
|
funcTypeIsAsync: false,
|
|
10497
11046
|
getCallbackFn: () => null,
|
|
10498
11047
|
getPostReturnFn: () => null,
|
|
@@ -10500,7 +11049,7 @@ null,
|
|
|
10500
11049
|
memoryIdx: null,
|
|
10501
11050
|
stringEncoding: 'utf8',
|
|
10502
11051
|
getMemoryFn: () => null,
|
|
10503
|
-
getReallocFn:
|
|
11052
|
+
getReallocFn: undefined,
|
|
10504
11053
|
importFn: _trampoline5,
|
|
10505
11054
|
},
|
|
10506
11055
|
);
|
|
@@ -10540,8 +11089,22 @@ null,
|
|
|
10540
11089
|
paramLiftFns: [],
|
|
10541
11090
|
resultLowerFns: [_lowerFlatOwn({
|
|
10542
11091
|
componentIdx: 0,
|
|
10543
|
-
lowerFn:
|
|
11092
|
+
lowerFn:
|
|
11093
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11094
|
+
if (!(obj instanceof InputStream)) {
|
|
11095
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11096
|
+
}
|
|
11097
|
+
let handle = obj[symbolRscHandle];
|
|
11098
|
+
if (!handle) {
|
|
11099
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11100
|
+
captureTable1.set(rep, obj);
|
|
11101
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11102
|
+
}
|
|
11103
|
+
return handle;
|
|
11104
|
+
}
|
|
11105
|
+
,
|
|
10544
11106
|
})],
|
|
11107
|
+
hasResultPointer: false,
|
|
10545
11108
|
funcTypeIsAsync: false,
|
|
10546
11109
|
getCallbackFn: () => null,
|
|
10547
11110
|
getPostReturnFn: () => null,
|
|
@@ -10549,7 +11112,7 @@ null,
|
|
|
10549
11112
|
memoryIdx: null,
|
|
10550
11113
|
stringEncoding: 'utf8',
|
|
10551
11114
|
getMemoryFn: () => null,
|
|
10552
|
-
getReallocFn:
|
|
11115
|
+
getReallocFn: undefined,
|
|
10553
11116
|
importFn: _trampoline8,
|
|
10554
11117
|
},
|
|
10555
11118
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10562,8 +11125,22 @@ null,
|
|
|
10562
11125
|
paramLiftFns: [],
|
|
10563
11126
|
resultLowerFns: [_lowerFlatOwn({
|
|
10564
11127
|
componentIdx: 0,
|
|
10565
|
-
lowerFn:
|
|
11128
|
+
lowerFn:
|
|
11129
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11130
|
+
if (!(obj instanceof InputStream)) {
|
|
11131
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11132
|
+
}
|
|
11133
|
+
let handle = obj[symbolRscHandle];
|
|
11134
|
+
if (!handle) {
|
|
11135
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11136
|
+
captureTable1.set(rep, obj);
|
|
11137
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11138
|
+
}
|
|
11139
|
+
return handle;
|
|
11140
|
+
}
|
|
11141
|
+
,
|
|
10566
11142
|
})],
|
|
11143
|
+
hasResultPointer: false,
|
|
10567
11144
|
funcTypeIsAsync: false,
|
|
10568
11145
|
getCallbackFn: () => null,
|
|
10569
11146
|
getPostReturnFn: () => null,
|
|
@@ -10571,7 +11148,7 @@ null,
|
|
|
10571
11148
|
memoryIdx: null,
|
|
10572
11149
|
stringEncoding: 'utf8',
|
|
10573
11150
|
getMemoryFn: () => null,
|
|
10574
|
-
getReallocFn:
|
|
11151
|
+
getReallocFn: undefined,
|
|
10575
11152
|
importFn: _trampoline8,
|
|
10576
11153
|
},
|
|
10577
11154
|
);
|
|
@@ -10585,8 +11162,22 @@ null,
|
|
|
10585
11162
|
paramLiftFns: [],
|
|
10586
11163
|
resultLowerFns: [_lowerFlatOwn({
|
|
10587
11164
|
componentIdx: 0,
|
|
10588
|
-
lowerFn:
|
|
11165
|
+
lowerFn:
|
|
11166
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11167
|
+
if (!(obj instanceof OutputStream)) {
|
|
11168
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11169
|
+
}
|
|
11170
|
+
let handle = obj[symbolRscHandle];
|
|
11171
|
+
if (!handle) {
|
|
11172
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11173
|
+
captureTable2.set(rep, obj);
|
|
11174
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11175
|
+
}
|
|
11176
|
+
return handle;
|
|
11177
|
+
}
|
|
11178
|
+
,
|
|
10589
11179
|
})],
|
|
11180
|
+
hasResultPointer: false,
|
|
10590
11181
|
funcTypeIsAsync: false,
|
|
10591
11182
|
getCallbackFn: () => null,
|
|
10592
11183
|
getPostReturnFn: () => null,
|
|
@@ -10594,7 +11185,7 @@ null,
|
|
|
10594
11185
|
memoryIdx: null,
|
|
10595
11186
|
stringEncoding: 'utf8',
|
|
10596
11187
|
getMemoryFn: () => null,
|
|
10597
|
-
getReallocFn:
|
|
11188
|
+
getReallocFn: undefined,
|
|
10598
11189
|
importFn: _trampoline9,
|
|
10599
11190
|
},
|
|
10600
11191
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10607,8 +11198,22 @@ null,
|
|
|
10607
11198
|
paramLiftFns: [],
|
|
10608
11199
|
resultLowerFns: [_lowerFlatOwn({
|
|
10609
11200
|
componentIdx: 0,
|
|
10610
|
-
lowerFn:
|
|
11201
|
+
lowerFn:
|
|
11202
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11203
|
+
if (!(obj instanceof OutputStream)) {
|
|
11204
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11205
|
+
}
|
|
11206
|
+
let handle = obj[symbolRscHandle];
|
|
11207
|
+
if (!handle) {
|
|
11208
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11209
|
+
captureTable2.set(rep, obj);
|
|
11210
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11211
|
+
}
|
|
11212
|
+
return handle;
|
|
11213
|
+
}
|
|
11214
|
+
,
|
|
10611
11215
|
})],
|
|
11216
|
+
hasResultPointer: false,
|
|
10612
11217
|
funcTypeIsAsync: false,
|
|
10613
11218
|
getCallbackFn: () => null,
|
|
10614
11219
|
getPostReturnFn: () => null,
|
|
@@ -10616,7 +11221,7 @@ null,
|
|
|
10616
11221
|
memoryIdx: null,
|
|
10617
11222
|
stringEncoding: 'utf8',
|
|
10618
11223
|
getMemoryFn: () => null,
|
|
10619
|
-
getReallocFn:
|
|
11224
|
+
getReallocFn: undefined,
|
|
10620
11225
|
importFn: _trampoline9,
|
|
10621
11226
|
},
|
|
10622
11227
|
);
|
|
@@ -10627,8 +11232,9 @@ null,
|
|
|
10627
11232
|
componentIdx: 0,
|
|
10628
11233
|
isAsync: false,
|
|
10629
11234
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10630
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
11235
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10631
11236
|
resultLowerFns: [],
|
|
11237
|
+
hasResultPointer: false,
|
|
10632
11238
|
funcTypeIsAsync: false,
|
|
10633
11239
|
getCallbackFn: () => null,
|
|
10634
11240
|
getPostReturnFn: () => null,
|
|
@@ -10636,7 +11242,7 @@ null,
|
|
|
10636
11242
|
memoryIdx: null,
|
|
10637
11243
|
stringEncoding: 'utf8',
|
|
10638
11244
|
getMemoryFn: () => null,
|
|
10639
|
-
getReallocFn:
|
|
11245
|
+
getReallocFn: undefined,
|
|
10640
11246
|
importFn: _trampoline10,
|
|
10641
11247
|
},
|
|
10642
11248
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10646,8 +11252,9 @@ null,
|
|
|
10646
11252
|
componentIdx: 0,
|
|
10647
11253
|
isAsync: false,
|
|
10648
11254
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10649
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
11255
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10650
11256
|
resultLowerFns: [],
|
|
11257
|
+
hasResultPointer: false,
|
|
10651
11258
|
funcTypeIsAsync: false,
|
|
10652
11259
|
getCallbackFn: () => null,
|
|
10653
11260
|
getPostReturnFn: () => null,
|
|
@@ -10655,7 +11262,7 @@ null,
|
|
|
10655
11262
|
memoryIdx: null,
|
|
10656
11263
|
stringEncoding: 'utf8',
|
|
10657
11264
|
getMemoryFn: () => null,
|
|
10658
|
-
getReallocFn:
|
|
11265
|
+
getReallocFn: undefined,
|
|
10659
11266
|
importFn: _trampoline10,
|
|
10660
11267
|
},
|
|
10661
11268
|
);
|
|
@@ -10668,10 +11275,11 @@ null,
|
|
|
10668
11275
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10669
11276
|
paramLiftFns: [],
|
|
10670
11277
|
resultLowerFns: [_lowerFlatList({
|
|
10671
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
11278
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10672
11279
|
elemSize32: 16,
|
|
10673
11280
|
elemAlign32: 4,
|
|
10674
11281
|
})],
|
|
11282
|
+
hasResultPointer: true,
|
|
10675
11283
|
funcTypeIsAsync: false,
|
|
10676
11284
|
getCallbackFn: () => null,
|
|
10677
11285
|
getPostReturnFn: () => null,
|
|
@@ -10691,10 +11299,11 @@ null,
|
|
|
10691
11299
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10692
11300
|
paramLiftFns: [],
|
|
10693
11301
|
resultLowerFns: [_lowerFlatList({
|
|
10694
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
11302
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10695
11303
|
elemSize32: 16,
|
|
10696
11304
|
elemAlign32: 4,
|
|
10697
11305
|
})],
|
|
11306
|
+
hasResultPointer: true,
|
|
10698
11307
|
funcTypeIsAsync: false,
|
|
10699
11308
|
getCallbackFn: () => null,
|
|
10700
11309
|
getPostReturnFn: () => null,
|
|
@@ -10719,6 +11328,7 @@ null,
|
|
|
10719
11328
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10720
11329
|
])
|
|
10721
11330
|
],
|
|
11331
|
+
hasResultPointer: true,
|
|
10722
11332
|
funcTypeIsAsync: false,
|
|
10723
11333
|
getCallbackFn: () => null,
|
|
10724
11334
|
getPostReturnFn: () => null,
|
|
@@ -10726,7 +11336,7 @@ null,
|
|
|
10726
11336
|
memoryIdx: 0,
|
|
10727
11337
|
stringEncoding: 'utf8',
|
|
10728
11338
|
getMemoryFn: () => memory0,
|
|
10729
|
-
getReallocFn:
|
|
11339
|
+
getReallocFn: undefined,
|
|
10730
11340
|
importFn: _trampoline12,
|
|
10731
11341
|
},
|
|
10732
11342
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10742,6 +11352,7 @@ null,
|
|
|
10742
11352
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10743
11353
|
])
|
|
10744
11354
|
],
|
|
11355
|
+
hasResultPointer: true,
|
|
10745
11356
|
funcTypeIsAsync: false,
|
|
10746
11357
|
getCallbackFn: () => null,
|
|
10747
11358
|
getPostReturnFn: () => null,
|
|
@@ -10749,7 +11360,7 @@ null,
|
|
|
10749
11360
|
memoryIdx: 0,
|
|
10750
11361
|
stringEncoding: 'utf8',
|
|
10751
11362
|
getMemoryFn: () => memory0,
|
|
10752
|
-
getReallocFn:
|
|
11363
|
+
getReallocFn: undefined,
|
|
10753
11364
|
importFn: _trampoline12,
|
|
10754
11365
|
},
|
|
10755
11366
|
);
|
|
@@ -10766,6 +11377,7 @@ null,
|
|
|
10766
11377
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10767
11378
|
])
|
|
10768
11379
|
],
|
|
11380
|
+
hasResultPointer: true,
|
|
10769
11381
|
funcTypeIsAsync: false,
|
|
10770
11382
|
getCallbackFn: () => null,
|
|
10771
11383
|
getPostReturnFn: () => null,
|
|
@@ -10773,7 +11385,7 @@ null,
|
|
|
10773
11385
|
memoryIdx: 0,
|
|
10774
11386
|
stringEncoding: 'utf8',
|
|
10775
11387
|
getMemoryFn: () => memory0,
|
|
10776
|
-
getReallocFn:
|
|
11388
|
+
getReallocFn: undefined,
|
|
10777
11389
|
importFn: _trampoline13,
|
|
10778
11390
|
},
|
|
10779
11391
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10789,6 +11401,7 @@ null,
|
|
|
10789
11401
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10790
11402
|
])
|
|
10791
11403
|
],
|
|
11404
|
+
hasResultPointer: true,
|
|
10792
11405
|
funcTypeIsAsync: false,
|
|
10793
11406
|
getCallbackFn: () => null,
|
|
10794
11407
|
getPostReturnFn: () => null,
|
|
@@ -10796,7 +11409,7 @@ null,
|
|
|
10796
11409
|
memoryIdx: 0,
|
|
10797
11410
|
stringEncoding: 'utf8',
|
|
10798
11411
|
getMemoryFn: () => memory0,
|
|
10799
|
-
getReallocFn:
|
|
11412
|
+
getReallocFn: undefined,
|
|
10800
11413
|
importFn: _trampoline13,
|
|
10801
11414
|
},
|
|
10802
11415
|
);
|
|
@@ -10809,10 +11422,11 @@ null,
|
|
|
10809
11422
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10810
11423
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10811
11424
|
resultLowerFns: [_lowerFlatResult([
|
|
10812
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11425
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10813
11426
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10814
11427
|
])
|
|
10815
11428
|
],
|
|
11429
|
+
hasResultPointer: true,
|
|
10816
11430
|
funcTypeIsAsync: false,
|
|
10817
11431
|
getCallbackFn: () => null,
|
|
10818
11432
|
getPostReturnFn: () => null,
|
|
@@ -10820,7 +11434,7 @@ null,
|
|
|
10820
11434
|
memoryIdx: 0,
|
|
10821
11435
|
stringEncoding: 'utf8',
|
|
10822
11436
|
getMemoryFn: () => memory0,
|
|
10823
|
-
getReallocFn:
|
|
11437
|
+
getReallocFn: undefined,
|
|
10824
11438
|
importFn: _trampoline14,
|
|
10825
11439
|
},
|
|
10826
11440
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10832,10 +11446,11 @@ null,
|
|
|
10832
11446
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10833
11447
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10834
11448
|
resultLowerFns: [_lowerFlatResult([
|
|
10835
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11449
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10836
11450
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10837
11451
|
])
|
|
10838
11452
|
],
|
|
11453
|
+
hasResultPointer: true,
|
|
10839
11454
|
funcTypeIsAsync: false,
|
|
10840
11455
|
getCallbackFn: () => null,
|
|
10841
11456
|
getPostReturnFn: () => null,
|
|
@@ -10843,7 +11458,7 @@ null,
|
|
|
10843
11458
|
memoryIdx: 0,
|
|
10844
11459
|
stringEncoding: 'utf8',
|
|
10845
11460
|
getMemoryFn: () => memory0,
|
|
10846
|
-
getReallocFn:
|
|
11461
|
+
getReallocFn: undefined,
|
|
10847
11462
|
importFn: _trampoline14,
|
|
10848
11463
|
},
|
|
10849
11464
|
);
|
|
@@ -10860,6 +11475,7 @@ null,
|
|
|
10860
11475
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10861
11476
|
])
|
|
10862
11477
|
],
|
|
11478
|
+
hasResultPointer: true,
|
|
10863
11479
|
funcTypeIsAsync: false,
|
|
10864
11480
|
getCallbackFn: () => null,
|
|
10865
11481
|
getPostReturnFn: () => null,
|
|
@@ -10867,7 +11483,7 @@ null,
|
|
|
10867
11483
|
memoryIdx: 0,
|
|
10868
11484
|
stringEncoding: 'utf8',
|
|
10869
11485
|
getMemoryFn: () => memory0,
|
|
10870
|
-
getReallocFn:
|
|
11486
|
+
getReallocFn: undefined,
|
|
10871
11487
|
importFn: _trampoline15,
|
|
10872
11488
|
},
|
|
10873
11489
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10883,6 +11499,7 @@ null,
|
|
|
10883
11499
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10884
11500
|
])
|
|
10885
11501
|
],
|
|
11502
|
+
hasResultPointer: true,
|
|
10886
11503
|
funcTypeIsAsync: false,
|
|
10887
11504
|
getCallbackFn: () => null,
|
|
10888
11505
|
getPostReturnFn: () => null,
|
|
@@ -10890,7 +11507,7 @@ null,
|
|
|
10890
11507
|
memoryIdx: 0,
|
|
10891
11508
|
stringEncoding: 'utf8',
|
|
10892
11509
|
getMemoryFn: () => memory0,
|
|
10893
|
-
getReallocFn:
|
|
11510
|
+
getReallocFn: undefined,
|
|
10894
11511
|
importFn: _trampoline15,
|
|
10895
11512
|
},
|
|
10896
11513
|
);
|
|
@@ -10903,10 +11520,11 @@ null,
|
|
|
10903
11520
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10904
11521
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10905
11522
|
resultLowerFns: [_lowerFlatResult([
|
|
10906
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11523
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10907
11524
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10908
11525
|
])
|
|
10909
11526
|
],
|
|
11527
|
+
hasResultPointer: true,
|
|
10910
11528
|
funcTypeIsAsync: false,
|
|
10911
11529
|
getCallbackFn: () => null,
|
|
10912
11530
|
getPostReturnFn: () => null,
|
|
@@ -10914,7 +11532,7 @@ null,
|
|
|
10914
11532
|
memoryIdx: 0,
|
|
10915
11533
|
stringEncoding: 'utf8',
|
|
10916
11534
|
getMemoryFn: () => memory0,
|
|
10917
|
-
getReallocFn:
|
|
11535
|
+
getReallocFn: undefined,
|
|
10918
11536
|
importFn: _trampoline16,
|
|
10919
11537
|
},
|
|
10920
11538
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10926,10 +11544,11 @@ null,
|
|
|
10926
11544
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10927
11545
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10928
11546
|
resultLowerFns: [_lowerFlatResult([
|
|
10929
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
11547
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10930
11548
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10931
11549
|
])
|
|
10932
11550
|
],
|
|
11551
|
+
hasResultPointer: true,
|
|
10933
11552
|
funcTypeIsAsync: false,
|
|
10934
11553
|
getCallbackFn: () => null,
|
|
10935
11554
|
getPostReturnFn: () => null,
|
|
@@ -10937,7 +11556,7 @@ null,
|
|
|
10937
11556
|
memoryIdx: 0,
|
|
10938
11557
|
stringEncoding: 'utf8',
|
|
10939
11558
|
getMemoryFn: () => memory0,
|
|
10940
|
-
getReallocFn:
|
|
11559
|
+
getReallocFn: undefined,
|
|
10941
11560
|
importFn: _trampoline16,
|
|
10942
11561
|
},
|
|
10943
11562
|
);
|
|
@@ -10952,11 +11571,25 @@ null,
|
|
|
10952
11571
|
resultLowerFns: [_lowerFlatResult([
|
|
10953
11572
|
[ 'ok', _lowerFlatOwn({
|
|
10954
11573
|
componentIdx: 0,
|
|
10955
|
-
lowerFn:
|
|
11574
|
+
lowerFn:
|
|
11575
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11576
|
+
if (!(obj instanceof InputStream)) {
|
|
11577
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11578
|
+
}
|
|
11579
|
+
let handle = obj[symbolRscHandle];
|
|
11580
|
+
if (!handle) {
|
|
11581
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11582
|
+
captureTable1.set(rep, obj);
|
|
11583
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11584
|
+
}
|
|
11585
|
+
return handle;
|
|
11586
|
+
}
|
|
11587
|
+
,
|
|
10956
11588
|
}), 8, 4, 4 ],
|
|
10957
11589
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10958
11590
|
])
|
|
10959
11591
|
],
|
|
11592
|
+
hasResultPointer: true,
|
|
10960
11593
|
funcTypeIsAsync: false,
|
|
10961
11594
|
getCallbackFn: () => null,
|
|
10962
11595
|
getPostReturnFn: () => null,
|
|
@@ -10964,7 +11597,7 @@ null,
|
|
|
10964
11597
|
memoryIdx: 0,
|
|
10965
11598
|
stringEncoding: 'utf8',
|
|
10966
11599
|
getMemoryFn: () => memory0,
|
|
10967
|
-
getReallocFn:
|
|
11600
|
+
getReallocFn: undefined,
|
|
10968
11601
|
importFn: _trampoline17,
|
|
10969
11602
|
},
|
|
10970
11603
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10978,11 +11611,25 @@ null,
|
|
|
10978
11611
|
resultLowerFns: [_lowerFlatResult([
|
|
10979
11612
|
[ 'ok', _lowerFlatOwn({
|
|
10980
11613
|
componentIdx: 0,
|
|
10981
|
-
lowerFn:
|
|
11614
|
+
lowerFn:
|
|
11615
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
11616
|
+
if (!(obj instanceof InputStream)) {
|
|
11617
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
11618
|
+
}
|
|
11619
|
+
let handle = obj[symbolRscHandle];
|
|
11620
|
+
if (!handle) {
|
|
11621
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
11622
|
+
captureTable1.set(rep, obj);
|
|
11623
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
11624
|
+
}
|
|
11625
|
+
return handle;
|
|
11626
|
+
}
|
|
11627
|
+
,
|
|
10982
11628
|
}), 8, 4, 4 ],
|
|
10983
11629
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10984
11630
|
])
|
|
10985
11631
|
],
|
|
11632
|
+
hasResultPointer: true,
|
|
10986
11633
|
funcTypeIsAsync: false,
|
|
10987
11634
|
getCallbackFn: () => null,
|
|
10988
11635
|
getPostReturnFn: () => null,
|
|
@@ -10990,7 +11637,7 @@ null,
|
|
|
10990
11637
|
memoryIdx: 0,
|
|
10991
11638
|
stringEncoding: 'utf8',
|
|
10992
11639
|
getMemoryFn: () => memory0,
|
|
10993
|
-
getReallocFn:
|
|
11640
|
+
getReallocFn: undefined,
|
|
10994
11641
|
importFn: _trampoline17,
|
|
10995
11642
|
},
|
|
10996
11643
|
);
|
|
@@ -11005,11 +11652,25 @@ null,
|
|
|
11005
11652
|
resultLowerFns: [_lowerFlatResult([
|
|
11006
11653
|
[ 'ok', _lowerFlatOwn({
|
|
11007
11654
|
componentIdx: 0,
|
|
11008
|
-
lowerFn:
|
|
11655
|
+
lowerFn:
|
|
11656
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11657
|
+
if (!(obj instanceof OutputStream)) {
|
|
11658
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11659
|
+
}
|
|
11660
|
+
let handle = obj[symbolRscHandle];
|
|
11661
|
+
if (!handle) {
|
|
11662
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11663
|
+
captureTable2.set(rep, obj);
|
|
11664
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11665
|
+
}
|
|
11666
|
+
return handle;
|
|
11667
|
+
}
|
|
11668
|
+
,
|
|
11009
11669
|
}), 8, 4, 4 ],
|
|
11010
11670
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11011
11671
|
])
|
|
11012
11672
|
],
|
|
11673
|
+
hasResultPointer: true,
|
|
11013
11674
|
funcTypeIsAsync: false,
|
|
11014
11675
|
getCallbackFn: () => null,
|
|
11015
11676
|
getPostReturnFn: () => null,
|
|
@@ -11017,7 +11678,7 @@ null,
|
|
|
11017
11678
|
memoryIdx: 0,
|
|
11018
11679
|
stringEncoding: 'utf8',
|
|
11019
11680
|
getMemoryFn: () => memory0,
|
|
11020
|
-
getReallocFn:
|
|
11681
|
+
getReallocFn: undefined,
|
|
11021
11682
|
importFn: _trampoline18,
|
|
11022
11683
|
},
|
|
11023
11684
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11031,11 +11692,25 @@ null,
|
|
|
11031
11692
|
resultLowerFns: [_lowerFlatResult([
|
|
11032
11693
|
[ 'ok', _lowerFlatOwn({
|
|
11033
11694
|
componentIdx: 0,
|
|
11034
|
-
lowerFn:
|
|
11695
|
+
lowerFn:
|
|
11696
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11697
|
+
if (!(obj instanceof OutputStream)) {
|
|
11698
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11699
|
+
}
|
|
11700
|
+
let handle = obj[symbolRscHandle];
|
|
11701
|
+
if (!handle) {
|
|
11702
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11703
|
+
captureTable2.set(rep, obj);
|
|
11704
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11705
|
+
}
|
|
11706
|
+
return handle;
|
|
11707
|
+
}
|
|
11708
|
+
,
|
|
11035
11709
|
}), 8, 4, 4 ],
|
|
11036
11710
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11037
11711
|
])
|
|
11038
11712
|
],
|
|
11713
|
+
hasResultPointer: true,
|
|
11039
11714
|
funcTypeIsAsync: false,
|
|
11040
11715
|
getCallbackFn: () => null,
|
|
11041
11716
|
getPostReturnFn: () => null,
|
|
@@ -11043,7 +11718,7 @@ null,
|
|
|
11043
11718
|
memoryIdx: 0,
|
|
11044
11719
|
stringEncoding: 'utf8',
|
|
11045
11720
|
getMemoryFn: () => memory0,
|
|
11046
|
-
getReallocFn:
|
|
11721
|
+
getReallocFn: undefined,
|
|
11047
11722
|
importFn: _trampoline18,
|
|
11048
11723
|
},
|
|
11049
11724
|
);
|
|
@@ -11058,11 +11733,25 @@ null,
|
|
|
11058
11733
|
resultLowerFns: [_lowerFlatResult([
|
|
11059
11734
|
[ 'ok', _lowerFlatOwn({
|
|
11060
11735
|
componentIdx: 0,
|
|
11061
|
-
lowerFn:
|
|
11736
|
+
lowerFn:
|
|
11737
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11738
|
+
if (!(obj instanceof OutputStream)) {
|
|
11739
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11740
|
+
}
|
|
11741
|
+
let handle = obj[symbolRscHandle];
|
|
11742
|
+
if (!handle) {
|
|
11743
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11744
|
+
captureTable2.set(rep, obj);
|
|
11745
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11746
|
+
}
|
|
11747
|
+
return handle;
|
|
11748
|
+
}
|
|
11749
|
+
,
|
|
11062
11750
|
}), 8, 4, 4 ],
|
|
11063
11751
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11064
11752
|
])
|
|
11065
11753
|
],
|
|
11754
|
+
hasResultPointer: true,
|
|
11066
11755
|
funcTypeIsAsync: false,
|
|
11067
11756
|
getCallbackFn: () => null,
|
|
11068
11757
|
getPostReturnFn: () => null,
|
|
@@ -11070,7 +11759,7 @@ null,
|
|
|
11070
11759
|
memoryIdx: 0,
|
|
11071
11760
|
stringEncoding: 'utf8',
|
|
11072
11761
|
getMemoryFn: () => memory0,
|
|
11073
|
-
getReallocFn:
|
|
11762
|
+
getReallocFn: undefined,
|
|
11074
11763
|
importFn: _trampoline19,
|
|
11075
11764
|
},
|
|
11076
11765
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11084,11 +11773,25 @@ null,
|
|
|
11084
11773
|
resultLowerFns: [_lowerFlatResult([
|
|
11085
11774
|
[ 'ok', _lowerFlatOwn({
|
|
11086
11775
|
componentIdx: 0,
|
|
11087
|
-
lowerFn:
|
|
11776
|
+
lowerFn:
|
|
11777
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11778
|
+
if (!(obj instanceof OutputStream)) {
|
|
11779
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11780
|
+
}
|
|
11781
|
+
let handle = obj[symbolRscHandle];
|
|
11782
|
+
if (!handle) {
|
|
11783
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11784
|
+
captureTable2.set(rep, obj);
|
|
11785
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11786
|
+
}
|
|
11787
|
+
return handle;
|
|
11788
|
+
}
|
|
11789
|
+
,
|
|
11088
11790
|
}), 8, 4, 4 ],
|
|
11089
11791
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11090
11792
|
])
|
|
11091
11793
|
],
|
|
11794
|
+
hasResultPointer: true,
|
|
11092
11795
|
funcTypeIsAsync: false,
|
|
11093
11796
|
getCallbackFn: () => null,
|
|
11094
11797
|
getPostReturnFn: () => null,
|
|
@@ -11096,7 +11799,7 @@ null,
|
|
|
11096
11799
|
memoryIdx: 0,
|
|
11097
11800
|
stringEncoding: 'utf8',
|
|
11098
11801
|
getMemoryFn: () => memory0,
|
|
11099
|
-
getReallocFn:
|
|
11802
|
+
getReallocFn: undefined,
|
|
11100
11803
|
importFn: _trampoline19,
|
|
11101
11804
|
},
|
|
11102
11805
|
);
|
|
@@ -11111,11 +11814,25 @@ null,
|
|
|
11111
11814
|
resultLowerFns: [_lowerFlatResult([
|
|
11112
11815
|
[ 'ok', _lowerFlatOwn({
|
|
11113
11816
|
componentIdx: 0,
|
|
11114
|
-
lowerFn:
|
|
11817
|
+
lowerFn:
|
|
11818
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11819
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11820
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11821
|
+
}
|
|
11822
|
+
let handle = obj[symbolRscHandle];
|
|
11823
|
+
if (!handle) {
|
|
11824
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11825
|
+
captureTable5.set(rep, obj);
|
|
11826
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11827
|
+
}
|
|
11828
|
+
return handle;
|
|
11829
|
+
}
|
|
11830
|
+
,
|
|
11115
11831
|
}), 8, 4, 4 ],
|
|
11116
11832
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11117
11833
|
])
|
|
11118
11834
|
],
|
|
11835
|
+
hasResultPointer: true,
|
|
11119
11836
|
funcTypeIsAsync: false,
|
|
11120
11837
|
getCallbackFn: () => null,
|
|
11121
11838
|
getPostReturnFn: () => null,
|
|
@@ -11123,7 +11840,7 @@ null,
|
|
|
11123
11840
|
memoryIdx: 0,
|
|
11124
11841
|
stringEncoding: 'utf8',
|
|
11125
11842
|
getMemoryFn: () => memory0,
|
|
11126
|
-
getReallocFn:
|
|
11843
|
+
getReallocFn: undefined,
|
|
11127
11844
|
importFn: _trampoline20,
|
|
11128
11845
|
},
|
|
11129
11846
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11137,11 +11854,25 @@ null,
|
|
|
11137
11854
|
resultLowerFns: [_lowerFlatResult([
|
|
11138
11855
|
[ 'ok', _lowerFlatOwn({
|
|
11139
11856
|
componentIdx: 0,
|
|
11140
|
-
lowerFn:
|
|
11857
|
+
lowerFn:
|
|
11858
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11859
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11860
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11861
|
+
}
|
|
11862
|
+
let handle = obj[symbolRscHandle];
|
|
11863
|
+
if (!handle) {
|
|
11864
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11865
|
+
captureTable5.set(rep, obj);
|
|
11866
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11867
|
+
}
|
|
11868
|
+
return handle;
|
|
11869
|
+
}
|
|
11870
|
+
,
|
|
11141
11871
|
}), 8, 4, 4 ],
|
|
11142
11872
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11143
11873
|
])
|
|
11144
11874
|
],
|
|
11875
|
+
hasResultPointer: true,
|
|
11145
11876
|
funcTypeIsAsync: false,
|
|
11146
11877
|
getCallbackFn: () => null,
|
|
11147
11878
|
getPostReturnFn: () => null,
|
|
@@ -11149,7 +11880,7 @@ null,
|
|
|
11149
11880
|
memoryIdx: 0,
|
|
11150
11881
|
stringEncoding: 'utf8',
|
|
11151
11882
|
getMemoryFn: () => memory0,
|
|
11152
|
-
getReallocFn:
|
|
11883
|
+
getReallocFn: undefined,
|
|
11153
11884
|
importFn: _trampoline20,
|
|
11154
11885
|
},
|
|
11155
11886
|
);
|
|
@@ -11162,22 +11893,23 @@ null,
|
|
|
11162
11893
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
11163
11894
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
11164
11895
|
resultLowerFns: [_lowerFlatResult([
|
|
11165
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11896
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
11166
11897
|
[ 'none', null, 24, 8, 8 ],
|
|
11167
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11898
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11168
11899
|
])
|
|
11169
|
-
,
|
|
11900
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11170
11901
|
[ 'none', null, 24, 8, 8 ],
|
|
11171
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11902
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11172
11903
|
])
|
|
11173
|
-
,
|
|
11904
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11174
11905
|
[ 'none', null, 24, 8, 8 ],
|
|
11175
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11906
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11176
11907
|
])
|
|
11177
|
-
,
|
|
11908
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11178
11909
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
11179
11910
|
])
|
|
11180
11911
|
],
|
|
11912
|
+
hasResultPointer: true,
|
|
11181
11913
|
funcTypeIsAsync: false,
|
|
11182
11914
|
getCallbackFn: () => null,
|
|
11183
11915
|
getPostReturnFn: () => null,
|
|
@@ -11185,7 +11917,7 @@ null,
|
|
|
11185
11917
|
memoryIdx: 0,
|
|
11186
11918
|
stringEncoding: 'utf8',
|
|
11187
11919
|
getMemoryFn: () => memory0,
|
|
11188
|
-
getReallocFn:
|
|
11920
|
+
getReallocFn: undefined,
|
|
11189
11921
|
importFn: _trampoline21,
|
|
11190
11922
|
},
|
|
11191
11923
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11197,22 +11929,23 @@ null,
|
|
|
11197
11929
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
11198
11930
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
11199
11931
|
resultLowerFns: [_lowerFlatResult([
|
|
11200
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11932
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
11201
11933
|
[ 'none', null, 24, 8, 8 ],
|
|
11202
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11934
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11203
11935
|
])
|
|
11204
|
-
,
|
|
11936
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11205
11937
|
[ 'none', null, 24, 8, 8 ],
|
|
11206
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11938
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11207
11939
|
])
|
|
11208
|
-
,
|
|
11940
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11209
11941
|
[ 'none', null, 24, 8, 8 ],
|
|
11210
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11942
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11211
11943
|
])
|
|
11212
|
-
,
|
|
11944
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11213
11945
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
11214
11946
|
])
|
|
11215
11947
|
],
|
|
11948
|
+
hasResultPointer: true,
|
|
11216
11949
|
funcTypeIsAsync: false,
|
|
11217
11950
|
getCallbackFn: () => null,
|
|
11218
11951
|
getPostReturnFn: () => null,
|
|
@@ -11220,7 +11953,7 @@ null,
|
|
|
11220
11953
|
memoryIdx: 0,
|
|
11221
11954
|
stringEncoding: 'utf8',
|
|
11222
11955
|
getMemoryFn: () => memory0,
|
|
11223
|
-
getReallocFn:
|
|
11956
|
+
getReallocFn: undefined,
|
|
11224
11957
|
importFn: _trampoline21,
|
|
11225
11958
|
},
|
|
11226
11959
|
);
|
|
@@ -11233,22 +11966,23 @@ null,
|
|
|
11233
11966
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
11234
11967
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
11235
11968
|
resultLowerFns: [_lowerFlatResult([
|
|
11236
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11969
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
11237
11970
|
[ 'none', null, 24, 8, 8 ],
|
|
11238
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11971
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11239
11972
|
])
|
|
11240
|
-
,
|
|
11973
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11241
11974
|
[ 'none', null, 24, 8, 8 ],
|
|
11242
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11975
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11243
11976
|
])
|
|
11244
|
-
,
|
|
11977
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11245
11978
|
[ 'none', null, 24, 8, 8 ],
|
|
11246
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11979
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11247
11980
|
])
|
|
11248
|
-
,
|
|
11981
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11249
11982
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
11250
11983
|
])
|
|
11251
11984
|
],
|
|
11985
|
+
hasResultPointer: true,
|
|
11252
11986
|
funcTypeIsAsync: false,
|
|
11253
11987
|
getCallbackFn: () => null,
|
|
11254
11988
|
getPostReturnFn: () => null,
|
|
@@ -11256,7 +11990,7 @@ null,
|
|
|
11256
11990
|
memoryIdx: 0,
|
|
11257
11991
|
stringEncoding: 'utf8',
|
|
11258
11992
|
getMemoryFn: () => memory0,
|
|
11259
|
-
getReallocFn:
|
|
11993
|
+
getReallocFn: undefined,
|
|
11260
11994
|
importFn: _trampoline22,
|
|
11261
11995
|
},
|
|
11262
11996
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11268,22 +12002,23 @@ null,
|
|
|
11268
12002
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
11269
12003
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
11270
12004
|
resultLowerFns: [_lowerFlatResult([
|
|
11271
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
12005
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
11272
12006
|
[ 'none', null, 24, 8, 8 ],
|
|
11273
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12007
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11274
12008
|
])
|
|
11275
|
-
,
|
|
12009
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
11276
12010
|
[ 'none', null, 24, 8, 8 ],
|
|
11277
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12011
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11278
12012
|
])
|
|
11279
|
-
,
|
|
12013
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
11280
12014
|
[ 'none', null, 24, 8, 8 ],
|
|
11281
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
12015
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
11282
12016
|
])
|
|
11283
|
-
,
|
|
12017
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
11284
12018
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
11285
12019
|
])
|
|
11286
12020
|
],
|
|
12021
|
+
hasResultPointer: true,
|
|
11287
12022
|
funcTypeIsAsync: false,
|
|
11288
12023
|
getCallbackFn: () => null,
|
|
11289
12024
|
getPostReturnFn: () => null,
|
|
@@ -11291,7 +12026,7 @@ null,
|
|
|
11291
12026
|
memoryIdx: 0,
|
|
11292
12027
|
stringEncoding: 'utf8',
|
|
11293
12028
|
getMemoryFn: () => memory0,
|
|
11294
|
-
getReallocFn:
|
|
12029
|
+
getReallocFn: undefined,
|
|
11295
12030
|
importFn: _trampoline22,
|
|
11296
12031
|
},
|
|
11297
12032
|
);
|
|
@@ -11306,11 +12041,25 @@ null,
|
|
|
11306
12041
|
resultLowerFns: [_lowerFlatResult([
|
|
11307
12042
|
[ 'ok', _lowerFlatOwn({
|
|
11308
12043
|
componentIdx: 0,
|
|
11309
|
-
lowerFn:
|
|
12044
|
+
lowerFn:
|
|
12045
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12046
|
+
if (!(obj instanceof Descriptor)) {
|
|
12047
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12048
|
+
}
|
|
12049
|
+
let handle = obj[symbolRscHandle];
|
|
12050
|
+
if (!handle) {
|
|
12051
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12052
|
+
captureTable6.set(rep, obj);
|
|
12053
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12054
|
+
}
|
|
12055
|
+
return handle;
|
|
12056
|
+
}
|
|
12057
|
+
,
|
|
11310
12058
|
}), 8, 4, 4 ],
|
|
11311
12059
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11312
12060
|
])
|
|
11313
12061
|
],
|
|
12062
|
+
hasResultPointer: true,
|
|
11314
12063
|
funcTypeIsAsync: false,
|
|
11315
12064
|
getCallbackFn: () => null,
|
|
11316
12065
|
getPostReturnFn: () => null,
|
|
@@ -11318,7 +12067,7 @@ null,
|
|
|
11318
12067
|
memoryIdx: 0,
|
|
11319
12068
|
stringEncoding: 'utf8',
|
|
11320
12069
|
getMemoryFn: () => memory0,
|
|
11321
|
-
getReallocFn:
|
|
12070
|
+
getReallocFn: undefined,
|
|
11322
12071
|
importFn: _trampoline23,
|
|
11323
12072
|
},
|
|
11324
12073
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11332,11 +12081,25 @@ null,
|
|
|
11332
12081
|
resultLowerFns: [_lowerFlatResult([
|
|
11333
12082
|
[ 'ok', _lowerFlatOwn({
|
|
11334
12083
|
componentIdx: 0,
|
|
11335
|
-
lowerFn:
|
|
12084
|
+
lowerFn:
|
|
12085
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12086
|
+
if (!(obj instanceof Descriptor)) {
|
|
12087
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12088
|
+
}
|
|
12089
|
+
let handle = obj[symbolRscHandle];
|
|
12090
|
+
if (!handle) {
|
|
12091
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12092
|
+
captureTable6.set(rep, obj);
|
|
12093
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12094
|
+
}
|
|
12095
|
+
return handle;
|
|
12096
|
+
}
|
|
12097
|
+
,
|
|
11336
12098
|
}), 8, 4, 4 ],
|
|
11337
12099
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
11338
12100
|
])
|
|
11339
12101
|
],
|
|
12102
|
+
hasResultPointer: true,
|
|
11340
12103
|
funcTypeIsAsync: false,
|
|
11341
12104
|
getCallbackFn: () => null,
|
|
11342
12105
|
getPostReturnFn: () => null,
|
|
@@ -11344,7 +12107,7 @@ null,
|
|
|
11344
12107
|
memoryIdx: 0,
|
|
11345
12108
|
stringEncoding: 'utf8',
|
|
11346
12109
|
getMemoryFn: () => memory0,
|
|
11347
|
-
getReallocFn:
|
|
12110
|
+
getReallocFn: undefined,
|
|
11348
12111
|
importFn: _trampoline23,
|
|
11349
12112
|
},
|
|
11350
12113
|
);
|
|
@@ -11359,12 +12122,13 @@ null,
|
|
|
11359
12122
|
resultLowerFns: [_lowerFlatResult([
|
|
11360
12123
|
[ 'ok', _lowerFlatOption([
|
|
11361
12124
|
[ 'none', null, 16, 4, 4 ],
|
|
11362
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
12125
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
11363
12126
|
])
|
|
11364
12127
|
, 20, 4, 4 ],
|
|
11365
12128
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
11366
12129
|
])
|
|
11367
12130
|
],
|
|
12131
|
+
hasResultPointer: true,
|
|
11368
12132
|
funcTypeIsAsync: false,
|
|
11369
12133
|
getCallbackFn: () => null,
|
|
11370
12134
|
getPostReturnFn: () => null,
|
|
@@ -11386,12 +12150,13 @@ null,
|
|
|
11386
12150
|
resultLowerFns: [_lowerFlatResult([
|
|
11387
12151
|
[ 'ok', _lowerFlatOption([
|
|
11388
12152
|
[ 'none', null, 16, 4, 4 ],
|
|
11389
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
12153
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
11390
12154
|
])
|
|
11391
12155
|
, 20, 4, 4 ],
|
|
11392
12156
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
11393
12157
|
])
|
|
11394
12158
|
],
|
|
12159
|
+
hasResultPointer: true,
|
|
11395
12160
|
funcTypeIsAsync: false,
|
|
11396
12161
|
getCallbackFn: () => null,
|
|
11397
12162
|
getPostReturnFn: () => null,
|
|
@@ -11419,10 +12184,24 @@ null,
|
|
|
11419
12184
|
}), 12, 4, 4 ],
|
|
11420
12185
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11421
12186
|
componentIdx: 0,
|
|
11422
|
-
lowerFn:
|
|
12187
|
+
lowerFn:
|
|
12188
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12189
|
+
if (!(obj instanceof Error$1)) {
|
|
12190
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12191
|
+
}
|
|
12192
|
+
let handle = obj[symbolRscHandle];
|
|
12193
|
+
if (!handle) {
|
|
12194
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12195
|
+
captureTable0.set(rep, obj);
|
|
12196
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12197
|
+
}
|
|
12198
|
+
return handle;
|
|
12199
|
+
}
|
|
12200
|
+
,
|
|
11423
12201
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11424
12202
|
])
|
|
11425
12203
|
],
|
|
12204
|
+
hasResultPointer: true,
|
|
11426
12205
|
funcTypeIsAsync: false,
|
|
11427
12206
|
getCallbackFn: () => null,
|
|
11428
12207
|
getPostReturnFn: () => null,
|
|
@@ -11449,10 +12228,24 @@ null,
|
|
|
11449
12228
|
}), 12, 4, 4 ],
|
|
11450
12229
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11451
12230
|
componentIdx: 0,
|
|
11452
|
-
lowerFn:
|
|
12231
|
+
lowerFn:
|
|
12232
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12233
|
+
if (!(obj instanceof Error$1)) {
|
|
12234
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12235
|
+
}
|
|
12236
|
+
let handle = obj[symbolRscHandle];
|
|
12237
|
+
if (!handle) {
|
|
12238
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12239
|
+
captureTable0.set(rep, obj);
|
|
12240
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12241
|
+
}
|
|
12242
|
+
return handle;
|
|
12243
|
+
}
|
|
12244
|
+
,
|
|
11453
12245
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11454
12246
|
])
|
|
11455
12247
|
],
|
|
12248
|
+
hasResultPointer: true,
|
|
11456
12249
|
funcTypeIsAsync: false,
|
|
11457
12250
|
getCallbackFn: () => null,
|
|
11458
12251
|
getPostReturnFn: () => null,
|
|
@@ -11480,10 +12273,24 @@ null,
|
|
|
11480
12273
|
}), 12, 4, 4 ],
|
|
11481
12274
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11482
12275
|
componentIdx: 0,
|
|
11483
|
-
lowerFn:
|
|
12276
|
+
lowerFn:
|
|
12277
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12278
|
+
if (!(obj instanceof Error$1)) {
|
|
12279
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12280
|
+
}
|
|
12281
|
+
let handle = obj[symbolRscHandle];
|
|
12282
|
+
if (!handle) {
|
|
12283
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12284
|
+
captureTable0.set(rep, obj);
|
|
12285
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12286
|
+
}
|
|
12287
|
+
return handle;
|
|
12288
|
+
}
|
|
12289
|
+
,
|
|
11484
12290
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11485
12291
|
])
|
|
11486
12292
|
],
|
|
12293
|
+
hasResultPointer: true,
|
|
11487
12294
|
funcTypeIsAsync: false,
|
|
11488
12295
|
getCallbackFn: () => null,
|
|
11489
12296
|
getPostReturnFn: () => null,
|
|
@@ -11510,10 +12317,24 @@ null,
|
|
|
11510
12317
|
}), 12, 4, 4 ],
|
|
11511
12318
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11512
12319
|
componentIdx: 0,
|
|
11513
|
-
lowerFn:
|
|
12320
|
+
lowerFn:
|
|
12321
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12322
|
+
if (!(obj instanceof Error$1)) {
|
|
12323
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12324
|
+
}
|
|
12325
|
+
let handle = obj[symbolRscHandle];
|
|
12326
|
+
if (!handle) {
|
|
12327
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12328
|
+
captureTable0.set(rep, obj);
|
|
12329
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12330
|
+
}
|
|
12331
|
+
return handle;
|
|
12332
|
+
}
|
|
12333
|
+
,
|
|
11514
12334
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11515
12335
|
])
|
|
11516
12336
|
],
|
|
12337
|
+
hasResultPointer: true,
|
|
11517
12338
|
funcTypeIsAsync: false,
|
|
11518
12339
|
getCallbackFn: () => null,
|
|
11519
12340
|
getPostReturnFn: () => null,
|
|
@@ -11537,10 +12358,24 @@ null,
|
|
|
11537
12358
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
11538
12359
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11539
12360
|
componentIdx: 0,
|
|
11540
|
-
lowerFn:
|
|
12361
|
+
lowerFn:
|
|
12362
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12363
|
+
if (!(obj instanceof Error$1)) {
|
|
12364
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12365
|
+
}
|
|
12366
|
+
let handle = obj[symbolRscHandle];
|
|
12367
|
+
if (!handle) {
|
|
12368
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12369
|
+
captureTable0.set(rep, obj);
|
|
12370
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12371
|
+
}
|
|
12372
|
+
return handle;
|
|
12373
|
+
}
|
|
12374
|
+
,
|
|
11541
12375
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
11542
12376
|
])
|
|
11543
12377
|
],
|
|
12378
|
+
hasResultPointer: true,
|
|
11544
12379
|
funcTypeIsAsync: false,
|
|
11545
12380
|
getCallbackFn: () => null,
|
|
11546
12381
|
getPostReturnFn: () => null,
|
|
@@ -11548,7 +12383,7 @@ null,
|
|
|
11548
12383
|
memoryIdx: 0,
|
|
11549
12384
|
stringEncoding: 'utf8',
|
|
11550
12385
|
getMemoryFn: () => memory0,
|
|
11551
|
-
getReallocFn:
|
|
12386
|
+
getReallocFn: undefined,
|
|
11552
12387
|
importFn: _trampoline27,
|
|
11553
12388
|
},
|
|
11554
12389
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11563,10 +12398,24 @@ null,
|
|
|
11563
12398
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
11564
12399
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11565
12400
|
componentIdx: 0,
|
|
11566
|
-
lowerFn:
|
|
12401
|
+
lowerFn:
|
|
12402
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12403
|
+
if (!(obj instanceof Error$1)) {
|
|
12404
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12405
|
+
}
|
|
12406
|
+
let handle = obj[symbolRscHandle];
|
|
12407
|
+
if (!handle) {
|
|
12408
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12409
|
+
captureTable0.set(rep, obj);
|
|
12410
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12411
|
+
}
|
|
12412
|
+
return handle;
|
|
12413
|
+
}
|
|
12414
|
+
,
|
|
11567
12415
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
11568
12416
|
])
|
|
11569
12417
|
],
|
|
12418
|
+
hasResultPointer: true,
|
|
11570
12419
|
funcTypeIsAsync: false,
|
|
11571
12420
|
getCallbackFn: () => null,
|
|
11572
12421
|
getPostReturnFn: () => null,
|
|
@@ -11574,7 +12423,7 @@ null,
|
|
|
11574
12423
|
memoryIdx: 0,
|
|
11575
12424
|
stringEncoding: 'utf8',
|
|
11576
12425
|
getMemoryFn: () => memory0,
|
|
11577
|
-
getReallocFn:
|
|
12426
|
+
getReallocFn: undefined,
|
|
11578
12427
|
importFn: _trampoline27,
|
|
11579
12428
|
},
|
|
11580
12429
|
);
|
|
@@ -11589,15 +12438,30 @@ null,
|
|
|
11589
12438
|
elemLiftFn: _liftFlatU8,
|
|
11590
12439
|
elemAlign32: 1,
|
|
11591
12440
|
elemSize32: 1,
|
|
12441
|
+
typedArray: Uint8Array,
|
|
11592
12442
|
})],
|
|
11593
12443
|
resultLowerFns: [_lowerFlatResult([
|
|
11594
12444
|
[ 'ok', null, 12, 4, 4 ],
|
|
11595
12445
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11596
12446
|
componentIdx: 0,
|
|
11597
|
-
lowerFn:
|
|
12447
|
+
lowerFn:
|
|
12448
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12449
|
+
if (!(obj instanceof Error$1)) {
|
|
12450
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12451
|
+
}
|
|
12452
|
+
let handle = obj[symbolRscHandle];
|
|
12453
|
+
if (!handle) {
|
|
12454
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12455
|
+
captureTable0.set(rep, obj);
|
|
12456
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12457
|
+
}
|
|
12458
|
+
return handle;
|
|
12459
|
+
}
|
|
12460
|
+
,
|
|
11598
12461
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11599
12462
|
])
|
|
11600
12463
|
],
|
|
12464
|
+
hasResultPointer: true,
|
|
11601
12465
|
funcTypeIsAsync: false,
|
|
11602
12466
|
getCallbackFn: () => null,
|
|
11603
12467
|
getPostReturnFn: () => null,
|
|
@@ -11605,7 +12469,7 @@ null,
|
|
|
11605
12469
|
memoryIdx: 0,
|
|
11606
12470
|
stringEncoding: 'utf8',
|
|
11607
12471
|
getMemoryFn: () => memory0,
|
|
11608
|
-
getReallocFn:
|
|
12472
|
+
getReallocFn: undefined,
|
|
11609
12473
|
importFn: _trampoline28,
|
|
11610
12474
|
},
|
|
11611
12475
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11619,15 +12483,30 @@ null,
|
|
|
11619
12483
|
elemLiftFn: _liftFlatU8,
|
|
11620
12484
|
elemAlign32: 1,
|
|
11621
12485
|
elemSize32: 1,
|
|
12486
|
+
typedArray: Uint8Array,
|
|
11622
12487
|
})],
|
|
11623
12488
|
resultLowerFns: [_lowerFlatResult([
|
|
11624
12489
|
[ 'ok', null, 12, 4, 4 ],
|
|
11625
12490
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11626
12491
|
componentIdx: 0,
|
|
11627
|
-
lowerFn:
|
|
12492
|
+
lowerFn:
|
|
12493
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12494
|
+
if (!(obj instanceof Error$1)) {
|
|
12495
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12496
|
+
}
|
|
12497
|
+
let handle = obj[symbolRscHandle];
|
|
12498
|
+
if (!handle) {
|
|
12499
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12500
|
+
captureTable0.set(rep, obj);
|
|
12501
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12502
|
+
}
|
|
12503
|
+
return handle;
|
|
12504
|
+
}
|
|
12505
|
+
,
|
|
11628
12506
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11629
12507
|
])
|
|
11630
12508
|
],
|
|
12509
|
+
hasResultPointer: true,
|
|
11631
12510
|
funcTypeIsAsync: false,
|
|
11632
12511
|
getCallbackFn: () => null,
|
|
11633
12512
|
getPostReturnFn: () => null,
|
|
@@ -11635,7 +12514,7 @@ null,
|
|
|
11635
12514
|
memoryIdx: 0,
|
|
11636
12515
|
stringEncoding: 'utf8',
|
|
11637
12516
|
getMemoryFn: () => memory0,
|
|
11638
|
-
getReallocFn:
|
|
12517
|
+
getReallocFn: undefined,
|
|
11639
12518
|
importFn: _trampoline28,
|
|
11640
12519
|
},
|
|
11641
12520
|
);
|
|
@@ -11650,15 +12529,30 @@ null,
|
|
|
11650
12529
|
elemLiftFn: _liftFlatU8,
|
|
11651
12530
|
elemAlign32: 1,
|
|
11652
12531
|
elemSize32: 1,
|
|
12532
|
+
typedArray: Uint8Array,
|
|
11653
12533
|
})],
|
|
11654
12534
|
resultLowerFns: [_lowerFlatResult([
|
|
11655
12535
|
[ 'ok', null, 12, 4, 4 ],
|
|
11656
12536
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11657
12537
|
componentIdx: 0,
|
|
11658
|
-
lowerFn:
|
|
12538
|
+
lowerFn:
|
|
12539
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12540
|
+
if (!(obj instanceof Error$1)) {
|
|
12541
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12542
|
+
}
|
|
12543
|
+
let handle = obj[symbolRscHandle];
|
|
12544
|
+
if (!handle) {
|
|
12545
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12546
|
+
captureTable0.set(rep, obj);
|
|
12547
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12548
|
+
}
|
|
12549
|
+
return handle;
|
|
12550
|
+
}
|
|
12551
|
+
,
|
|
11659
12552
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11660
12553
|
])
|
|
11661
12554
|
],
|
|
12555
|
+
hasResultPointer: true,
|
|
11662
12556
|
funcTypeIsAsync: false,
|
|
11663
12557
|
getCallbackFn: () => null,
|
|
11664
12558
|
getPostReturnFn: () => null,
|
|
@@ -11666,7 +12560,7 @@ null,
|
|
|
11666
12560
|
memoryIdx: 0,
|
|
11667
12561
|
stringEncoding: 'utf8',
|
|
11668
12562
|
getMemoryFn: () => memory0,
|
|
11669
|
-
getReallocFn:
|
|
12563
|
+
getReallocFn: undefined,
|
|
11670
12564
|
importFn: _trampoline29,
|
|
11671
12565
|
},
|
|
11672
12566
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11680,15 +12574,30 @@ null,
|
|
|
11680
12574
|
elemLiftFn: _liftFlatU8,
|
|
11681
12575
|
elemAlign32: 1,
|
|
11682
12576
|
elemSize32: 1,
|
|
12577
|
+
typedArray: Uint8Array,
|
|
11683
12578
|
})],
|
|
11684
12579
|
resultLowerFns: [_lowerFlatResult([
|
|
11685
12580
|
[ 'ok', null, 12, 4, 4 ],
|
|
11686
12581
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11687
12582
|
componentIdx: 0,
|
|
11688
|
-
lowerFn:
|
|
12583
|
+
lowerFn:
|
|
12584
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12585
|
+
if (!(obj instanceof Error$1)) {
|
|
12586
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12587
|
+
}
|
|
12588
|
+
let handle = obj[symbolRscHandle];
|
|
12589
|
+
if (!handle) {
|
|
12590
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12591
|
+
captureTable0.set(rep, obj);
|
|
12592
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12593
|
+
}
|
|
12594
|
+
return handle;
|
|
12595
|
+
}
|
|
12596
|
+
,
|
|
11689
12597
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11690
12598
|
])
|
|
11691
12599
|
],
|
|
12600
|
+
hasResultPointer: true,
|
|
11692
12601
|
funcTypeIsAsync: false,
|
|
11693
12602
|
getCallbackFn: () => null,
|
|
11694
12603
|
getPostReturnFn: () => null,
|
|
@@ -11696,7 +12605,7 @@ null,
|
|
|
11696
12605
|
memoryIdx: 0,
|
|
11697
12606
|
stringEncoding: 'utf8',
|
|
11698
12607
|
getMemoryFn: () => memory0,
|
|
11699
|
-
getReallocFn:
|
|
12608
|
+
getReallocFn: undefined,
|
|
11700
12609
|
importFn: _trampoline29,
|
|
11701
12610
|
},
|
|
11702
12611
|
);
|
|
@@ -11712,10 +12621,24 @@ null,
|
|
|
11712
12621
|
[ 'ok', null, 12, 4, 4 ],
|
|
11713
12622
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11714
12623
|
componentIdx: 0,
|
|
11715
|
-
lowerFn:
|
|
12624
|
+
lowerFn:
|
|
12625
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12626
|
+
if (!(obj instanceof Error$1)) {
|
|
12627
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12628
|
+
}
|
|
12629
|
+
let handle = obj[symbolRscHandle];
|
|
12630
|
+
if (!handle) {
|
|
12631
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12632
|
+
captureTable0.set(rep, obj);
|
|
12633
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12634
|
+
}
|
|
12635
|
+
return handle;
|
|
12636
|
+
}
|
|
12637
|
+
,
|
|
11716
12638
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11717
12639
|
])
|
|
11718
12640
|
],
|
|
12641
|
+
hasResultPointer: true,
|
|
11719
12642
|
funcTypeIsAsync: false,
|
|
11720
12643
|
getCallbackFn: () => null,
|
|
11721
12644
|
getPostReturnFn: () => null,
|
|
@@ -11723,7 +12646,7 @@ null,
|
|
|
11723
12646
|
memoryIdx: 0,
|
|
11724
12647
|
stringEncoding: 'utf8',
|
|
11725
12648
|
getMemoryFn: () => memory0,
|
|
11726
|
-
getReallocFn:
|
|
12649
|
+
getReallocFn: undefined,
|
|
11727
12650
|
importFn: _trampoline30,
|
|
11728
12651
|
},
|
|
11729
12652
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11738,10 +12661,24 @@ null,
|
|
|
11738
12661
|
[ 'ok', null, 12, 4, 4 ],
|
|
11739
12662
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11740
12663
|
componentIdx: 0,
|
|
11741
|
-
lowerFn:
|
|
12664
|
+
lowerFn:
|
|
12665
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
12666
|
+
if (!(obj instanceof Error$1)) {
|
|
12667
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
12668
|
+
}
|
|
12669
|
+
let handle = obj[symbolRscHandle];
|
|
12670
|
+
if (!handle) {
|
|
12671
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
12672
|
+
captureTable0.set(rep, obj);
|
|
12673
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
12674
|
+
}
|
|
12675
|
+
return handle;
|
|
12676
|
+
}
|
|
12677
|
+
,
|
|
11742
12678
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11743
12679
|
])
|
|
11744
12680
|
],
|
|
12681
|
+
hasResultPointer: true,
|
|
11745
12682
|
funcTypeIsAsync: false,
|
|
11746
12683
|
getCallbackFn: () => null,
|
|
11747
12684
|
getPostReturnFn: () => null,
|
|
@@ -11749,7 +12686,7 @@ null,
|
|
|
11749
12686
|
memoryIdx: 0,
|
|
11750
12687
|
stringEncoding: 'utf8',
|
|
11751
12688
|
getMemoryFn: () => memory0,
|
|
11752
|
-
getReallocFn:
|
|
12689
|
+
getReallocFn: undefined,
|
|
11753
12690
|
importFn: _trampoline30,
|
|
11754
12691
|
},
|
|
11755
12692
|
);
|
|
@@ -11766,6 +12703,7 @@ null,
|
|
|
11766
12703
|
elemSize32: 1,
|
|
11767
12704
|
elemAlign32: 1,
|
|
11768
12705
|
})],
|
|
12706
|
+
hasResultPointer: true,
|
|
11769
12707
|
funcTypeIsAsync: false,
|
|
11770
12708
|
getCallbackFn: () => null,
|
|
11771
12709
|
getPostReturnFn: () => null,
|
|
@@ -11789,6 +12727,7 @@ null,
|
|
|
11789
12727
|
elemSize32: 1,
|
|
11790
12728
|
elemAlign32: 1,
|
|
11791
12729
|
})],
|
|
12730
|
+
hasResultPointer: true,
|
|
11792
12731
|
funcTypeIsAsync: false,
|
|
11793
12732
|
getCallbackFn: () => null,
|
|
11794
12733
|
getPostReturnFn: () => null,
|
|
@@ -11809,13 +12748,27 @@ null,
|
|
|
11809
12748
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11810
12749
|
paramLiftFns: [],
|
|
11811
12750
|
resultLowerFns: [_lowerFlatList({
|
|
11812
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12751
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11813
12752
|
componentIdx: 0,
|
|
11814
|
-
lowerFn:
|
|
11815
|
-
|
|
12753
|
+
lowerFn:
|
|
12754
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12755
|
+
if (!(obj instanceof Descriptor)) {
|
|
12756
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12757
|
+
}
|
|
12758
|
+
let handle = obj[symbolRscHandle];
|
|
12759
|
+
if (!handle) {
|
|
12760
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12761
|
+
captureTable6.set(rep, obj);
|
|
12762
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12763
|
+
}
|
|
12764
|
+
return handle;
|
|
12765
|
+
}
|
|
12766
|
+
,
|
|
12767
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11816
12768
|
elemSize32: 12,
|
|
11817
12769
|
elemAlign32: 4,
|
|
11818
12770
|
})],
|
|
12771
|
+
hasResultPointer: true,
|
|
11819
12772
|
funcTypeIsAsync: false,
|
|
11820
12773
|
getCallbackFn: () => null,
|
|
11821
12774
|
getPostReturnFn: () => null,
|
|
@@ -11835,13 +12788,27 @@ null,
|
|
|
11835
12788
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11836
12789
|
paramLiftFns: [],
|
|
11837
12790
|
resultLowerFns: [_lowerFlatList({
|
|
11838
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12791
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11839
12792
|
componentIdx: 0,
|
|
11840
|
-
lowerFn:
|
|
11841
|
-
|
|
12793
|
+
lowerFn:
|
|
12794
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12795
|
+
if (!(obj instanceof Descriptor)) {
|
|
12796
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12797
|
+
}
|
|
12798
|
+
let handle = obj[symbolRscHandle];
|
|
12799
|
+
if (!handle) {
|
|
12800
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12801
|
+
captureTable6.set(rep, obj);
|
|
12802
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12803
|
+
}
|
|
12804
|
+
return handle;
|
|
12805
|
+
}
|
|
12806
|
+
,
|
|
12807
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11842
12808
|
elemSize32: 12,
|
|
11843
12809
|
elemAlign32: 4,
|
|
11844
12810
|
})],
|
|
12811
|
+
hasResultPointer: true,
|
|
11845
12812
|
funcTypeIsAsync: false,
|
|
11846
12813
|
getCallbackFn: () => null,
|
|
11847
12814
|
getPostReturnFn: () => null,
|
|
@@ -11865,10 +12832,24 @@ null,
|
|
|
11865
12832
|
[ 'none', null, 8, 4, 4 ],
|
|
11866
12833
|
[ 'some', _lowerFlatOwn({
|
|
11867
12834
|
componentIdx: 0,
|
|
11868
|
-
lowerFn:
|
|
12835
|
+
lowerFn:
|
|
12836
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12837
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12838
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12839
|
+
}
|
|
12840
|
+
let handle = obj[symbolRscHandle];
|
|
12841
|
+
if (!handle) {
|
|
12842
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12843
|
+
captureTable3.set(rep, obj);
|
|
12844
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12845
|
+
}
|
|
12846
|
+
return handle;
|
|
12847
|
+
}
|
|
12848
|
+
,
|
|
11869
12849
|
}), 8, 4, 4 ],
|
|
11870
12850
|
])
|
|
11871
12851
|
],
|
|
12852
|
+
hasResultPointer: true,
|
|
11872
12853
|
funcTypeIsAsync: false,
|
|
11873
12854
|
getCallbackFn: () => null,
|
|
11874
12855
|
getPostReturnFn: () => null,
|
|
@@ -11876,7 +12857,7 @@ null,
|
|
|
11876
12857
|
memoryIdx: 0,
|
|
11877
12858
|
stringEncoding: 'utf8',
|
|
11878
12859
|
getMemoryFn: () => memory0,
|
|
11879
|
-
getReallocFn:
|
|
12860
|
+
getReallocFn: undefined,
|
|
11880
12861
|
importFn: _trampoline33,
|
|
11881
12862
|
},
|
|
11882
12863
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11891,10 +12872,24 @@ null,
|
|
|
11891
12872
|
[ 'none', null, 8, 4, 4 ],
|
|
11892
12873
|
[ 'some', _lowerFlatOwn({
|
|
11893
12874
|
componentIdx: 0,
|
|
11894
|
-
lowerFn:
|
|
12875
|
+
lowerFn:
|
|
12876
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12877
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12878
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12879
|
+
}
|
|
12880
|
+
let handle = obj[symbolRscHandle];
|
|
12881
|
+
if (!handle) {
|
|
12882
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12883
|
+
captureTable3.set(rep, obj);
|
|
12884
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12885
|
+
}
|
|
12886
|
+
return handle;
|
|
12887
|
+
}
|
|
12888
|
+
,
|
|
11895
12889
|
}), 8, 4, 4 ],
|
|
11896
12890
|
])
|
|
11897
12891
|
],
|
|
12892
|
+
hasResultPointer: true,
|
|
11898
12893
|
funcTypeIsAsync: false,
|
|
11899
12894
|
getCallbackFn: () => null,
|
|
11900
12895
|
getPostReturnFn: () => null,
|
|
@@ -11902,7 +12897,7 @@ null,
|
|
|
11902
12897
|
memoryIdx: 0,
|
|
11903
12898
|
stringEncoding: 'utf8',
|
|
11904
12899
|
getMemoryFn: () => memory0,
|
|
11905
|
-
getReallocFn:
|
|
12900
|
+
getReallocFn: undefined,
|
|
11906
12901
|
importFn: _trampoline33,
|
|
11907
12902
|
},
|
|
11908
12903
|
);
|
|
@@ -11918,10 +12913,24 @@ null,
|
|
|
11918
12913
|
[ 'none', null, 8, 4, 4 ],
|
|
11919
12914
|
[ 'some', _lowerFlatOwn({
|
|
11920
12915
|
componentIdx: 0,
|
|
11921
|
-
lowerFn:
|
|
12916
|
+
lowerFn:
|
|
12917
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12918
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12919
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12920
|
+
}
|
|
12921
|
+
let handle = obj[symbolRscHandle];
|
|
12922
|
+
if (!handle) {
|
|
12923
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12924
|
+
captureTable4.set(rep, obj);
|
|
12925
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12926
|
+
}
|
|
12927
|
+
return handle;
|
|
12928
|
+
}
|
|
12929
|
+
,
|
|
11922
12930
|
}), 8, 4, 4 ],
|
|
11923
12931
|
])
|
|
11924
12932
|
],
|
|
12933
|
+
hasResultPointer: true,
|
|
11925
12934
|
funcTypeIsAsync: false,
|
|
11926
12935
|
getCallbackFn: () => null,
|
|
11927
12936
|
getPostReturnFn: () => null,
|
|
@@ -11929,7 +12938,7 @@ null,
|
|
|
11929
12938
|
memoryIdx: 0,
|
|
11930
12939
|
stringEncoding: 'utf8',
|
|
11931
12940
|
getMemoryFn: () => memory0,
|
|
11932
|
-
getReallocFn:
|
|
12941
|
+
getReallocFn: undefined,
|
|
11933
12942
|
importFn: _trampoline34,
|
|
11934
12943
|
},
|
|
11935
12944
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11944,10 +12953,24 @@ null,
|
|
|
11944
12953
|
[ 'none', null, 8, 4, 4 ],
|
|
11945
12954
|
[ 'some', _lowerFlatOwn({
|
|
11946
12955
|
componentIdx: 0,
|
|
11947
|
-
lowerFn:
|
|
12956
|
+
lowerFn:
|
|
12957
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12958
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12959
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12960
|
+
}
|
|
12961
|
+
let handle = obj[symbolRscHandle];
|
|
12962
|
+
if (!handle) {
|
|
12963
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12964
|
+
captureTable4.set(rep, obj);
|
|
12965
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12966
|
+
}
|
|
12967
|
+
return handle;
|
|
12968
|
+
}
|
|
12969
|
+
,
|
|
11948
12970
|
}), 8, 4, 4 ],
|
|
11949
12971
|
])
|
|
11950
12972
|
],
|
|
12973
|
+
hasResultPointer: true,
|
|
11951
12974
|
funcTypeIsAsync: false,
|
|
11952
12975
|
getCallbackFn: () => null,
|
|
11953
12976
|
getPostReturnFn: () => null,
|
|
@@ -11955,7 +12978,7 @@ null,
|
|
|
11955
12978
|
memoryIdx: 0,
|
|
11956
12979
|
stringEncoding: 'utf8',
|
|
11957
12980
|
getMemoryFn: () => memory0,
|
|
11958
|
-
getReallocFn:
|
|
12981
|
+
getReallocFn: undefined,
|
|
11959
12982
|
importFn: _trampoline34,
|
|
11960
12983
|
},
|
|
11961
12984
|
);
|
|
@@ -11971,10 +12994,24 @@ null,
|
|
|
11971
12994
|
[ 'none', null, 8, 4, 4 ],
|
|
11972
12995
|
[ 'some', _lowerFlatOwn({
|
|
11973
12996
|
componentIdx: 0,
|
|
11974
|
-
lowerFn:
|
|
12997
|
+
lowerFn:
|
|
12998
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12999
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
13000
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
13001
|
+
}
|
|
13002
|
+
let handle = obj[symbolRscHandle];
|
|
13003
|
+
if (!handle) {
|
|
13004
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
13005
|
+
captureTable4.set(rep, obj);
|
|
13006
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
13007
|
+
}
|
|
13008
|
+
return handle;
|
|
13009
|
+
}
|
|
13010
|
+
,
|
|
11975
13011
|
}), 8, 4, 4 ],
|
|
11976
13012
|
])
|
|
11977
13013
|
],
|
|
13014
|
+
hasResultPointer: true,
|
|
11978
13015
|
funcTypeIsAsync: false,
|
|
11979
13016
|
getCallbackFn: () => null,
|
|
11980
13017
|
getPostReturnFn: () => null,
|
|
@@ -11982,7 +13019,7 @@ null,
|
|
|
11982
13019
|
memoryIdx: 0,
|
|
11983
13020
|
stringEncoding: 'utf8',
|
|
11984
13021
|
getMemoryFn: () => memory0,
|
|
11985
|
-
getReallocFn:
|
|
13022
|
+
getReallocFn: undefined,
|
|
11986
13023
|
importFn: _trampoline35,
|
|
11987
13024
|
},
|
|
11988
13025
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11997,10 +13034,24 @@ null,
|
|
|
11997
13034
|
[ 'none', null, 8, 4, 4 ],
|
|
11998
13035
|
[ 'some', _lowerFlatOwn({
|
|
11999
13036
|
componentIdx: 0,
|
|
12000
|
-
lowerFn:
|
|
13037
|
+
lowerFn:
|
|
13038
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
13039
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
13040
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
13041
|
+
}
|
|
13042
|
+
let handle = obj[symbolRscHandle];
|
|
13043
|
+
if (!handle) {
|
|
13044
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
13045
|
+
captureTable4.set(rep, obj);
|
|
13046
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
13047
|
+
}
|
|
13048
|
+
return handle;
|
|
13049
|
+
}
|
|
13050
|
+
,
|
|
12001
13051
|
}), 8, 4, 4 ],
|
|
12002
13052
|
])
|
|
12003
13053
|
],
|
|
13054
|
+
hasResultPointer: true,
|
|
12004
13055
|
funcTypeIsAsync: false,
|
|
12005
13056
|
getCallbackFn: () => null,
|
|
12006
13057
|
getPostReturnFn: () => null,
|
|
@@ -12008,7 +13059,7 @@ null,
|
|
|
12008
13059
|
memoryIdx: 0,
|
|
12009
13060
|
stringEncoding: 'utf8',
|
|
12010
13061
|
getMemoryFn: () => memory0,
|
|
12011
|
-
getReallocFn:
|
|
13062
|
+
getReallocFn: undefined,
|
|
12012
13063
|
importFn: _trampoline35,
|
|
12013
13064
|
},
|
|
12014
13065
|
);
|