@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
|
@@ -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);
|
|
@@ -9087,7 +9480,7 @@ function generate(arg0, arg1) {
|
|
|
9087
9480
|
|
|
9088
9481
|
dataView(memory0).setUint32(ptr0 + 4, len1, true);
|
|
9089
9482
|
dataView(memory0).setUint32(ptr0 + 0, ptr1, true);
|
|
9090
|
-
var {name: v2_0, noTypescript: v2_1, instantiation: v2_2, importBindings: v2_3, map: v2_4, compat: v2_5, noNodejsCompat: v2_6, base64Cutoff: v2_7, tlaCompat: v2_8, validLiftingOptimization: v2_9, tracing: v2_10, noNamespacedExports: v2_11, guest: v2_12, multiMemory: v2_13, asyncMode: v2_14, strict: v2_15 } = arg1;
|
|
9483
|
+
var {name: v2_0, noTypescript: v2_1, instantiation: v2_2, importBindings: v2_3, map: v2_4, compat: v2_5, noNodejsCompat: v2_6, base64Cutoff: v2_7, tlaCompat: v2_8, validLiftingOptimization: v2_9, tracing: v2_10, noNamespacedExports: v2_11, guest: v2_12, multiMemory: v2_13, asyncMode: v2_14, strict: v2_15, asmjs: v2_16 } = arg1;
|
|
9091
9484
|
|
|
9092
9485
|
var encodeRes = _utf8AllocateAndEncode(v2_0, realloc1, memory0);
|
|
9093
9486
|
var ptr3= encodeRes.ptr;
|
|
@@ -9316,6 +9709,14 @@ function generate(arg0, arg1) {
|
|
|
9316
9709
|
dataView(memory0).setInt8(ptr0 + 84, 1, true);
|
|
9317
9710
|
dataView(memory0).setInt8(ptr0 + 85, e ? 1 : 0, true);
|
|
9318
9711
|
}
|
|
9712
|
+
var variant31 = v2_16;
|
|
9713
|
+
if (variant31 === null || variant31=== undefined) {
|
|
9714
|
+
dataView(memory0).setInt8(ptr0 + 86, 0, true);
|
|
9715
|
+
} else {
|
|
9716
|
+
const e = variant31;
|
|
9717
|
+
dataView(memory0).setInt8(ptr0 + 86, 1, true);
|
|
9718
|
+
dataView(memory0).setInt8(ptr0 + 87, e ? 1 : 0, true);
|
|
9719
|
+
}
|
|
9319
9720
|
_debugLog('[iface="generate", function="generate"][Instruction::CallWasm] enter', {
|
|
9320
9721
|
funcName: 'generate',
|
|
9321
9722
|
paramCount: 1,
|
|
@@ -9330,87 +9731,103 @@ function generate(arg0, arg1) {
|
|
|
9330
9731
|
isManualAsync: false,
|
|
9331
9732
|
entryFnName: 'exports1Generate',
|
|
9332
9733
|
getCallbackFn: () => null,
|
|
9333
|
-
callbackFnName:
|
|
9734
|
+
callbackFnName: null,
|
|
9334
9735
|
errHandling: 'throw-result-err',
|
|
9335
9736
|
callingWasmExport: true,
|
|
9336
9737
|
});
|
|
9337
9738
|
|
|
9338
9739
|
const started = task.enterSync();
|
|
9339
|
-
task.setReturnMemoryIdx(0);
|
|
9340
|
-
task.setReturnMemory(memory0);
|
|
9341
|
-
let ret = _withGlobalCurrentTaskMeta({
|
|
9342
|
-
taskID: task.id(),
|
|
9343
|
-
componentIdx: task.componentIdx(),
|
|
9344
|
-
fn: () => exports1Generate(ptr0),
|
|
9345
|
-
});
|
|
9346
9740
|
|
|
9347
|
-
|
|
9741
|
+
if (0!== null) {
|
|
9742
|
+
task.setReturnMemoryIdx(0);
|
|
9743
|
+
task.setReturnMemory(() => memory0());
|
|
9744
|
+
}
|
|
9745
|
+
|
|
9746
|
+
|
|
9747
|
+
let ret;
|
|
9748
|
+
|
|
9749
|
+
try {
|
|
9750
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
9751
|
+
taskID: task.id(),
|
|
9752
|
+
componentIdx: task.componentIdx(),
|
|
9753
|
+
fn: () => exports1Generate(ptr0),
|
|
9754
|
+
});
|
|
9755
|
+
} catch (err) {
|
|
9756
|
+
|
|
9757
|
+
task.setErrored(err);
|
|
9758
|
+
task.reject(err);
|
|
9759
|
+
task.exit();
|
|
9760
|
+
throw err;
|
|
9761
|
+
|
|
9762
|
+
}
|
|
9763
|
+
|
|
9764
|
+
let variant41;
|
|
9348
9765
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
9349
9766
|
case 0: {
|
|
9350
|
-
var
|
|
9351
|
-
var
|
|
9352
|
-
var
|
|
9353
|
-
for (let i = 0; i <
|
|
9354
|
-
const base =
|
|
9355
|
-
var
|
|
9356
|
-
var
|
|
9357
|
-
var
|
|
9358
|
-
var
|
|
9359
|
-
var
|
|
9360
|
-
var
|
|
9361
|
-
|
|
9362
|
-
}
|
|
9363
|
-
var
|
|
9364
|
-
var
|
|
9365
|
-
var
|
|
9366
|
-
for (let i = 0; i <
|
|
9367
|
-
const base =
|
|
9368
|
-
var
|
|
9369
|
-
var
|
|
9370
|
-
var
|
|
9371
|
-
|
|
9372
|
-
}
|
|
9373
|
-
var
|
|
9374
|
-
var
|
|
9375
|
-
var
|
|
9376
|
-
for (let i = 0; i <
|
|
9377
|
-
const base =
|
|
9378
|
-
var
|
|
9379
|
-
var
|
|
9380
|
-
var
|
|
9381
|
-
let
|
|
9767
|
+
var len34 = dataView(memory0).getUint32(ret + 8, true);
|
|
9768
|
+
var base34 = dataView(memory0).getUint32(ret + 4, true);
|
|
9769
|
+
var result34 = [];
|
|
9770
|
+
for (let i = 0; i < len34; i++) {
|
|
9771
|
+
const base = base34 + i * 16;
|
|
9772
|
+
var ptr32 = dataView(memory0).getUint32(base + 0, true);
|
|
9773
|
+
var len32 = dataView(memory0).getUint32(base + 4, true);
|
|
9774
|
+
var result32 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr32, len32));
|
|
9775
|
+
var ptr33 = dataView(memory0).getUint32(base + 8, true);
|
|
9776
|
+
var len33 = dataView(memory0).getUint32(base + 12, true);
|
|
9777
|
+
var result33 = new Uint8Array(memory0.buffer.slice(ptr33, ptr33 + len33 * 1));
|
|
9778
|
+
result34.push([result32, result33]);
|
|
9779
|
+
}
|
|
9780
|
+
var len36 = dataView(memory0).getUint32(ret + 16, true);
|
|
9781
|
+
var base36 = dataView(memory0).getUint32(ret + 12, true);
|
|
9782
|
+
var result36 = [];
|
|
9783
|
+
for (let i = 0; i < len36; i++) {
|
|
9784
|
+
const base = base36 + i * 8;
|
|
9785
|
+
var ptr35 = dataView(memory0).getUint32(base + 0, true);
|
|
9786
|
+
var len35 = dataView(memory0).getUint32(base + 4, true);
|
|
9787
|
+
var result35 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr35, len35));
|
|
9788
|
+
result36.push(result35);
|
|
9789
|
+
}
|
|
9790
|
+
var len39 = dataView(memory0).getUint32(ret + 24, true);
|
|
9791
|
+
var base39 = dataView(memory0).getUint32(ret + 20, true);
|
|
9792
|
+
var result39 = [];
|
|
9793
|
+
for (let i = 0; i < len39; i++) {
|
|
9794
|
+
const base = base39 + i * 12;
|
|
9795
|
+
var ptr37 = dataView(memory0).getUint32(base + 0, true);
|
|
9796
|
+
var len37 = dataView(memory0).getUint32(base + 4, true);
|
|
9797
|
+
var result37 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr37, len37));
|
|
9798
|
+
let enum38;
|
|
9382
9799
|
switch (dataView(memory0).getUint8(base + 8, true)) {
|
|
9383
9800
|
case 0: {
|
|
9384
|
-
|
|
9801
|
+
enum38 = 'function';
|
|
9385
9802
|
break;
|
|
9386
9803
|
}
|
|
9387
9804
|
case 1: {
|
|
9388
|
-
|
|
9805
|
+
enum38 = 'instance';
|
|
9389
9806
|
break;
|
|
9390
9807
|
}
|
|
9391
9808
|
default: {
|
|
9392
9809
|
throw new TypeError('invalid discriminant specified for ExportType');
|
|
9393
9810
|
}
|
|
9394
9811
|
}
|
|
9395
|
-
|
|
9812
|
+
result39.push([result37, enum38]);
|
|
9396
9813
|
}
|
|
9397
|
-
|
|
9814
|
+
variant41= {
|
|
9398
9815
|
tag: 'ok',
|
|
9399
9816
|
val: {
|
|
9400
|
-
files:
|
|
9401
|
-
imports:
|
|
9402
|
-
exports:
|
|
9817
|
+
files: result34,
|
|
9818
|
+
imports: result36,
|
|
9819
|
+
exports: result39,
|
|
9403
9820
|
}
|
|
9404
9821
|
};
|
|
9405
9822
|
break;
|
|
9406
9823
|
}
|
|
9407
9824
|
case 1: {
|
|
9408
|
-
var
|
|
9409
|
-
var
|
|
9410
|
-
var
|
|
9411
|
-
|
|
9825
|
+
var ptr40 = dataView(memory0).getUint32(ret + 4, true);
|
|
9826
|
+
var len40 = dataView(memory0).getUint32(ret + 8, true);
|
|
9827
|
+
var result40 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr40, len40));
|
|
9828
|
+
variant41= {
|
|
9412
9829
|
tag: 'err',
|
|
9413
|
-
val:
|
|
9830
|
+
val: result40
|
|
9414
9831
|
};
|
|
9415
9832
|
break;
|
|
9416
9833
|
}
|
|
@@ -9424,7 +9841,7 @@ function generate(arg0, arg1) {
|
|
|
9424
9841
|
async: false,
|
|
9425
9842
|
postReturn: true
|
|
9426
9843
|
});
|
|
9427
|
-
const retCopy =
|
|
9844
|
+
const retCopy = variant41;
|
|
9428
9845
|
task.resolve([retCopy.val]);
|
|
9429
9846
|
|
|
9430
9847
|
let cstate = getOrCreateAsyncState(0);
|
|
@@ -9706,19 +10123,35 @@ function generateTypes(arg0, arg1) {
|
|
|
9706
10123
|
isManualAsync: false,
|
|
9707
10124
|
entryFnName: 'exports1GenerateTypes',
|
|
9708
10125
|
getCallbackFn: () => null,
|
|
9709
|
-
callbackFnName:
|
|
10126
|
+
callbackFnName: null,
|
|
9710
10127
|
errHandling: 'throw-result-err',
|
|
9711
10128
|
callingWasmExport: true,
|
|
9712
10129
|
});
|
|
9713
10130
|
|
|
9714
10131
|
const started = task.enterSync();
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
10132
|
+
|
|
10133
|
+
if (0!== null) {
|
|
10134
|
+
task.setReturnMemoryIdx(0);
|
|
10135
|
+
task.setReturnMemory(() => memory0());
|
|
10136
|
+
}
|
|
10137
|
+
|
|
10138
|
+
|
|
10139
|
+
let ret;
|
|
10140
|
+
|
|
10141
|
+
try {
|
|
10142
|
+
ret = _withGlobalCurrentTaskMeta({
|
|
10143
|
+
taskID: task.id(),
|
|
10144
|
+
componentIdx: task.componentIdx(),
|
|
10145
|
+
fn: () => exports1GenerateTypes(ptr0),
|
|
10146
|
+
});
|
|
10147
|
+
} catch (err) {
|
|
10148
|
+
|
|
10149
|
+
task.setErrored(err);
|
|
10150
|
+
task.reject(err);
|
|
10151
|
+
task.exit();
|
|
10152
|
+
throw err;
|
|
10153
|
+
|
|
10154
|
+
}
|
|
9722
10155
|
|
|
9723
10156
|
let variant34;
|
|
9724
10157
|
switch (dataView(memory0).getUint8(ret + 0, true)) {
|
|
@@ -9854,8 +10287,22 @@ null,
|
|
|
9854
10287
|
paramLiftFns: [],
|
|
9855
10288
|
resultLowerFns: [_lowerFlatOwn({
|
|
9856
10289
|
componentIdx: 0,
|
|
9857
|
-
lowerFn:
|
|
10290
|
+
lowerFn:
|
|
10291
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10292
|
+
if (!(obj instanceof OutputStream)) {
|
|
10293
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10294
|
+
}
|
|
10295
|
+
let handle = obj[symbolRscHandle];
|
|
10296
|
+
if (!handle) {
|
|
10297
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10298
|
+
captureTable2.set(rep, obj);
|
|
10299
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10300
|
+
}
|
|
10301
|
+
return handle;
|
|
10302
|
+
}
|
|
10303
|
+
,
|
|
9858
10304
|
})],
|
|
10305
|
+
hasResultPointer: false,
|
|
9859
10306
|
funcTypeIsAsync: false,
|
|
9860
10307
|
getCallbackFn: () => null,
|
|
9861
10308
|
getPostReturnFn: () => null,
|
|
@@ -9863,7 +10310,7 @@ null,
|
|
|
9863
10310
|
memoryIdx: null,
|
|
9864
10311
|
stringEncoding: 'utf8',
|
|
9865
10312
|
getMemoryFn: () => null,
|
|
9866
|
-
getReallocFn:
|
|
10313
|
+
getReallocFn: undefined,
|
|
9867
10314
|
importFn: _trampoline5,
|
|
9868
10315
|
},
|
|
9869
10316
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9876,8 +10323,22 @@ null,
|
|
|
9876
10323
|
paramLiftFns: [],
|
|
9877
10324
|
resultLowerFns: [_lowerFlatOwn({
|
|
9878
10325
|
componentIdx: 0,
|
|
9879
|
-
lowerFn:
|
|
10326
|
+
lowerFn:
|
|
10327
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10328
|
+
if (!(obj instanceof OutputStream)) {
|
|
10329
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10330
|
+
}
|
|
10331
|
+
let handle = obj[symbolRscHandle];
|
|
10332
|
+
if (!handle) {
|
|
10333
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10334
|
+
captureTable2.set(rep, obj);
|
|
10335
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10336
|
+
}
|
|
10337
|
+
return handle;
|
|
10338
|
+
}
|
|
10339
|
+
,
|
|
9880
10340
|
})],
|
|
10341
|
+
hasResultPointer: false,
|
|
9881
10342
|
funcTypeIsAsync: false,
|
|
9882
10343
|
getCallbackFn: () => null,
|
|
9883
10344
|
getPostReturnFn: () => null,
|
|
@@ -9885,7 +10346,7 @@ null,
|
|
|
9885
10346
|
memoryIdx: null,
|
|
9886
10347
|
stringEncoding: 'utf8',
|
|
9887
10348
|
getMemoryFn: () => null,
|
|
9888
|
-
getReallocFn:
|
|
10349
|
+
getReallocFn: undefined,
|
|
9889
10350
|
importFn: _trampoline5,
|
|
9890
10351
|
},
|
|
9891
10352
|
);
|
|
@@ -9925,8 +10386,22 @@ null,
|
|
|
9925
10386
|
paramLiftFns: [],
|
|
9926
10387
|
resultLowerFns: [_lowerFlatOwn({
|
|
9927
10388
|
componentIdx: 0,
|
|
9928
|
-
lowerFn:
|
|
10389
|
+
lowerFn:
|
|
10390
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10391
|
+
if (!(obj instanceof InputStream)) {
|
|
10392
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10393
|
+
}
|
|
10394
|
+
let handle = obj[symbolRscHandle];
|
|
10395
|
+
if (!handle) {
|
|
10396
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10397
|
+
captureTable1.set(rep, obj);
|
|
10398
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10399
|
+
}
|
|
10400
|
+
return handle;
|
|
10401
|
+
}
|
|
10402
|
+
,
|
|
9929
10403
|
})],
|
|
10404
|
+
hasResultPointer: false,
|
|
9930
10405
|
funcTypeIsAsync: false,
|
|
9931
10406
|
getCallbackFn: () => null,
|
|
9932
10407
|
getPostReturnFn: () => null,
|
|
@@ -9934,7 +10409,7 @@ null,
|
|
|
9934
10409
|
memoryIdx: null,
|
|
9935
10410
|
stringEncoding: 'utf8',
|
|
9936
10411
|
getMemoryFn: () => null,
|
|
9937
|
-
getReallocFn:
|
|
10412
|
+
getReallocFn: undefined,
|
|
9938
10413
|
importFn: _trampoline8,
|
|
9939
10414
|
},
|
|
9940
10415
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9947,8 +10422,22 @@ null,
|
|
|
9947
10422
|
paramLiftFns: [],
|
|
9948
10423
|
resultLowerFns: [_lowerFlatOwn({
|
|
9949
10424
|
componentIdx: 0,
|
|
9950
|
-
lowerFn:
|
|
10425
|
+
lowerFn:
|
|
10426
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10427
|
+
if (!(obj instanceof InputStream)) {
|
|
10428
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10429
|
+
}
|
|
10430
|
+
let handle = obj[symbolRscHandle];
|
|
10431
|
+
if (!handle) {
|
|
10432
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10433
|
+
captureTable1.set(rep, obj);
|
|
10434
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10435
|
+
}
|
|
10436
|
+
return handle;
|
|
10437
|
+
}
|
|
10438
|
+
,
|
|
9951
10439
|
})],
|
|
10440
|
+
hasResultPointer: false,
|
|
9952
10441
|
funcTypeIsAsync: false,
|
|
9953
10442
|
getCallbackFn: () => null,
|
|
9954
10443
|
getPostReturnFn: () => null,
|
|
@@ -9956,7 +10445,7 @@ null,
|
|
|
9956
10445
|
memoryIdx: null,
|
|
9957
10446
|
stringEncoding: 'utf8',
|
|
9958
10447
|
getMemoryFn: () => null,
|
|
9959
|
-
getReallocFn:
|
|
10448
|
+
getReallocFn: undefined,
|
|
9960
10449
|
importFn: _trampoline8,
|
|
9961
10450
|
},
|
|
9962
10451
|
);
|
|
@@ -9970,8 +10459,22 @@ null,
|
|
|
9970
10459
|
paramLiftFns: [],
|
|
9971
10460
|
resultLowerFns: [_lowerFlatOwn({
|
|
9972
10461
|
componentIdx: 0,
|
|
9973
|
-
lowerFn:
|
|
10462
|
+
lowerFn:
|
|
10463
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10464
|
+
if (!(obj instanceof OutputStream)) {
|
|
10465
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10466
|
+
}
|
|
10467
|
+
let handle = obj[symbolRscHandle];
|
|
10468
|
+
if (!handle) {
|
|
10469
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10470
|
+
captureTable2.set(rep, obj);
|
|
10471
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10472
|
+
}
|
|
10473
|
+
return handle;
|
|
10474
|
+
}
|
|
10475
|
+
,
|
|
9974
10476
|
})],
|
|
10477
|
+
hasResultPointer: false,
|
|
9975
10478
|
funcTypeIsAsync: false,
|
|
9976
10479
|
getCallbackFn: () => null,
|
|
9977
10480
|
getPostReturnFn: () => null,
|
|
@@ -9979,7 +10482,7 @@ null,
|
|
|
9979
10482
|
memoryIdx: null,
|
|
9980
10483
|
stringEncoding: 'utf8',
|
|
9981
10484
|
getMemoryFn: () => null,
|
|
9982
|
-
getReallocFn:
|
|
10485
|
+
getReallocFn: undefined,
|
|
9983
10486
|
importFn: _trampoline9,
|
|
9984
10487
|
},
|
|
9985
10488
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -9992,8 +10495,22 @@ null,
|
|
|
9992
10495
|
paramLiftFns: [],
|
|
9993
10496
|
resultLowerFns: [_lowerFlatOwn({
|
|
9994
10497
|
componentIdx: 0,
|
|
9995
|
-
lowerFn:
|
|
10498
|
+
lowerFn:
|
|
10499
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10500
|
+
if (!(obj instanceof OutputStream)) {
|
|
10501
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10502
|
+
}
|
|
10503
|
+
let handle = obj[symbolRscHandle];
|
|
10504
|
+
if (!handle) {
|
|
10505
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10506
|
+
captureTable2.set(rep, obj);
|
|
10507
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10508
|
+
}
|
|
10509
|
+
return handle;
|
|
10510
|
+
}
|
|
10511
|
+
,
|
|
9996
10512
|
})],
|
|
10513
|
+
hasResultPointer: false,
|
|
9997
10514
|
funcTypeIsAsync: false,
|
|
9998
10515
|
getCallbackFn: () => null,
|
|
9999
10516
|
getPostReturnFn: () => null,
|
|
@@ -10001,7 +10518,7 @@ null,
|
|
|
10001
10518
|
memoryIdx: null,
|
|
10002
10519
|
stringEncoding: 'utf8',
|
|
10003
10520
|
getMemoryFn: () => null,
|
|
10004
|
-
getReallocFn:
|
|
10521
|
+
getReallocFn: undefined,
|
|
10005
10522
|
importFn: _trampoline9,
|
|
10006
10523
|
},
|
|
10007
10524
|
);
|
|
@@ -10012,8 +10529,9 @@ null,
|
|
|
10012
10529
|
componentIdx: 0,
|
|
10013
10530
|
isAsync: false,
|
|
10014
10531
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10015
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10532
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10016
10533
|
resultLowerFns: [],
|
|
10534
|
+
hasResultPointer: false,
|
|
10017
10535
|
funcTypeIsAsync: false,
|
|
10018
10536
|
getCallbackFn: () => null,
|
|
10019
10537
|
getPostReturnFn: () => null,
|
|
@@ -10021,7 +10539,7 @@ null,
|
|
|
10021
10539
|
memoryIdx: null,
|
|
10022
10540
|
stringEncoding: 'utf8',
|
|
10023
10541
|
getMemoryFn: () => null,
|
|
10024
|
-
getReallocFn:
|
|
10542
|
+
getReallocFn: undefined,
|
|
10025
10543
|
importFn: _trampoline10,
|
|
10026
10544
|
},
|
|
10027
10545
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10031,8 +10549,9 @@ null,
|
|
|
10031
10549
|
componentIdx: 0,
|
|
10032
10550
|
isAsync: false,
|
|
10033
10551
|
isManualAsync: _trampoline10.manuallyAsync,
|
|
10034
|
-
paramLiftFns: [_liftFlatResult([['ok', null,
|
|
10552
|
+
paramLiftFns: [_liftFlatResult([['ok', null, 1, 1, 1, 0, 1],['err', null, 1, 1, 1, 0, 1],])],
|
|
10035
10553
|
resultLowerFns: [],
|
|
10554
|
+
hasResultPointer: false,
|
|
10036
10555
|
funcTypeIsAsync: false,
|
|
10037
10556
|
getCallbackFn: () => null,
|
|
10038
10557
|
getPostReturnFn: () => null,
|
|
@@ -10040,7 +10559,7 @@ null,
|
|
|
10040
10559
|
memoryIdx: null,
|
|
10041
10560
|
stringEncoding: 'utf8',
|
|
10042
10561
|
getMemoryFn: () => null,
|
|
10043
|
-
getReallocFn:
|
|
10562
|
+
getReallocFn: undefined,
|
|
10044
10563
|
importFn: _trampoline10,
|
|
10045
10564
|
},
|
|
10046
10565
|
);
|
|
@@ -10053,10 +10572,11 @@ null,
|
|
|
10053
10572
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10054
10573
|
paramLiftFns: [],
|
|
10055
10574
|
resultLowerFns: [_lowerFlatList({
|
|
10056
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10575
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10057
10576
|
elemSize32: 16,
|
|
10058
10577
|
elemAlign32: 4,
|
|
10059
10578
|
})],
|
|
10579
|
+
hasResultPointer: true,
|
|
10060
10580
|
funcTypeIsAsync: false,
|
|
10061
10581
|
getCallbackFn: () => null,
|
|
10062
10582
|
getPostReturnFn: () => null,
|
|
@@ -10076,10 +10596,11 @@ null,
|
|
|
10076
10596
|
isManualAsync: _trampoline11.manuallyAsync,
|
|
10077
10597
|
paramLiftFns: [],
|
|
10078
10598
|
resultLowerFns: [_lowerFlatList({
|
|
10079
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatStringAny,
|
|
10599
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatStringAny, 8, 4],[_lowerFlatStringAny, 8, 4],], size32: 16, align32: 4 }),
|
|
10080
10600
|
elemSize32: 16,
|
|
10081
10601
|
elemAlign32: 4,
|
|
10082
10602
|
})],
|
|
10603
|
+
hasResultPointer: true,
|
|
10083
10604
|
funcTypeIsAsync: false,
|
|
10084
10605
|
getCallbackFn: () => null,
|
|
10085
10606
|
getPostReturnFn: () => null,
|
|
@@ -10104,6 +10625,7 @@ null,
|
|
|
10104
10625
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10105
10626
|
])
|
|
10106
10627
|
],
|
|
10628
|
+
hasResultPointer: true,
|
|
10107
10629
|
funcTypeIsAsync: false,
|
|
10108
10630
|
getCallbackFn: () => null,
|
|
10109
10631
|
getPostReturnFn: () => null,
|
|
@@ -10111,7 +10633,7 @@ null,
|
|
|
10111
10633
|
memoryIdx: 0,
|
|
10112
10634
|
stringEncoding: 'utf8',
|
|
10113
10635
|
getMemoryFn: () => memory0,
|
|
10114
|
-
getReallocFn:
|
|
10636
|
+
getReallocFn: undefined,
|
|
10115
10637
|
importFn: _trampoline12,
|
|
10116
10638
|
},
|
|
10117
10639
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10127,6 +10649,7 @@ null,
|
|
|
10127
10649
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10128
10650
|
])
|
|
10129
10651
|
],
|
|
10652
|
+
hasResultPointer: true,
|
|
10130
10653
|
funcTypeIsAsync: false,
|
|
10131
10654
|
getCallbackFn: () => null,
|
|
10132
10655
|
getPostReturnFn: () => null,
|
|
@@ -10134,7 +10657,7 @@ null,
|
|
|
10134
10657
|
memoryIdx: 0,
|
|
10135
10658
|
stringEncoding: 'utf8',
|
|
10136
10659
|
getMemoryFn: () => memory0,
|
|
10137
|
-
getReallocFn:
|
|
10660
|
+
getReallocFn: undefined,
|
|
10138
10661
|
importFn: _trampoline12,
|
|
10139
10662
|
},
|
|
10140
10663
|
);
|
|
@@ -10151,6 +10674,7 @@ null,
|
|
|
10151
10674
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10152
10675
|
])
|
|
10153
10676
|
],
|
|
10677
|
+
hasResultPointer: true,
|
|
10154
10678
|
funcTypeIsAsync: false,
|
|
10155
10679
|
getCallbackFn: () => null,
|
|
10156
10680
|
getPostReturnFn: () => null,
|
|
@@ -10158,7 +10682,7 @@ null,
|
|
|
10158
10682
|
memoryIdx: 0,
|
|
10159
10683
|
stringEncoding: 'utf8',
|
|
10160
10684
|
getMemoryFn: () => memory0,
|
|
10161
|
-
getReallocFn:
|
|
10685
|
+
getReallocFn: undefined,
|
|
10162
10686
|
importFn: _trampoline13,
|
|
10163
10687
|
},
|
|
10164
10688
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10174,6 +10698,7 @@ null,
|
|
|
10174
10698
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10175
10699
|
])
|
|
10176
10700
|
],
|
|
10701
|
+
hasResultPointer: true,
|
|
10177
10702
|
funcTypeIsAsync: false,
|
|
10178
10703
|
getCallbackFn: () => null,
|
|
10179
10704
|
getPostReturnFn: () => null,
|
|
@@ -10181,7 +10706,7 @@ null,
|
|
|
10181
10706
|
memoryIdx: 0,
|
|
10182
10707
|
stringEncoding: 'utf8',
|
|
10183
10708
|
getMemoryFn: () => memory0,
|
|
10184
|
-
getReallocFn:
|
|
10709
|
+
getReallocFn: undefined,
|
|
10185
10710
|
importFn: _trampoline13,
|
|
10186
10711
|
},
|
|
10187
10712
|
);
|
|
@@ -10194,10 +10719,11 @@ null,
|
|
|
10194
10719
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10195
10720
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10196
10721
|
resultLowerFns: [_lowerFlatResult([
|
|
10197
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10722
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10198
10723
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10199
10724
|
])
|
|
10200
10725
|
],
|
|
10726
|
+
hasResultPointer: true,
|
|
10201
10727
|
funcTypeIsAsync: false,
|
|
10202
10728
|
getCallbackFn: () => null,
|
|
10203
10729
|
getPostReturnFn: () => null,
|
|
@@ -10205,7 +10731,7 @@ null,
|
|
|
10205
10731
|
memoryIdx: 0,
|
|
10206
10732
|
stringEncoding: 'utf8',
|
|
10207
10733
|
getMemoryFn: () => memory0,
|
|
10208
|
-
getReallocFn:
|
|
10734
|
+
getReallocFn: undefined,
|
|
10209
10735
|
importFn: _trampoline14,
|
|
10210
10736
|
},
|
|
10211
10737
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10217,10 +10743,11 @@ null,
|
|
|
10217
10743
|
isManualAsync: _trampoline14.manuallyAsync,
|
|
10218
10744
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10219
10745
|
resultLowerFns: [_lowerFlatResult([
|
|
10220
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10746
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10221
10747
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10222
10748
|
])
|
|
10223
10749
|
],
|
|
10750
|
+
hasResultPointer: true,
|
|
10224
10751
|
funcTypeIsAsync: false,
|
|
10225
10752
|
getCallbackFn: () => null,
|
|
10226
10753
|
getPostReturnFn: () => null,
|
|
@@ -10228,7 +10755,7 @@ null,
|
|
|
10228
10755
|
memoryIdx: 0,
|
|
10229
10756
|
stringEncoding: 'utf8',
|
|
10230
10757
|
getMemoryFn: () => memory0,
|
|
10231
|
-
getReallocFn:
|
|
10758
|
+
getReallocFn: undefined,
|
|
10232
10759
|
importFn: _trampoline14,
|
|
10233
10760
|
},
|
|
10234
10761
|
);
|
|
@@ -10245,6 +10772,7 @@ null,
|
|
|
10245
10772
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10246
10773
|
])
|
|
10247
10774
|
],
|
|
10775
|
+
hasResultPointer: true,
|
|
10248
10776
|
funcTypeIsAsync: false,
|
|
10249
10777
|
getCallbackFn: () => null,
|
|
10250
10778
|
getPostReturnFn: () => null,
|
|
@@ -10252,7 +10780,7 @@ null,
|
|
|
10252
10780
|
memoryIdx: 0,
|
|
10253
10781
|
stringEncoding: 'utf8',
|
|
10254
10782
|
getMemoryFn: () => memory0,
|
|
10255
|
-
getReallocFn:
|
|
10783
|
+
getReallocFn: undefined,
|
|
10256
10784
|
importFn: _trampoline15,
|
|
10257
10785
|
},
|
|
10258
10786
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10268,6 +10796,7 @@ null,
|
|
|
10268
10796
|
[ 'some', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 2, 1, 1 ],
|
|
10269
10797
|
])
|
|
10270
10798
|
],
|
|
10799
|
+
hasResultPointer: true,
|
|
10271
10800
|
funcTypeIsAsync: false,
|
|
10272
10801
|
getCallbackFn: () => null,
|
|
10273
10802
|
getPostReturnFn: () => null,
|
|
@@ -10275,7 +10804,7 @@ null,
|
|
|
10275
10804
|
memoryIdx: 0,
|
|
10276
10805
|
stringEncoding: 'utf8',
|
|
10277
10806
|
getMemoryFn: () => memory0,
|
|
10278
|
-
getReallocFn:
|
|
10807
|
+
getReallocFn: undefined,
|
|
10279
10808
|
importFn: _trampoline15,
|
|
10280
10809
|
},
|
|
10281
10810
|
);
|
|
@@ -10288,10 +10817,11 @@ null,
|
|
|
10288
10817
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10289
10818
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10290
10819
|
resultLowerFns: [_lowerFlatResult([
|
|
10291
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10820
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10292
10821
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10293
10822
|
])
|
|
10294
10823
|
],
|
|
10824
|
+
hasResultPointer: true,
|
|
10295
10825
|
funcTypeIsAsync: false,
|
|
10296
10826
|
getCallbackFn: () => null,
|
|
10297
10827
|
getPostReturnFn: () => null,
|
|
@@ -10299,7 +10829,7 @@ null,
|
|
|
10299
10829
|
memoryIdx: 0,
|
|
10300
10830
|
stringEncoding: 'utf8',
|
|
10301
10831
|
getMemoryFn: () => memory0,
|
|
10302
|
-
getReallocFn:
|
|
10832
|
+
getReallocFn: undefined,
|
|
10303
10833
|
importFn: _trampoline16,
|
|
10304
10834
|
},
|
|
10305
10835
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10311,10 +10841,11 @@ null,
|
|
|
10311
10841
|
isManualAsync: _trampoline16.manuallyAsync,
|
|
10312
10842
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10313
10843
|
resultLowerFns: [_lowerFlatResult([
|
|
10314
|
-
[ 'ok', _lowerFlatRecord([['lower', _lowerFlatU64,
|
|
10844
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10315
10845
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 24, 8, 8 ],
|
|
10316
10846
|
])
|
|
10317
10847
|
],
|
|
10848
|
+
hasResultPointer: true,
|
|
10318
10849
|
funcTypeIsAsync: false,
|
|
10319
10850
|
getCallbackFn: () => null,
|
|
10320
10851
|
getPostReturnFn: () => null,
|
|
@@ -10322,7 +10853,7 @@ null,
|
|
|
10322
10853
|
memoryIdx: 0,
|
|
10323
10854
|
stringEncoding: 'utf8',
|
|
10324
10855
|
getMemoryFn: () => memory0,
|
|
10325
|
-
getReallocFn:
|
|
10856
|
+
getReallocFn: undefined,
|
|
10326
10857
|
importFn: _trampoline16,
|
|
10327
10858
|
},
|
|
10328
10859
|
);
|
|
@@ -10337,11 +10868,25 @@ null,
|
|
|
10337
10868
|
resultLowerFns: [_lowerFlatResult([
|
|
10338
10869
|
[ 'ok', _lowerFlatOwn({
|
|
10339
10870
|
componentIdx: 0,
|
|
10340
|
-
lowerFn:
|
|
10871
|
+
lowerFn:
|
|
10872
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10873
|
+
if (!(obj instanceof InputStream)) {
|
|
10874
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10875
|
+
}
|
|
10876
|
+
let handle = obj[symbolRscHandle];
|
|
10877
|
+
if (!handle) {
|
|
10878
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10879
|
+
captureTable1.set(rep, obj);
|
|
10880
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10881
|
+
}
|
|
10882
|
+
return handle;
|
|
10883
|
+
}
|
|
10884
|
+
,
|
|
10341
10885
|
}), 8, 4, 4 ],
|
|
10342
10886
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10343
10887
|
])
|
|
10344
10888
|
],
|
|
10889
|
+
hasResultPointer: true,
|
|
10345
10890
|
funcTypeIsAsync: false,
|
|
10346
10891
|
getCallbackFn: () => null,
|
|
10347
10892
|
getPostReturnFn: () => null,
|
|
@@ -10349,7 +10894,7 @@ null,
|
|
|
10349
10894
|
memoryIdx: 0,
|
|
10350
10895
|
stringEncoding: 'utf8',
|
|
10351
10896
|
getMemoryFn: () => memory0,
|
|
10352
|
-
getReallocFn:
|
|
10897
|
+
getReallocFn: undefined,
|
|
10353
10898
|
importFn: _trampoline17,
|
|
10354
10899
|
},
|
|
10355
10900
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10363,11 +10908,25 @@ null,
|
|
|
10363
10908
|
resultLowerFns: [_lowerFlatResult([
|
|
10364
10909
|
[ 'ok', _lowerFlatOwn({
|
|
10365
10910
|
componentIdx: 0,
|
|
10366
|
-
lowerFn:
|
|
10911
|
+
lowerFn:
|
|
10912
|
+
function lowerImportedOwnedHost_InputStream(obj) {
|
|
10913
|
+
if (!(obj instanceof InputStream)) {
|
|
10914
|
+
throw new TypeError('Resource error: Not a valid \"InputStream\" resource.');
|
|
10915
|
+
}
|
|
10916
|
+
let handle = obj[symbolRscHandle];
|
|
10917
|
+
if (!handle) {
|
|
10918
|
+
const rep = obj[symbolRscRep] || ++captureCnt1;
|
|
10919
|
+
captureTable1.set(rep, obj);
|
|
10920
|
+
handle = rscTableCreateOwn(handleTable1, rep);
|
|
10921
|
+
}
|
|
10922
|
+
return handle;
|
|
10923
|
+
}
|
|
10924
|
+
,
|
|
10367
10925
|
}), 8, 4, 4 ],
|
|
10368
10926
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10369
10927
|
])
|
|
10370
10928
|
],
|
|
10929
|
+
hasResultPointer: true,
|
|
10371
10930
|
funcTypeIsAsync: false,
|
|
10372
10931
|
getCallbackFn: () => null,
|
|
10373
10932
|
getPostReturnFn: () => null,
|
|
@@ -10375,7 +10934,7 @@ null,
|
|
|
10375
10934
|
memoryIdx: 0,
|
|
10376
10935
|
stringEncoding: 'utf8',
|
|
10377
10936
|
getMemoryFn: () => memory0,
|
|
10378
|
-
getReallocFn:
|
|
10937
|
+
getReallocFn: undefined,
|
|
10379
10938
|
importFn: _trampoline17,
|
|
10380
10939
|
},
|
|
10381
10940
|
);
|
|
@@ -10390,11 +10949,25 @@ null,
|
|
|
10390
10949
|
resultLowerFns: [_lowerFlatResult([
|
|
10391
10950
|
[ 'ok', _lowerFlatOwn({
|
|
10392
10951
|
componentIdx: 0,
|
|
10393
|
-
lowerFn:
|
|
10952
|
+
lowerFn:
|
|
10953
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10954
|
+
if (!(obj instanceof OutputStream)) {
|
|
10955
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10956
|
+
}
|
|
10957
|
+
let handle = obj[symbolRscHandle];
|
|
10958
|
+
if (!handle) {
|
|
10959
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
10960
|
+
captureTable2.set(rep, obj);
|
|
10961
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
10962
|
+
}
|
|
10963
|
+
return handle;
|
|
10964
|
+
}
|
|
10965
|
+
,
|
|
10394
10966
|
}), 8, 4, 4 ],
|
|
10395
10967
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10396
10968
|
])
|
|
10397
10969
|
],
|
|
10970
|
+
hasResultPointer: true,
|
|
10398
10971
|
funcTypeIsAsync: false,
|
|
10399
10972
|
getCallbackFn: () => null,
|
|
10400
10973
|
getPostReturnFn: () => null,
|
|
@@ -10402,7 +10975,7 @@ null,
|
|
|
10402
10975
|
memoryIdx: 0,
|
|
10403
10976
|
stringEncoding: 'utf8',
|
|
10404
10977
|
getMemoryFn: () => memory0,
|
|
10405
|
-
getReallocFn:
|
|
10978
|
+
getReallocFn: undefined,
|
|
10406
10979
|
importFn: _trampoline18,
|
|
10407
10980
|
},
|
|
10408
10981
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10416,11 +10989,25 @@ null,
|
|
|
10416
10989
|
resultLowerFns: [_lowerFlatResult([
|
|
10417
10990
|
[ 'ok', _lowerFlatOwn({
|
|
10418
10991
|
componentIdx: 0,
|
|
10419
|
-
lowerFn:
|
|
10992
|
+
lowerFn:
|
|
10993
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
10994
|
+
if (!(obj instanceof OutputStream)) {
|
|
10995
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
10996
|
+
}
|
|
10997
|
+
let handle = obj[symbolRscHandle];
|
|
10998
|
+
if (!handle) {
|
|
10999
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11000
|
+
captureTable2.set(rep, obj);
|
|
11001
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11002
|
+
}
|
|
11003
|
+
return handle;
|
|
11004
|
+
}
|
|
11005
|
+
,
|
|
10420
11006
|
}), 8, 4, 4 ],
|
|
10421
11007
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10422
11008
|
])
|
|
10423
11009
|
],
|
|
11010
|
+
hasResultPointer: true,
|
|
10424
11011
|
funcTypeIsAsync: false,
|
|
10425
11012
|
getCallbackFn: () => null,
|
|
10426
11013
|
getPostReturnFn: () => null,
|
|
@@ -10428,7 +11015,7 @@ null,
|
|
|
10428
11015
|
memoryIdx: 0,
|
|
10429
11016
|
stringEncoding: 'utf8',
|
|
10430
11017
|
getMemoryFn: () => memory0,
|
|
10431
|
-
getReallocFn:
|
|
11018
|
+
getReallocFn: undefined,
|
|
10432
11019
|
importFn: _trampoline18,
|
|
10433
11020
|
},
|
|
10434
11021
|
);
|
|
@@ -10443,11 +11030,25 @@ null,
|
|
|
10443
11030
|
resultLowerFns: [_lowerFlatResult([
|
|
10444
11031
|
[ 'ok', _lowerFlatOwn({
|
|
10445
11032
|
componentIdx: 0,
|
|
10446
|
-
lowerFn:
|
|
11033
|
+
lowerFn:
|
|
11034
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11035
|
+
if (!(obj instanceof OutputStream)) {
|
|
11036
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11037
|
+
}
|
|
11038
|
+
let handle = obj[symbolRscHandle];
|
|
11039
|
+
if (!handle) {
|
|
11040
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11041
|
+
captureTable2.set(rep, obj);
|
|
11042
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11043
|
+
}
|
|
11044
|
+
return handle;
|
|
11045
|
+
}
|
|
11046
|
+
,
|
|
10447
11047
|
}), 8, 4, 4 ],
|
|
10448
11048
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10449
11049
|
])
|
|
10450
11050
|
],
|
|
11051
|
+
hasResultPointer: true,
|
|
10451
11052
|
funcTypeIsAsync: false,
|
|
10452
11053
|
getCallbackFn: () => null,
|
|
10453
11054
|
getPostReturnFn: () => null,
|
|
@@ -10455,7 +11056,7 @@ null,
|
|
|
10455
11056
|
memoryIdx: 0,
|
|
10456
11057
|
stringEncoding: 'utf8',
|
|
10457
11058
|
getMemoryFn: () => memory0,
|
|
10458
|
-
getReallocFn:
|
|
11059
|
+
getReallocFn: undefined,
|
|
10459
11060
|
importFn: _trampoline19,
|
|
10460
11061
|
},
|
|
10461
11062
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10469,11 +11070,25 @@ null,
|
|
|
10469
11070
|
resultLowerFns: [_lowerFlatResult([
|
|
10470
11071
|
[ 'ok', _lowerFlatOwn({
|
|
10471
11072
|
componentIdx: 0,
|
|
10472
|
-
lowerFn:
|
|
11073
|
+
lowerFn:
|
|
11074
|
+
function lowerImportedOwnedHost_OutputStream(obj) {
|
|
11075
|
+
if (!(obj instanceof OutputStream)) {
|
|
11076
|
+
throw new TypeError('Resource error: Not a valid \"OutputStream\" resource.');
|
|
11077
|
+
}
|
|
11078
|
+
let handle = obj[symbolRscHandle];
|
|
11079
|
+
if (!handle) {
|
|
11080
|
+
const rep = obj[symbolRscRep] || ++captureCnt2;
|
|
11081
|
+
captureTable2.set(rep, obj);
|
|
11082
|
+
handle = rscTableCreateOwn(handleTable2, rep);
|
|
11083
|
+
}
|
|
11084
|
+
return handle;
|
|
11085
|
+
}
|
|
11086
|
+
,
|
|
10473
11087
|
}), 8, 4, 4 ],
|
|
10474
11088
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10475
11089
|
])
|
|
10476
11090
|
],
|
|
11091
|
+
hasResultPointer: true,
|
|
10477
11092
|
funcTypeIsAsync: false,
|
|
10478
11093
|
getCallbackFn: () => null,
|
|
10479
11094
|
getPostReturnFn: () => null,
|
|
@@ -10481,7 +11096,7 @@ null,
|
|
|
10481
11096
|
memoryIdx: 0,
|
|
10482
11097
|
stringEncoding: 'utf8',
|
|
10483
11098
|
getMemoryFn: () => memory0,
|
|
10484
|
-
getReallocFn:
|
|
11099
|
+
getReallocFn: undefined,
|
|
10485
11100
|
importFn: _trampoline19,
|
|
10486
11101
|
},
|
|
10487
11102
|
);
|
|
@@ -10496,11 +11111,25 @@ null,
|
|
|
10496
11111
|
resultLowerFns: [_lowerFlatResult([
|
|
10497
11112
|
[ 'ok', _lowerFlatOwn({
|
|
10498
11113
|
componentIdx: 0,
|
|
10499
|
-
lowerFn:
|
|
11114
|
+
lowerFn:
|
|
11115
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11116
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11117
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11118
|
+
}
|
|
11119
|
+
let handle = obj[symbolRscHandle];
|
|
11120
|
+
if (!handle) {
|
|
11121
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11122
|
+
captureTable5.set(rep, obj);
|
|
11123
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11124
|
+
}
|
|
11125
|
+
return handle;
|
|
11126
|
+
}
|
|
11127
|
+
,
|
|
10500
11128
|
}), 8, 4, 4 ],
|
|
10501
11129
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10502
11130
|
])
|
|
10503
11131
|
],
|
|
11132
|
+
hasResultPointer: true,
|
|
10504
11133
|
funcTypeIsAsync: false,
|
|
10505
11134
|
getCallbackFn: () => null,
|
|
10506
11135
|
getPostReturnFn: () => null,
|
|
@@ -10508,7 +11137,7 @@ null,
|
|
|
10508
11137
|
memoryIdx: 0,
|
|
10509
11138
|
stringEncoding: 'utf8',
|
|
10510
11139
|
getMemoryFn: () => memory0,
|
|
10511
|
-
getReallocFn:
|
|
11140
|
+
getReallocFn: undefined,
|
|
10512
11141
|
importFn: _trampoline20,
|
|
10513
11142
|
},
|
|
10514
11143
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10522,11 +11151,25 @@ null,
|
|
|
10522
11151
|
resultLowerFns: [_lowerFlatResult([
|
|
10523
11152
|
[ 'ok', _lowerFlatOwn({
|
|
10524
11153
|
componentIdx: 0,
|
|
10525
|
-
lowerFn:
|
|
11154
|
+
lowerFn:
|
|
11155
|
+
function lowerImportedOwnedHost_DirectoryEntryStream(obj) {
|
|
11156
|
+
if (!(obj instanceof DirectoryEntryStream)) {
|
|
11157
|
+
throw new TypeError('Resource error: Not a valid \"DirectoryEntryStream\" resource.');
|
|
11158
|
+
}
|
|
11159
|
+
let handle = obj[symbolRscHandle];
|
|
11160
|
+
if (!handle) {
|
|
11161
|
+
const rep = obj[symbolRscRep] || ++captureCnt5;
|
|
11162
|
+
captureTable5.set(rep, obj);
|
|
11163
|
+
handle = rscTableCreateOwn(handleTable5, rep);
|
|
11164
|
+
}
|
|
11165
|
+
return handle;
|
|
11166
|
+
}
|
|
11167
|
+
,
|
|
10526
11168
|
}), 8, 4, 4 ],
|
|
10527
11169
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10528
11170
|
])
|
|
10529
11171
|
],
|
|
11172
|
+
hasResultPointer: true,
|
|
10530
11173
|
funcTypeIsAsync: false,
|
|
10531
11174
|
getCallbackFn: () => null,
|
|
10532
11175
|
getPostReturnFn: () => null,
|
|
@@ -10534,7 +11177,7 @@ null,
|
|
|
10534
11177
|
memoryIdx: 0,
|
|
10535
11178
|
stringEncoding: 'utf8',
|
|
10536
11179
|
getMemoryFn: () => memory0,
|
|
10537
|
-
getReallocFn:
|
|
11180
|
+
getReallocFn: undefined,
|
|
10538
11181
|
importFn: _trampoline20,
|
|
10539
11182
|
},
|
|
10540
11183
|
);
|
|
@@ -10547,22 +11190,23 @@ null,
|
|
|
10547
11190
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10548
11191
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10549
11192
|
resultLowerFns: [_lowerFlatResult([
|
|
10550
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11193
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10551
11194
|
[ 'none', null, 24, 8, 8 ],
|
|
10552
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11195
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10553
11196
|
])
|
|
10554
|
-
,
|
|
11197
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10555
11198
|
[ 'none', null, 24, 8, 8 ],
|
|
10556
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11199
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10557
11200
|
])
|
|
10558
|
-
,
|
|
11201
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10559
11202
|
[ 'none', null, 24, 8, 8 ],
|
|
10560
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11203
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10561
11204
|
])
|
|
10562
|
-
,
|
|
11205
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10563
11206
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10564
11207
|
])
|
|
10565
11208
|
],
|
|
11209
|
+
hasResultPointer: true,
|
|
10566
11210
|
funcTypeIsAsync: false,
|
|
10567
11211
|
getCallbackFn: () => null,
|
|
10568
11212
|
getPostReturnFn: () => null,
|
|
@@ -10570,7 +11214,7 @@ null,
|
|
|
10570
11214
|
memoryIdx: 0,
|
|
10571
11215
|
stringEncoding: 'utf8',
|
|
10572
11216
|
getMemoryFn: () => memory0,
|
|
10573
|
-
getReallocFn:
|
|
11217
|
+
getReallocFn: undefined,
|
|
10574
11218
|
importFn: _trampoline21,
|
|
10575
11219
|
},
|
|
10576
11220
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10582,22 +11226,23 @@ null,
|
|
|
10582
11226
|
isManualAsync: _trampoline21.manuallyAsync,
|
|
10583
11227
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
|
|
10584
11228
|
resultLowerFns: [_lowerFlatResult([
|
|
10585
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11229
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10586
11230
|
[ 'none', null, 24, 8, 8 ],
|
|
10587
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11231
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10588
11232
|
])
|
|
10589
|
-
,
|
|
11233
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10590
11234
|
[ 'none', null, 24, 8, 8 ],
|
|
10591
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11235
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10592
11236
|
])
|
|
10593
|
-
,
|
|
11237
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10594
11238
|
[ 'none', null, 24, 8, 8 ],
|
|
10595
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11239
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10596
11240
|
])
|
|
10597
|
-
,
|
|
11241
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10598
11242
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10599
11243
|
])
|
|
10600
11244
|
],
|
|
11245
|
+
hasResultPointer: true,
|
|
10601
11246
|
funcTypeIsAsync: false,
|
|
10602
11247
|
getCallbackFn: () => null,
|
|
10603
11248
|
getPostReturnFn: () => null,
|
|
@@ -10605,7 +11250,7 @@ null,
|
|
|
10605
11250
|
memoryIdx: 0,
|
|
10606
11251
|
stringEncoding: 'utf8',
|
|
10607
11252
|
getMemoryFn: () => memory0,
|
|
10608
|
-
getReallocFn:
|
|
11253
|
+
getReallocFn: undefined,
|
|
10609
11254
|
importFn: _trampoline21,
|
|
10610
11255
|
},
|
|
10611
11256
|
);
|
|
@@ -10618,22 +11263,23 @@ null,
|
|
|
10618
11263
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10619
11264
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10620
11265
|
resultLowerFns: [_lowerFlatResult([
|
|
10621
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11266
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10622
11267
|
[ 'none', null, 24, 8, 8 ],
|
|
10623
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11268
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10624
11269
|
])
|
|
10625
|
-
,
|
|
11270
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10626
11271
|
[ 'none', null, 24, 8, 8 ],
|
|
10627
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11272
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10628
11273
|
])
|
|
10629
|
-
,
|
|
11274
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10630
11275
|
[ 'none', null, 24, 8, 8 ],
|
|
10631
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11276
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10632
11277
|
])
|
|
10633
|
-
,
|
|
11278
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10634
11279
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10635
11280
|
])
|
|
10636
11281
|
],
|
|
11282
|
+
hasResultPointer: true,
|
|
10637
11283
|
funcTypeIsAsync: false,
|
|
10638
11284
|
getCallbackFn: () => null,
|
|
10639
11285
|
getPostReturnFn: () => null,
|
|
@@ -10641,7 +11287,7 @@ null,
|
|
|
10641
11287
|
memoryIdx: 0,
|
|
10642
11288
|
stringEncoding: 'utf8',
|
|
10643
11289
|
getMemoryFn: () => memory0,
|
|
10644
|
-
getReallocFn:
|
|
11290
|
+
getReallocFn: undefined,
|
|
10645
11291
|
importFn: _trampoline22,
|
|
10646
11292
|
},
|
|
10647
11293
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10653,22 +11299,23 @@ null,
|
|
|
10653
11299
|
isManualAsync: _trampoline22.manuallyAsync,
|
|
10654
11300
|
paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
|
|
10655
11301
|
resultLowerFns: [_lowerFlatResult([
|
|
10656
|
-
[ 'ok', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11302
|
+
[ 'ok', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['linkCount', _lowerFlatU64, 8, 8 ],['size', _lowerFlatU64, 8, 8 ],['dataAccessTimestamp', _lowerFlatOption([
|
|
10657
11303
|
[ 'none', null, 24, 8, 8 ],
|
|
10658
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11304
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10659
11305
|
])
|
|
10660
|
-
,
|
|
11306
|
+
, 24, 8 ],['dataModificationTimestamp', _lowerFlatOption([
|
|
10661
11307
|
[ 'none', null, 24, 8, 8 ],
|
|
10662
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11308
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10663
11309
|
])
|
|
10664
|
-
,
|
|
11310
|
+
, 24, 8 ],['statusChangeTimestamp', _lowerFlatOption([
|
|
10665
11311
|
[ 'none', null, 24, 8, 8 ],
|
|
10666
|
-
[ 'some', _lowerFlatRecord([['seconds', _lowerFlatU64,
|
|
11312
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['seconds', _lowerFlatU64, 8, 8 ],['nanoseconds', _lowerFlatU32, 4, 4 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
|
|
10667
11313
|
])
|
|
10668
|
-
,
|
|
11314
|
+
, 24, 8 ],], size32: 96, align32: 8 }), 104, 8, 8 ],
|
|
10669
11315
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 104, 8, 8 ],
|
|
10670
11316
|
])
|
|
10671
11317
|
],
|
|
11318
|
+
hasResultPointer: true,
|
|
10672
11319
|
funcTypeIsAsync: false,
|
|
10673
11320
|
getCallbackFn: () => null,
|
|
10674
11321
|
getPostReturnFn: () => null,
|
|
@@ -10676,7 +11323,7 @@ null,
|
|
|
10676
11323
|
memoryIdx: 0,
|
|
10677
11324
|
stringEncoding: 'utf8',
|
|
10678
11325
|
getMemoryFn: () => memory0,
|
|
10679
|
-
getReallocFn:
|
|
11326
|
+
getReallocFn: undefined,
|
|
10680
11327
|
importFn: _trampoline22,
|
|
10681
11328
|
},
|
|
10682
11329
|
);
|
|
@@ -10691,11 +11338,25 @@ null,
|
|
|
10691
11338
|
resultLowerFns: [_lowerFlatResult([
|
|
10692
11339
|
[ 'ok', _lowerFlatOwn({
|
|
10693
11340
|
componentIdx: 0,
|
|
10694
|
-
lowerFn:
|
|
11341
|
+
lowerFn:
|
|
11342
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11343
|
+
if (!(obj instanceof Descriptor)) {
|
|
11344
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11345
|
+
}
|
|
11346
|
+
let handle = obj[symbolRscHandle];
|
|
11347
|
+
if (!handle) {
|
|
11348
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11349
|
+
captureTable6.set(rep, obj);
|
|
11350
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11351
|
+
}
|
|
11352
|
+
return handle;
|
|
11353
|
+
}
|
|
11354
|
+
,
|
|
10695
11355
|
}), 8, 4, 4 ],
|
|
10696
11356
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10697
11357
|
])
|
|
10698
11358
|
],
|
|
11359
|
+
hasResultPointer: true,
|
|
10699
11360
|
funcTypeIsAsync: false,
|
|
10700
11361
|
getCallbackFn: () => null,
|
|
10701
11362
|
getPostReturnFn: () => null,
|
|
@@ -10703,7 +11364,7 @@ null,
|
|
|
10703
11364
|
memoryIdx: 0,
|
|
10704
11365
|
stringEncoding: 'utf8',
|
|
10705
11366
|
getMemoryFn: () => memory0,
|
|
10706
|
-
getReallocFn:
|
|
11367
|
+
getReallocFn: undefined,
|
|
10707
11368
|
importFn: _trampoline23,
|
|
10708
11369
|
},
|
|
10709
11370
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10717,11 +11378,25 @@ null,
|
|
|
10717
11378
|
resultLowerFns: [_lowerFlatResult([
|
|
10718
11379
|
[ 'ok', _lowerFlatOwn({
|
|
10719
11380
|
componentIdx: 0,
|
|
10720
|
-
lowerFn:
|
|
11381
|
+
lowerFn:
|
|
11382
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
11383
|
+
if (!(obj instanceof Descriptor)) {
|
|
11384
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
11385
|
+
}
|
|
11386
|
+
let handle = obj[symbolRscHandle];
|
|
11387
|
+
if (!handle) {
|
|
11388
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
11389
|
+
captureTable6.set(rep, obj);
|
|
11390
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
11391
|
+
}
|
|
11392
|
+
return handle;
|
|
11393
|
+
}
|
|
11394
|
+
,
|
|
10721
11395
|
}), 8, 4, 4 ],
|
|
10722
11396
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 8, 4, 4 ],
|
|
10723
11397
|
])
|
|
10724
11398
|
],
|
|
11399
|
+
hasResultPointer: true,
|
|
10725
11400
|
funcTypeIsAsync: false,
|
|
10726
11401
|
getCallbackFn: () => null,
|
|
10727
11402
|
getPostReturnFn: () => null,
|
|
@@ -10729,7 +11404,7 @@ null,
|
|
|
10729
11404
|
memoryIdx: 0,
|
|
10730
11405
|
stringEncoding: 'utf8',
|
|
10731
11406
|
getMemoryFn: () => memory0,
|
|
10732
|
-
getReallocFn:
|
|
11407
|
+
getReallocFn: undefined,
|
|
10733
11408
|
importFn: _trampoline23,
|
|
10734
11409
|
},
|
|
10735
11410
|
);
|
|
@@ -10744,12 +11419,13 @@ null,
|
|
|
10744
11419
|
resultLowerFns: [_lowerFlatResult([
|
|
10745
11420
|
[ 'ok', _lowerFlatOption([
|
|
10746
11421
|
[ 'none', null, 16, 4, 4 ],
|
|
10747
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11422
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10748
11423
|
])
|
|
10749
11424
|
, 20, 4, 4 ],
|
|
10750
11425
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10751
11426
|
])
|
|
10752
11427
|
],
|
|
11428
|
+
hasResultPointer: true,
|
|
10753
11429
|
funcTypeIsAsync: false,
|
|
10754
11430
|
getCallbackFn: () => null,
|
|
10755
11431
|
getPostReturnFn: () => null,
|
|
@@ -10771,12 +11447,13 @@ null,
|
|
|
10771
11447
|
resultLowerFns: [_lowerFlatResult([
|
|
10772
11448
|
[ 'ok', _lowerFlatOption([
|
|
10773
11449
|
[ 'none', null, 16, 4, 4 ],
|
|
10774
|
-
[ 'some', _lowerFlatRecord([['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]),
|
|
11450
|
+
[ 'some', _lowerFlatRecord({ fieldMetas: [['type', _lowerFlatEnum([['unknown', null, 1, 1, 1],['block-device', null, 1, 1, 1],['character-device', null, 1, 1, 1],['directory', null, 1, 1, 1],['fifo', null, 1, 1, 1],['symbolic-link', null, 1, 1, 1],['regular-file', null, 1, 1, 1],['socket', null, 1, 1, 1],]), 1, 1 ],['name', _lowerFlatStringAny, 8, 4 ],], size32: 12, align32: 4 }), 16, 4, 4 ],
|
|
10775
11451
|
])
|
|
10776
11452
|
, 20, 4, 4 ],
|
|
10777
11453
|
[ 'err', _lowerFlatEnum([['access', null, 1, 1, 1],['would-block', null, 1, 1, 1],['already', null, 1, 1, 1],['bad-descriptor', null, 1, 1, 1],['busy', null, 1, 1, 1],['deadlock', null, 1, 1, 1],['quota', null, 1, 1, 1],['exist', null, 1, 1, 1],['file-too-large', null, 1, 1, 1],['illegal-byte-sequence', null, 1, 1, 1],['in-progress', null, 1, 1, 1],['interrupted', null, 1, 1, 1],['invalid', null, 1, 1, 1],['io', null, 1, 1, 1],['is-directory', null, 1, 1, 1],['loop', null, 1, 1, 1],['too-many-links', null, 1, 1, 1],['message-size', null, 1, 1, 1],['name-too-long', null, 1, 1, 1],['no-device', null, 1, 1, 1],['no-entry', null, 1, 1, 1],['no-lock', null, 1, 1, 1],['insufficient-memory', null, 1, 1, 1],['insufficient-space', null, 1, 1, 1],['not-directory', null, 1, 1, 1],['not-empty', null, 1, 1, 1],['not-recoverable', null, 1, 1, 1],['unsupported', null, 1, 1, 1],['no-tty', null, 1, 1, 1],['no-such-device', null, 1, 1, 1],['overflow', null, 1, 1, 1],['not-permitted', null, 1, 1, 1],['pipe', null, 1, 1, 1],['read-only', null, 1, 1, 1],['invalid-seek', null, 1, 1, 1],['text-file-busy', null, 1, 1, 1],['cross-device', null, 1, 1, 1],]), 20, 4, 4 ],
|
|
10778
11454
|
])
|
|
10779
11455
|
],
|
|
11456
|
+
hasResultPointer: true,
|
|
10780
11457
|
funcTypeIsAsync: false,
|
|
10781
11458
|
getCallbackFn: () => null,
|
|
10782
11459
|
getPostReturnFn: () => null,
|
|
@@ -10804,10 +11481,24 @@ null,
|
|
|
10804
11481
|
}), 12, 4, 4 ],
|
|
10805
11482
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10806
11483
|
componentIdx: 0,
|
|
10807
|
-
lowerFn:
|
|
11484
|
+
lowerFn:
|
|
11485
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11486
|
+
if (!(obj instanceof Error$1)) {
|
|
11487
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11488
|
+
}
|
|
11489
|
+
let handle = obj[symbolRscHandle];
|
|
11490
|
+
if (!handle) {
|
|
11491
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11492
|
+
captureTable0.set(rep, obj);
|
|
11493
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11494
|
+
}
|
|
11495
|
+
return handle;
|
|
11496
|
+
}
|
|
11497
|
+
,
|
|
10808
11498
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10809
11499
|
])
|
|
10810
11500
|
],
|
|
11501
|
+
hasResultPointer: true,
|
|
10811
11502
|
funcTypeIsAsync: false,
|
|
10812
11503
|
getCallbackFn: () => null,
|
|
10813
11504
|
getPostReturnFn: () => null,
|
|
@@ -10834,10 +11525,24 @@ null,
|
|
|
10834
11525
|
}), 12, 4, 4 ],
|
|
10835
11526
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10836
11527
|
componentIdx: 0,
|
|
10837
|
-
lowerFn:
|
|
11528
|
+
lowerFn:
|
|
11529
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11530
|
+
if (!(obj instanceof Error$1)) {
|
|
11531
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11532
|
+
}
|
|
11533
|
+
let handle = obj[symbolRscHandle];
|
|
11534
|
+
if (!handle) {
|
|
11535
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11536
|
+
captureTable0.set(rep, obj);
|
|
11537
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11538
|
+
}
|
|
11539
|
+
return handle;
|
|
11540
|
+
}
|
|
11541
|
+
,
|
|
10838
11542
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10839
11543
|
])
|
|
10840
11544
|
],
|
|
11545
|
+
hasResultPointer: true,
|
|
10841
11546
|
funcTypeIsAsync: false,
|
|
10842
11547
|
getCallbackFn: () => null,
|
|
10843
11548
|
getPostReturnFn: () => null,
|
|
@@ -10865,10 +11570,24 @@ null,
|
|
|
10865
11570
|
}), 12, 4, 4 ],
|
|
10866
11571
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10867
11572
|
componentIdx: 0,
|
|
10868
|
-
lowerFn:
|
|
11573
|
+
lowerFn:
|
|
11574
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11575
|
+
if (!(obj instanceof Error$1)) {
|
|
11576
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11577
|
+
}
|
|
11578
|
+
let handle = obj[symbolRscHandle];
|
|
11579
|
+
if (!handle) {
|
|
11580
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11581
|
+
captureTable0.set(rep, obj);
|
|
11582
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11583
|
+
}
|
|
11584
|
+
return handle;
|
|
11585
|
+
}
|
|
11586
|
+
,
|
|
10869
11587
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10870
11588
|
])
|
|
10871
11589
|
],
|
|
11590
|
+
hasResultPointer: true,
|
|
10872
11591
|
funcTypeIsAsync: false,
|
|
10873
11592
|
getCallbackFn: () => null,
|
|
10874
11593
|
getPostReturnFn: () => null,
|
|
@@ -10895,10 +11614,24 @@ null,
|
|
|
10895
11614
|
}), 12, 4, 4 ],
|
|
10896
11615
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10897
11616
|
componentIdx: 0,
|
|
10898
|
-
lowerFn:
|
|
11617
|
+
lowerFn:
|
|
11618
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11619
|
+
if (!(obj instanceof Error$1)) {
|
|
11620
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11621
|
+
}
|
|
11622
|
+
let handle = obj[symbolRscHandle];
|
|
11623
|
+
if (!handle) {
|
|
11624
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11625
|
+
captureTable0.set(rep, obj);
|
|
11626
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11627
|
+
}
|
|
11628
|
+
return handle;
|
|
11629
|
+
}
|
|
11630
|
+
,
|
|
10899
11631
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10900
11632
|
])
|
|
10901
11633
|
],
|
|
11634
|
+
hasResultPointer: true,
|
|
10902
11635
|
funcTypeIsAsync: false,
|
|
10903
11636
|
getCallbackFn: () => null,
|
|
10904
11637
|
getPostReturnFn: () => null,
|
|
@@ -10922,10 +11655,24 @@ null,
|
|
|
10922
11655
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10923
11656
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10924
11657
|
componentIdx: 0,
|
|
10925
|
-
lowerFn:
|
|
11658
|
+
lowerFn:
|
|
11659
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11660
|
+
if (!(obj instanceof Error$1)) {
|
|
11661
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11662
|
+
}
|
|
11663
|
+
let handle = obj[symbolRscHandle];
|
|
11664
|
+
if (!handle) {
|
|
11665
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11666
|
+
captureTable0.set(rep, obj);
|
|
11667
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11668
|
+
}
|
|
11669
|
+
return handle;
|
|
11670
|
+
}
|
|
11671
|
+
,
|
|
10926
11672
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10927
11673
|
])
|
|
10928
11674
|
],
|
|
11675
|
+
hasResultPointer: true,
|
|
10929
11676
|
funcTypeIsAsync: false,
|
|
10930
11677
|
getCallbackFn: () => null,
|
|
10931
11678
|
getPostReturnFn: () => null,
|
|
@@ -10933,7 +11680,7 @@ null,
|
|
|
10933
11680
|
memoryIdx: 0,
|
|
10934
11681
|
stringEncoding: 'utf8',
|
|
10935
11682
|
getMemoryFn: () => memory0,
|
|
10936
|
-
getReallocFn:
|
|
11683
|
+
getReallocFn: undefined,
|
|
10937
11684
|
importFn: _trampoline27,
|
|
10938
11685
|
},
|
|
10939
11686
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -10948,10 +11695,24 @@ null,
|
|
|
10948
11695
|
[ 'ok', _lowerFlatU64, 16, 8, 8 ],
|
|
10949
11696
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10950
11697
|
componentIdx: 0,
|
|
10951
|
-
lowerFn:
|
|
11698
|
+
lowerFn:
|
|
11699
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11700
|
+
if (!(obj instanceof Error$1)) {
|
|
11701
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11702
|
+
}
|
|
11703
|
+
let handle = obj[symbolRscHandle];
|
|
11704
|
+
if (!handle) {
|
|
11705
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11706
|
+
captureTable0.set(rep, obj);
|
|
11707
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11708
|
+
}
|
|
11709
|
+
return handle;
|
|
11710
|
+
}
|
|
11711
|
+
,
|
|
10952
11712
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 16, 8, 8 ],
|
|
10953
11713
|
])
|
|
10954
11714
|
],
|
|
11715
|
+
hasResultPointer: true,
|
|
10955
11716
|
funcTypeIsAsync: false,
|
|
10956
11717
|
getCallbackFn: () => null,
|
|
10957
11718
|
getPostReturnFn: () => null,
|
|
@@ -10959,7 +11720,7 @@ null,
|
|
|
10959
11720
|
memoryIdx: 0,
|
|
10960
11721
|
stringEncoding: 'utf8',
|
|
10961
11722
|
getMemoryFn: () => memory0,
|
|
10962
|
-
getReallocFn:
|
|
11723
|
+
getReallocFn: undefined,
|
|
10963
11724
|
importFn: _trampoline27,
|
|
10964
11725
|
},
|
|
10965
11726
|
);
|
|
@@ -10974,15 +11735,30 @@ null,
|
|
|
10974
11735
|
elemLiftFn: _liftFlatU8,
|
|
10975
11736
|
elemAlign32: 1,
|
|
10976
11737
|
elemSize32: 1,
|
|
11738
|
+
typedArray: Uint8Array,
|
|
10977
11739
|
})],
|
|
10978
11740
|
resultLowerFns: [_lowerFlatResult([
|
|
10979
11741
|
[ 'ok', null, 12, 4, 4 ],
|
|
10980
11742
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
10981
11743
|
componentIdx: 0,
|
|
10982
|
-
lowerFn:
|
|
11744
|
+
lowerFn:
|
|
11745
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11746
|
+
if (!(obj instanceof Error$1)) {
|
|
11747
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11748
|
+
}
|
|
11749
|
+
let handle = obj[symbolRscHandle];
|
|
11750
|
+
if (!handle) {
|
|
11751
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11752
|
+
captureTable0.set(rep, obj);
|
|
11753
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11754
|
+
}
|
|
11755
|
+
return handle;
|
|
11756
|
+
}
|
|
11757
|
+
,
|
|
10983
11758
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
10984
11759
|
])
|
|
10985
11760
|
],
|
|
11761
|
+
hasResultPointer: true,
|
|
10986
11762
|
funcTypeIsAsync: false,
|
|
10987
11763
|
getCallbackFn: () => null,
|
|
10988
11764
|
getPostReturnFn: () => null,
|
|
@@ -10990,7 +11766,7 @@ null,
|
|
|
10990
11766
|
memoryIdx: 0,
|
|
10991
11767
|
stringEncoding: 'utf8',
|
|
10992
11768
|
getMemoryFn: () => memory0,
|
|
10993
|
-
getReallocFn:
|
|
11769
|
+
getReallocFn: undefined,
|
|
10994
11770
|
importFn: _trampoline28,
|
|
10995
11771
|
},
|
|
10996
11772
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11004,15 +11780,30 @@ null,
|
|
|
11004
11780
|
elemLiftFn: _liftFlatU8,
|
|
11005
11781
|
elemAlign32: 1,
|
|
11006
11782
|
elemSize32: 1,
|
|
11783
|
+
typedArray: Uint8Array,
|
|
11007
11784
|
})],
|
|
11008
11785
|
resultLowerFns: [_lowerFlatResult([
|
|
11009
11786
|
[ 'ok', null, 12, 4, 4 ],
|
|
11010
11787
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11011
11788
|
componentIdx: 0,
|
|
11012
|
-
lowerFn:
|
|
11789
|
+
lowerFn:
|
|
11790
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11791
|
+
if (!(obj instanceof Error$1)) {
|
|
11792
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11793
|
+
}
|
|
11794
|
+
let handle = obj[symbolRscHandle];
|
|
11795
|
+
if (!handle) {
|
|
11796
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11797
|
+
captureTable0.set(rep, obj);
|
|
11798
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11799
|
+
}
|
|
11800
|
+
return handle;
|
|
11801
|
+
}
|
|
11802
|
+
,
|
|
11013
11803
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11014
11804
|
])
|
|
11015
11805
|
],
|
|
11806
|
+
hasResultPointer: true,
|
|
11016
11807
|
funcTypeIsAsync: false,
|
|
11017
11808
|
getCallbackFn: () => null,
|
|
11018
11809
|
getPostReturnFn: () => null,
|
|
@@ -11020,7 +11811,7 @@ null,
|
|
|
11020
11811
|
memoryIdx: 0,
|
|
11021
11812
|
stringEncoding: 'utf8',
|
|
11022
11813
|
getMemoryFn: () => memory0,
|
|
11023
|
-
getReallocFn:
|
|
11814
|
+
getReallocFn: undefined,
|
|
11024
11815
|
importFn: _trampoline28,
|
|
11025
11816
|
},
|
|
11026
11817
|
);
|
|
@@ -11035,15 +11826,30 @@ null,
|
|
|
11035
11826
|
elemLiftFn: _liftFlatU8,
|
|
11036
11827
|
elemAlign32: 1,
|
|
11037
11828
|
elemSize32: 1,
|
|
11829
|
+
typedArray: Uint8Array,
|
|
11038
11830
|
})],
|
|
11039
11831
|
resultLowerFns: [_lowerFlatResult([
|
|
11040
11832
|
[ 'ok', null, 12, 4, 4 ],
|
|
11041
11833
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11042
11834
|
componentIdx: 0,
|
|
11043
|
-
lowerFn:
|
|
11835
|
+
lowerFn:
|
|
11836
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11837
|
+
if (!(obj instanceof Error$1)) {
|
|
11838
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11839
|
+
}
|
|
11840
|
+
let handle = obj[symbolRscHandle];
|
|
11841
|
+
if (!handle) {
|
|
11842
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11843
|
+
captureTable0.set(rep, obj);
|
|
11844
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11845
|
+
}
|
|
11846
|
+
return handle;
|
|
11847
|
+
}
|
|
11848
|
+
,
|
|
11044
11849
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11045
11850
|
])
|
|
11046
11851
|
],
|
|
11852
|
+
hasResultPointer: true,
|
|
11047
11853
|
funcTypeIsAsync: false,
|
|
11048
11854
|
getCallbackFn: () => null,
|
|
11049
11855
|
getPostReturnFn: () => null,
|
|
@@ -11051,7 +11857,7 @@ null,
|
|
|
11051
11857
|
memoryIdx: 0,
|
|
11052
11858
|
stringEncoding: 'utf8',
|
|
11053
11859
|
getMemoryFn: () => memory0,
|
|
11054
|
-
getReallocFn:
|
|
11860
|
+
getReallocFn: undefined,
|
|
11055
11861
|
importFn: _trampoline29,
|
|
11056
11862
|
},
|
|
11057
11863
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11065,15 +11871,30 @@ null,
|
|
|
11065
11871
|
elemLiftFn: _liftFlatU8,
|
|
11066
11872
|
elemAlign32: 1,
|
|
11067
11873
|
elemSize32: 1,
|
|
11874
|
+
typedArray: Uint8Array,
|
|
11068
11875
|
})],
|
|
11069
11876
|
resultLowerFns: [_lowerFlatResult([
|
|
11070
11877
|
[ 'ok', null, 12, 4, 4 ],
|
|
11071
11878
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11072
11879
|
componentIdx: 0,
|
|
11073
|
-
lowerFn:
|
|
11880
|
+
lowerFn:
|
|
11881
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11882
|
+
if (!(obj instanceof Error$1)) {
|
|
11883
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11884
|
+
}
|
|
11885
|
+
let handle = obj[symbolRscHandle];
|
|
11886
|
+
if (!handle) {
|
|
11887
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11888
|
+
captureTable0.set(rep, obj);
|
|
11889
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11890
|
+
}
|
|
11891
|
+
return handle;
|
|
11892
|
+
}
|
|
11893
|
+
,
|
|
11074
11894
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11075
11895
|
])
|
|
11076
11896
|
],
|
|
11897
|
+
hasResultPointer: true,
|
|
11077
11898
|
funcTypeIsAsync: false,
|
|
11078
11899
|
getCallbackFn: () => null,
|
|
11079
11900
|
getPostReturnFn: () => null,
|
|
@@ -11081,7 +11902,7 @@ null,
|
|
|
11081
11902
|
memoryIdx: 0,
|
|
11082
11903
|
stringEncoding: 'utf8',
|
|
11083
11904
|
getMemoryFn: () => memory0,
|
|
11084
|
-
getReallocFn:
|
|
11905
|
+
getReallocFn: undefined,
|
|
11085
11906
|
importFn: _trampoline29,
|
|
11086
11907
|
},
|
|
11087
11908
|
);
|
|
@@ -11097,10 +11918,24 @@ null,
|
|
|
11097
11918
|
[ 'ok', null, 12, 4, 4 ],
|
|
11098
11919
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11099
11920
|
componentIdx: 0,
|
|
11100
|
-
lowerFn:
|
|
11921
|
+
lowerFn:
|
|
11922
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11923
|
+
if (!(obj instanceof Error$1)) {
|
|
11924
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11925
|
+
}
|
|
11926
|
+
let handle = obj[symbolRscHandle];
|
|
11927
|
+
if (!handle) {
|
|
11928
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11929
|
+
captureTable0.set(rep, obj);
|
|
11930
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11931
|
+
}
|
|
11932
|
+
return handle;
|
|
11933
|
+
}
|
|
11934
|
+
,
|
|
11101
11935
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11102
11936
|
])
|
|
11103
11937
|
],
|
|
11938
|
+
hasResultPointer: true,
|
|
11104
11939
|
funcTypeIsAsync: false,
|
|
11105
11940
|
getCallbackFn: () => null,
|
|
11106
11941
|
getPostReturnFn: () => null,
|
|
@@ -11108,7 +11943,7 @@ null,
|
|
|
11108
11943
|
memoryIdx: 0,
|
|
11109
11944
|
stringEncoding: 'utf8',
|
|
11110
11945
|
getMemoryFn: () => memory0,
|
|
11111
|
-
getReallocFn:
|
|
11946
|
+
getReallocFn: undefined,
|
|
11112
11947
|
importFn: _trampoline30,
|
|
11113
11948
|
},
|
|
11114
11949
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11123,10 +11958,24 @@ null,
|
|
|
11123
11958
|
[ 'ok', null, 12, 4, 4 ],
|
|
11124
11959
|
[ 'err', _lowerFlatVariant([[ 'last-operation-failed', _lowerFlatOwn({
|
|
11125
11960
|
componentIdx: 0,
|
|
11126
|
-
lowerFn:
|
|
11961
|
+
lowerFn:
|
|
11962
|
+
function lowerImportedOwnedHost_Error$1(obj) {
|
|
11963
|
+
if (!(obj instanceof Error$1)) {
|
|
11964
|
+
throw new TypeError('Resource error: Not a valid \"Error$1\" resource.');
|
|
11965
|
+
}
|
|
11966
|
+
let handle = obj[symbolRscHandle];
|
|
11967
|
+
if (!handle) {
|
|
11968
|
+
const rep = obj[symbolRscRep] || ++captureCnt0;
|
|
11969
|
+
captureTable0.set(rep, obj);
|
|
11970
|
+
handle = rscTableCreateOwn(handleTable0, rep);
|
|
11971
|
+
}
|
|
11972
|
+
return handle;
|
|
11973
|
+
}
|
|
11974
|
+
,
|
|
11127
11975
|
}), 8, 4, 4 ],[ 'closed', null, 8, 4, 4 ],]), 12, 4, 4 ],
|
|
11128
11976
|
])
|
|
11129
11977
|
],
|
|
11978
|
+
hasResultPointer: true,
|
|
11130
11979
|
funcTypeIsAsync: false,
|
|
11131
11980
|
getCallbackFn: () => null,
|
|
11132
11981
|
getPostReturnFn: () => null,
|
|
@@ -11134,7 +11983,7 @@ null,
|
|
|
11134
11983
|
memoryIdx: 0,
|
|
11135
11984
|
stringEncoding: 'utf8',
|
|
11136
11985
|
getMemoryFn: () => memory0,
|
|
11137
|
-
getReallocFn:
|
|
11986
|
+
getReallocFn: undefined,
|
|
11138
11987
|
importFn: _trampoline30,
|
|
11139
11988
|
},
|
|
11140
11989
|
);
|
|
@@ -11151,6 +12000,7 @@ null,
|
|
|
11151
12000
|
elemSize32: 1,
|
|
11152
12001
|
elemAlign32: 1,
|
|
11153
12002
|
})],
|
|
12003
|
+
hasResultPointer: true,
|
|
11154
12004
|
funcTypeIsAsync: false,
|
|
11155
12005
|
getCallbackFn: () => null,
|
|
11156
12006
|
getPostReturnFn: () => null,
|
|
@@ -11174,6 +12024,7 @@ null,
|
|
|
11174
12024
|
elemSize32: 1,
|
|
11175
12025
|
elemAlign32: 1,
|
|
11176
12026
|
})],
|
|
12027
|
+
hasResultPointer: true,
|
|
11177
12028
|
funcTypeIsAsync: false,
|
|
11178
12029
|
getCallbackFn: () => null,
|
|
11179
12030
|
getPostReturnFn: () => null,
|
|
@@ -11194,13 +12045,27 @@ null,
|
|
|
11194
12045
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11195
12046
|
paramLiftFns: [],
|
|
11196
12047
|
resultLowerFns: [_lowerFlatList({
|
|
11197
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12048
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11198
12049
|
componentIdx: 0,
|
|
11199
|
-
lowerFn:
|
|
11200
|
-
|
|
12050
|
+
lowerFn:
|
|
12051
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12052
|
+
if (!(obj instanceof Descriptor)) {
|
|
12053
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12054
|
+
}
|
|
12055
|
+
let handle = obj[symbolRscHandle];
|
|
12056
|
+
if (!handle) {
|
|
12057
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12058
|
+
captureTable6.set(rep, obj);
|
|
12059
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12060
|
+
}
|
|
12061
|
+
return handle;
|
|
12062
|
+
}
|
|
12063
|
+
,
|
|
12064
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11201
12065
|
elemSize32: 12,
|
|
11202
12066
|
elemAlign32: 4,
|
|
11203
12067
|
})],
|
|
12068
|
+
hasResultPointer: true,
|
|
11204
12069
|
funcTypeIsAsync: false,
|
|
11205
12070
|
getCallbackFn: () => null,
|
|
11206
12071
|
getPostReturnFn: () => null,
|
|
@@ -11220,13 +12085,27 @@ null,
|
|
|
11220
12085
|
isManualAsync: _trampoline32.manuallyAsync,
|
|
11221
12086
|
paramLiftFns: [],
|
|
11222
12087
|
resultLowerFns: [_lowerFlatList({
|
|
11223
|
-
elemLowerFn: _lowerFlatTuple([[_lowerFlatOwn({
|
|
12088
|
+
elemLowerFn: _lowerFlatTuple({ elemLowerMetas: [[_lowerFlatOwn({
|
|
11224
12089
|
componentIdx: 0,
|
|
11225
|
-
lowerFn:
|
|
11226
|
-
|
|
12090
|
+
lowerFn:
|
|
12091
|
+
function lowerImportedOwnedHost_Descriptor(obj) {
|
|
12092
|
+
if (!(obj instanceof Descriptor)) {
|
|
12093
|
+
throw new TypeError('Resource error: Not a valid \"Descriptor\" resource.');
|
|
12094
|
+
}
|
|
12095
|
+
let handle = obj[symbolRscHandle];
|
|
12096
|
+
if (!handle) {
|
|
12097
|
+
const rep = obj[symbolRscRep] || ++captureCnt6;
|
|
12098
|
+
captureTable6.set(rep, obj);
|
|
12099
|
+
handle = rscTableCreateOwn(handleTable6, rep);
|
|
12100
|
+
}
|
|
12101
|
+
return handle;
|
|
12102
|
+
}
|
|
12103
|
+
,
|
|
12104
|
+
}), 4, 4],[_lowerFlatStringAny, 8, 4],], size32: 12, align32: 4 }),
|
|
11227
12105
|
elemSize32: 12,
|
|
11228
12106
|
elemAlign32: 4,
|
|
11229
12107
|
})],
|
|
12108
|
+
hasResultPointer: true,
|
|
11230
12109
|
funcTypeIsAsync: false,
|
|
11231
12110
|
getCallbackFn: () => null,
|
|
11232
12111
|
getPostReturnFn: () => null,
|
|
@@ -11250,10 +12129,24 @@ null,
|
|
|
11250
12129
|
[ 'none', null, 8, 4, 4 ],
|
|
11251
12130
|
[ 'some', _lowerFlatOwn({
|
|
11252
12131
|
componentIdx: 0,
|
|
11253
|
-
lowerFn:
|
|
12132
|
+
lowerFn:
|
|
12133
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12134
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12135
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12136
|
+
}
|
|
12137
|
+
let handle = obj[symbolRscHandle];
|
|
12138
|
+
if (!handle) {
|
|
12139
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12140
|
+
captureTable3.set(rep, obj);
|
|
12141
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12142
|
+
}
|
|
12143
|
+
return handle;
|
|
12144
|
+
}
|
|
12145
|
+
,
|
|
11254
12146
|
}), 8, 4, 4 ],
|
|
11255
12147
|
])
|
|
11256
12148
|
],
|
|
12149
|
+
hasResultPointer: true,
|
|
11257
12150
|
funcTypeIsAsync: false,
|
|
11258
12151
|
getCallbackFn: () => null,
|
|
11259
12152
|
getPostReturnFn: () => null,
|
|
@@ -11261,7 +12154,7 @@ null,
|
|
|
11261
12154
|
memoryIdx: 0,
|
|
11262
12155
|
stringEncoding: 'utf8',
|
|
11263
12156
|
getMemoryFn: () => memory0,
|
|
11264
|
-
getReallocFn:
|
|
12157
|
+
getReallocFn: undefined,
|
|
11265
12158
|
importFn: _trampoline33,
|
|
11266
12159
|
},
|
|
11267
12160
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11276,10 +12169,24 @@ null,
|
|
|
11276
12169
|
[ 'none', null, 8, 4, 4 ],
|
|
11277
12170
|
[ 'some', _lowerFlatOwn({
|
|
11278
12171
|
componentIdx: 0,
|
|
11279
|
-
lowerFn:
|
|
12172
|
+
lowerFn:
|
|
12173
|
+
function lowerImportedOwnedHost_TerminalInput(obj) {
|
|
12174
|
+
if (!(obj instanceof TerminalInput)) {
|
|
12175
|
+
throw new TypeError('Resource error: Not a valid \"TerminalInput\" resource.');
|
|
12176
|
+
}
|
|
12177
|
+
let handle = obj[symbolRscHandle];
|
|
12178
|
+
if (!handle) {
|
|
12179
|
+
const rep = obj[symbolRscRep] || ++captureCnt3;
|
|
12180
|
+
captureTable3.set(rep, obj);
|
|
12181
|
+
handle = rscTableCreateOwn(handleTable3, rep);
|
|
12182
|
+
}
|
|
12183
|
+
return handle;
|
|
12184
|
+
}
|
|
12185
|
+
,
|
|
11280
12186
|
}), 8, 4, 4 ],
|
|
11281
12187
|
])
|
|
11282
12188
|
],
|
|
12189
|
+
hasResultPointer: true,
|
|
11283
12190
|
funcTypeIsAsync: false,
|
|
11284
12191
|
getCallbackFn: () => null,
|
|
11285
12192
|
getPostReturnFn: () => null,
|
|
@@ -11287,7 +12194,7 @@ null,
|
|
|
11287
12194
|
memoryIdx: 0,
|
|
11288
12195
|
stringEncoding: 'utf8',
|
|
11289
12196
|
getMemoryFn: () => memory0,
|
|
11290
|
-
getReallocFn:
|
|
12197
|
+
getReallocFn: undefined,
|
|
11291
12198
|
importFn: _trampoline33,
|
|
11292
12199
|
},
|
|
11293
12200
|
);
|
|
@@ -11303,10 +12210,24 @@ null,
|
|
|
11303
12210
|
[ 'none', null, 8, 4, 4 ],
|
|
11304
12211
|
[ 'some', _lowerFlatOwn({
|
|
11305
12212
|
componentIdx: 0,
|
|
11306
|
-
lowerFn:
|
|
12213
|
+
lowerFn:
|
|
12214
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12215
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12216
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12217
|
+
}
|
|
12218
|
+
let handle = obj[symbolRscHandle];
|
|
12219
|
+
if (!handle) {
|
|
12220
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12221
|
+
captureTable4.set(rep, obj);
|
|
12222
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12223
|
+
}
|
|
12224
|
+
return handle;
|
|
12225
|
+
}
|
|
12226
|
+
,
|
|
11307
12227
|
}), 8, 4, 4 ],
|
|
11308
12228
|
])
|
|
11309
12229
|
],
|
|
12230
|
+
hasResultPointer: true,
|
|
11310
12231
|
funcTypeIsAsync: false,
|
|
11311
12232
|
getCallbackFn: () => null,
|
|
11312
12233
|
getPostReturnFn: () => null,
|
|
@@ -11314,7 +12235,7 @@ null,
|
|
|
11314
12235
|
memoryIdx: 0,
|
|
11315
12236
|
stringEncoding: 'utf8',
|
|
11316
12237
|
getMemoryFn: () => memory0,
|
|
11317
|
-
getReallocFn:
|
|
12238
|
+
getReallocFn: undefined,
|
|
11318
12239
|
importFn: _trampoline34,
|
|
11319
12240
|
},
|
|
11320
12241
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11329,10 +12250,24 @@ null,
|
|
|
11329
12250
|
[ 'none', null, 8, 4, 4 ],
|
|
11330
12251
|
[ 'some', _lowerFlatOwn({
|
|
11331
12252
|
componentIdx: 0,
|
|
11332
|
-
lowerFn:
|
|
12253
|
+
lowerFn:
|
|
12254
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12255
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12256
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12257
|
+
}
|
|
12258
|
+
let handle = obj[symbolRscHandle];
|
|
12259
|
+
if (!handle) {
|
|
12260
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12261
|
+
captureTable4.set(rep, obj);
|
|
12262
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12263
|
+
}
|
|
12264
|
+
return handle;
|
|
12265
|
+
}
|
|
12266
|
+
,
|
|
11333
12267
|
}), 8, 4, 4 ],
|
|
11334
12268
|
])
|
|
11335
12269
|
],
|
|
12270
|
+
hasResultPointer: true,
|
|
11336
12271
|
funcTypeIsAsync: false,
|
|
11337
12272
|
getCallbackFn: () => null,
|
|
11338
12273
|
getPostReturnFn: () => null,
|
|
@@ -11340,7 +12275,7 @@ null,
|
|
|
11340
12275
|
memoryIdx: 0,
|
|
11341
12276
|
stringEncoding: 'utf8',
|
|
11342
12277
|
getMemoryFn: () => memory0,
|
|
11343
|
-
getReallocFn:
|
|
12278
|
+
getReallocFn: undefined,
|
|
11344
12279
|
importFn: _trampoline34,
|
|
11345
12280
|
},
|
|
11346
12281
|
);
|
|
@@ -11356,10 +12291,24 @@ null,
|
|
|
11356
12291
|
[ 'none', null, 8, 4, 4 ],
|
|
11357
12292
|
[ 'some', _lowerFlatOwn({
|
|
11358
12293
|
componentIdx: 0,
|
|
11359
|
-
lowerFn:
|
|
12294
|
+
lowerFn:
|
|
12295
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12296
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12297
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12298
|
+
}
|
|
12299
|
+
let handle = obj[symbolRscHandle];
|
|
12300
|
+
if (!handle) {
|
|
12301
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12302
|
+
captureTable4.set(rep, obj);
|
|
12303
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12304
|
+
}
|
|
12305
|
+
return handle;
|
|
12306
|
+
}
|
|
12307
|
+
,
|
|
11360
12308
|
}), 8, 4, 4 ],
|
|
11361
12309
|
])
|
|
11362
12310
|
],
|
|
12311
|
+
hasResultPointer: true,
|
|
11363
12312
|
funcTypeIsAsync: false,
|
|
11364
12313
|
getCallbackFn: () => null,
|
|
11365
12314
|
getPostReturnFn: () => null,
|
|
@@ -11367,7 +12316,7 @@ null,
|
|
|
11367
12316
|
memoryIdx: 0,
|
|
11368
12317
|
stringEncoding: 'utf8',
|
|
11369
12318
|
getMemoryFn: () => memory0,
|
|
11370
|
-
getReallocFn:
|
|
12319
|
+
getReallocFn: undefined,
|
|
11371
12320
|
importFn: _trampoline35,
|
|
11372
12321
|
},
|
|
11373
12322
|
)) : _lowerImportBackwardsCompat.bind(
|
|
@@ -11382,10 +12331,24 @@ null,
|
|
|
11382
12331
|
[ 'none', null, 8, 4, 4 ],
|
|
11383
12332
|
[ 'some', _lowerFlatOwn({
|
|
11384
12333
|
componentIdx: 0,
|
|
11385
|
-
lowerFn:
|
|
12334
|
+
lowerFn:
|
|
12335
|
+
function lowerImportedOwnedHost_TerminalOutput(obj) {
|
|
12336
|
+
if (!(obj instanceof TerminalOutput)) {
|
|
12337
|
+
throw new TypeError('Resource error: Not a valid \"TerminalOutput\" resource.');
|
|
12338
|
+
}
|
|
12339
|
+
let handle = obj[symbolRscHandle];
|
|
12340
|
+
if (!handle) {
|
|
12341
|
+
const rep = obj[symbolRscRep] || ++captureCnt4;
|
|
12342
|
+
captureTable4.set(rep, obj);
|
|
12343
|
+
handle = rscTableCreateOwn(handleTable4, rep);
|
|
12344
|
+
}
|
|
12345
|
+
return handle;
|
|
12346
|
+
}
|
|
12347
|
+
,
|
|
11386
12348
|
}), 8, 4, 4 ],
|
|
11387
12349
|
])
|
|
11388
12350
|
],
|
|
12351
|
+
hasResultPointer: true,
|
|
11389
12352
|
funcTypeIsAsync: false,
|
|
11390
12353
|
getCallbackFn: () => null,
|
|
11391
12354
|
getPostReturnFn: () => null,
|
|
@@ -11393,7 +12356,7 @@ null,
|
|
|
11393
12356
|
memoryIdx: 0,
|
|
11394
12357
|
stringEncoding: 'utf8',
|
|
11395
12358
|
getMemoryFn: () => memory0,
|
|
11396
|
-
getReallocFn:
|
|
12359
|
+
getReallocFn: undefined,
|
|
11397
12360
|
importFn: _trampoline35,
|
|
11398
12361
|
},
|
|
11399
12362
|
);
|