@bytecodealliance/jco 1.20.0 → 1.22.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/obj/wasm-tools.js CHANGED
@@ -217,26 +217,8 @@ async function _withGlobalCurrentTaskMetaAsync(args) {
217
217
  if (args.taskID === undefined) { throw new TypeError('missing task ID'); }
218
218
  if (args.componentIdx === undefined) { throw new TypeError('missing component idx'); }
219
219
  if (!args.fn) { throw new TypeError('missing fn'); }
220
- const { taskID, componentIdx, fn } = args;
221
220
 
222
- // If there is already an async task executing, we must wait for it
223
- // to complete before we can can run the closure we were given
224
- //
225
- let current = CURRENT_TASK_META[componentIdx];
226
- let cstate;
227
- if (current && current.taskID !== taskID) {
228
- cstate = getOrCreateAsyncState(componentIdx);
229
- while (current && current.taskID !== taskID) {
230
- const { promise, resolve } = Promise.withResolvers();
231
- cstate.onNextExclusiveRelease(resolve);
232
- await promise;
233
- current = CURRENT_TASK_META[componentIdx];
234
- }
235
-
236
- // Since we've just waited for the component to not be locked, re-lock
237
- // exclusivity so we can run the fn below (likely a callee/callback)
238
- cstate.exclusiveLock();
239
- }
221
+ const { taskID, componentIdx, fn } = args;
240
222
 
241
223
  try {
242
224
  CURRENT_TASK_META[componentIdx] = { taskID, componentIdx };
@@ -617,6 +599,7 @@ class AsyncSubtask {
617
599
  subtaskID: this.#id,
618
600
  parentTaskID: this.parentTaskID(),
619
601
  fnName: this.fnName,
602
+ args,
620
603
  });
621
604
 
622
605
  if (this.#onProgressFn) { this.#onProgressFn(); }
@@ -1016,12 +999,22 @@ function _asyncStartCall(args, callee, paramCount, resultCount, flags) {
1016
999
  // If a helper function was provided we are likely in a fused guest->guest call,
1017
1000
  // and the result will be delivered (lift/lowered) via helper function
1018
1001
  if (subtaskCallMeta && subtaskCallMeta.returnFn) {
1019
- _debugLog('[_asyncStartCall()] return function present while handling subtask result, returning early (skipping lower)');
1002
+ _debugLog('[_asyncStartCall()] return function present while handling subtask result, returning early (skipping lower)', {
1003
+ calleeTaskID: calleeTask.id(),
1004
+ calleeComponentIdx,
1005
+ });
1020
1006
 
1021
1007
  // TODO: centralize calling of returnFn to *one place* (if possible)
1022
1008
  if (subtaskCallMeta.returnFnCalled) { return; }
1023
1009
 
1024
- subtaskCallMeta.returnFn.apply(null, [subtaskCallMeta.resultPtr]);
1010
+ const res = subtaskCallMeta.returnFn.apply(null, [subtaskCallMeta.resultPtr]);
1011
+
1012
+ _debugLog('[_asyncStartCall()] finished calling return fn', {
1013
+ calleeTaskID: calleeTask.id(),
1014
+ calleeComponentIdx,
1015
+ res,
1016
+ });
1017
+
1025
1018
  return;
1026
1019
  }
1027
1020
 
@@ -1080,15 +1073,31 @@ function _asyncStartCall(args, callee, paramCount, resultCount, flags) {
1080
1073
  });
1081
1074
  });
1082
1075
 
1083
- // Start the (event) driver loop that will resolve the task
1084
- queueMicrotask(async () => {
1076
+ // Start the (event) driver loop that will resolve the subtask
1077
+ // in a new JS task
1078
+ setTimeout(async () => {
1079
+ _debugLog('[_asyncStartCall()] continuing started subtask (in JS task)', {
1080
+ taskID: preparedTask.id(),
1081
+ subtaskID: subtask.id(),
1082
+ callerComponentIdx,
1083
+ calleeComponentIdx,
1084
+ });
1085
+
1085
1086
  let startRes = subtask.onStart({ startFnParams: params });
1086
1087
  startRes = Array.isArray(startRes) ? startRes : [startRes];
1087
1088
 
1088
- await calleeComponentState.suspendTask({
1089
- task: preparedTask,
1090
- readyFn: () => !calleeComponentState.isExclusivelyLocked(),
1091
- });
1089
+ if (calleeComponentState.isExclusivelyLocked()) {
1090
+ _debugLog('[_asyncStartCall()] during continuation callee is exclusively locked, suspending...', {
1091
+ taskID: preparedTask.id(),
1092
+ subtaskID: subtask.id(),
1093
+ callerComponentIdx,
1094
+ calleeComponentIdx,
1095
+ });
1096
+ await calleeComponentState.suspendTask({
1097
+ task: preparedTask,
1098
+ readyFn: () => !calleeComponentState.isExclusivelyLocked(),
1099
+ });
1100
+ }
1092
1101
 
1093
1102
  const started = await preparedTask.enter();
1094
1103
  if (!started) {
@@ -1171,7 +1180,7 @@ function _asyncStartCall(args, callee, paramCount, resultCount, flags) {
1171
1180
  _debugLog("[AsyncStartCall] drive loop call failure", { err });
1172
1181
  }
1173
1182
 
1174
- });
1183
+ }, 0);
1175
1184
 
1176
1185
  const subtaskState = subtask.getStateNumber();
1177
1186
  if (subtaskState < 0 || subtaskState > 2**5) {
@@ -1204,6 +1213,8 @@ class Waitable {
1204
1213
 
1205
1214
  #waitableSet = null;
1206
1215
 
1216
+ #hasSyncWaiter = false;
1217
+
1207
1218
  #idx = null; // to component-global waitables
1208
1219
 
1209
1220
  target;
@@ -1273,14 +1284,22 @@ class Waitable {
1273
1284
  _debugLog('[Waitable#join()] args', {
1274
1285
  waitable: this,
1275
1286
  waitableSet: waitableSet,
1287
+ isRemoval: waitableSet === null,
1276
1288
  });
1277
- if (this.#waitableSet) { this.#waitableSet.removeWaitable(this); }
1278
- if (!waitableSet) {
1279
- this.#waitableSet = null;
1280
- return;
1289
+
1290
+ if (this.#waitableSet === undefined) {
1291
+ throw new TypeError('waitable set must be not be undefined');
1281
1292
  }
1282
- waitableSet.addWaitable(this);
1293
+
1294
+ if (this.#waitableSet) {
1295
+ this.#waitableSet.removeWaitable(this);
1296
+ }
1297
+
1283
1298
  this.#waitableSet = waitableSet;
1299
+
1300
+ if (waitableSet) {
1301
+ this.#waitableSet.addWaitable(this);
1302
+ }
1284
1303
  }
1285
1304
 
1286
1305
  drop() {
@@ -1294,6 +1313,21 @@ class Waitable {
1294
1313
  this.join(null);
1295
1314
  }
1296
1315
 
1316
+ async waitForPendingEvent(args) {
1317
+ const { cstate } = args;
1318
+ if (!cstate) { throw new TypeError('missing component state'); }
1319
+
1320
+ if (this.#waitableSet !== null || this.#hasSyncWaiter) {
1321
+ throw new Error("waitable is already in a set/has a sync waiter");
1322
+ }
1323
+ this.#hasSyncWaiter = true;
1324
+ await cstate.waitUntil({
1325
+ cancellable: false,
1326
+ readyFn: () => this.hasPendingEvent(),
1327
+ });
1328
+ this.#hasSyncWaiter = false;
1329
+ }
1330
+
1297
1331
  }
1298
1332
 
1299
1333
  const ERR_CTX_TABLES = {};
@@ -1334,6 +1368,7 @@ class Waitable {
1334
1368
 
1335
1369
  function rscTableCreateOwn(table, rep) {
1336
1370
  const free = table[0] & ~T_FLAG;
1371
+ table._createdReps.add(rep);
1337
1372
  if (free === 0) {
1338
1373
  table.push(0);
1339
1374
  table.push(rep | T_FLAG);
@@ -1677,6 +1712,7 @@ class Waitable {
1677
1712
  taskID: this.#id,
1678
1713
  componentIdx: this.#componentIdx,
1679
1714
  subtaskID: this.getParentSubtask()?.id(),
1715
+ args: opts,
1680
1716
  entryFnName: this.#entryFnName,
1681
1717
  });
1682
1718
 
@@ -1686,11 +1722,16 @@ class Waitable {
1686
1722
 
1687
1723
  const cstate = getOrCreateAsyncState(this.#componentIdx);
1688
1724
 
1725
+ if (opts?.isHost) {
1726
+ this.#entered = true;
1727
+ return this.#entered;
1728
+ }
1729
+
1689
1730
  await cstate.nextTaskExecutionSlot({ task: this });
1690
1731
 
1691
- // If a task is either synchronous or host-provided (e.g. a host import, whether sync or async)
1692
- // then we can avoid component-relevant tracking and immediately enter
1693
- if (this.isSync() || opts?.isHost) {
1732
+ // If a task is synchronous then we can avoid component-relevant
1733
+ // tracking and immediately enter.
1734
+ if (this.isSync()) {
1694
1735
  this.#entered = true;
1695
1736
 
1696
1737
  // TODO(breaking): remove once manually-specifying async fns is removed
@@ -1760,7 +1801,7 @@ class Waitable {
1760
1801
 
1761
1802
  async waitUntil(opts) {
1762
1803
  const { readyFn, cancellable } = opts;
1763
- _debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id, cancellable });
1804
+ _debugLog('[AsyncTask#waitUntil()] args', { taskID: this.#id, args: { cancellable } });
1764
1805
 
1765
1806
  // TODO(fix): check for cancel
1766
1807
  // TODO(fix): determinism
@@ -1776,7 +1817,13 @@ class Waitable {
1776
1817
 
1777
1818
  async yieldUntil(opts) {
1778
1819
  const { readyFn, cancellable } = opts;
1779
- _debugLog('[AsyncTask#yieldUntil()] args', { taskID: this.#id, cancellable });
1820
+ _debugLog('[AsyncTask#yieldUntil()]', {
1821
+ taskID: this.#id,
1822
+ args: {
1823
+ cancellable,
1824
+ },
1825
+ componentIdx: this.#componentIdx,
1826
+ });
1780
1827
 
1781
1828
  const keepGoing = await this.suspendUntil({ readyFn, cancellable });
1782
1829
  if (keepGoing) {
@@ -1796,7 +1843,13 @@ class Waitable {
1796
1843
 
1797
1844
  async suspendUntil(opts) {
1798
1845
  const { cancellable, readyFn } = opts;
1799
- _debugLog('[AsyncTask#suspendUntil()] args', { cancellable });
1846
+ _debugLog('[AsyncTask#suspendUntil()] args', {
1847
+ taskID: this.#id,
1848
+ args: {
1849
+ cancellable,
1850
+ },
1851
+ componentIdx: this.#componentIdx,
1852
+ });
1800
1853
 
1801
1854
  const pendingCancelled = this.deliverPendingCancel({ cancellable });
1802
1855
  if (pendingCancelled) { return false; }
@@ -1808,7 +1861,14 @@ class Waitable {
1808
1861
  // TODO(threads): equivalent to thread.suspend_until()
1809
1862
  async immediateSuspendUntil(opts) {
1810
1863
  const { cancellable, readyFn } = opts;
1811
- _debugLog('[AsyncTask#immediateSuspendUntil()] args', { cancellable, readyFn });
1864
+ _debugLog('[AsyncTask#immediateSuspendUntil()] args', {
1865
+ args: {
1866
+ cancellable,
1867
+ readyFn,
1868
+ },
1869
+ taskID: this.#id,
1870
+ componentIdx: this.#componentIdx,
1871
+ });
1812
1872
 
1813
1873
  const ready = readyFn();
1814
1874
  if (ready && ASYNC_DETERMINISM === 'random') {
@@ -1835,7 +1895,11 @@ class Waitable {
1835
1895
 
1836
1896
  deliverPendingCancel(opts) {
1837
1897
  const { cancellable } = opts;
1838
- _debugLog('[AsyncTask#deliverPendingCancel()] args', { cancellable });
1898
+ _debugLog('[AsyncTask#deliverPendingCancel()]', {
1899
+ args: { cancellable },
1900
+ taskID: this.#id,
1901
+ componentIdx: this.#componentIdx,
1902
+ });
1839
1903
 
1840
1904
  if (cancellable && this.#state === AsyncTask.State.PENDING_CANCEL) {
1841
1905
  this.#state = AsyncTask.State.CANCEL_DELIVERED;
@@ -1863,7 +1927,6 @@ class Waitable {
1863
1927
  this.#onResolveHandlers = [];
1864
1928
  for (const f of handlers) {
1865
1929
  try {
1866
- // TODO(fix): resolve handlers getting called a ton?
1867
1930
  f(taskValue);
1868
1931
  } catch (err) {
1869
1932
  _debugLog("[AsyncTask#onResolve] error during task resolve handler", err);
@@ -3026,10 +3089,14 @@ function _lowerFlatFlags(meta) {
3026
3089
 
3027
3090
  let flagObj = ctx.vals[0];
3028
3091
  let flagValue = 0;
3029
- for (const [idx, name] of names.entries()) {
3030
- if (flagObj[name] === true) {
3031
- flagValue |= 1 << idx;
3092
+ if (typeof flagObj === 'object' && flagObj !== null) {
3093
+ for (const [idx, name] of names.entries()) {
3094
+ if (flagObj[name] === true) {
3095
+ flagValue |= 1 << idx;
3096
+ }
3032
3097
  }
3098
+ } else if (flagObj !== null && flagObj !== undefined) {
3099
+ throw new TypeError('only an object, undefined or null can be converted to flags');
3033
3100
  }
3034
3101
 
3035
3102
  const rem = ctx.storagePtr % align32;
@@ -3386,7 +3453,10 @@ class ComponentAsyncState {
3386
3453
  }
3387
3454
 
3388
3455
  #removeSuspendedTaskMeta(taskID) {
3389
- _debugLog('[ComponentAsyncState#removeSuspendedTaskMeta()] removing suspended task', { taskID });
3456
+ _debugLog('[ComponentAsyncState#removeSuspendedTaskMeta()] removing suspended task', {
3457
+ taskID,
3458
+ componentIdx: this.#componentIdx,
3459
+ });
3390
3460
  const idx = this.#suspendedTaskIDs.findIndex(t => t === taskID);
3391
3461
  const meta = this.#suspendedTasksByTaskID.get(taskID);
3392
3462
  this.#suspendedTaskIDs[idx] = null;
@@ -3408,6 +3478,7 @@ class ComponentAsyncState {
3408
3478
  suspendTask(args) {
3409
3479
  const { task, readyFn } = args;
3410
3480
  const taskID = task.id();
3481
+ const componentIdx = task.componentIdx();
3411
3482
  _debugLog('[ComponentAsyncState#suspendTask()]', {
3412
3483
  taskID,
3413
3484
  componentIdx: this.#componentIdx,
@@ -3415,6 +3486,10 @@ class ComponentAsyncState {
3415
3486
  subtask: task.getParentSubtask(),
3416
3487
  });
3417
3488
 
3489
+ if (componentIdx !== this.#componentIdx) {
3490
+ throw new Error('assert: task component idx should match async state');
3491
+ }
3492
+
3418
3493
  if (this.#getSuspendedTaskMeta(taskID)) {
3419
3494
  throw new Error(`task [${taskID}] already suspended`);
3420
3495
  }
@@ -3425,7 +3500,10 @@ class ComponentAsyncState {
3425
3500
  taskID,
3426
3501
  readyFn,
3427
3502
  resume: () => {
3428
- _debugLog('[ComponentAsyncState#suspendTask()] resuming suspended task', { taskID });
3503
+ _debugLog('[ComponentAsyncState] resuming suspended task', {
3504
+ taskID,
3505
+ componentIdx: this.#componentIdx,
3506
+ });
3429
3507
  // TODO(threads): it's thread cancellation we should be checking for below, not task
3430
3508
  resolve(!task.isCancelled());
3431
3509
  },
@@ -3469,7 +3547,7 @@ class ComponentAsyncState {
3469
3547
  // If the task failed via any means, allow the task to resume because
3470
3548
  // it's been cancelled -- the callback should immediately exit as well
3471
3549
  if (meta.task.isRejected()) {
3472
- _debugLog('[ComponentAsyncState#suspendTask()] detected task rejection, leaving early', { meta });
3550
+ _debugLog('[ComponentAsyncState#tick()] detected task rejection, leaving early', { meta });
3473
3551
  this.resumeTaskByID(taskID);
3474
3552
  return;
3475
3553
  }
@@ -3477,6 +3555,10 @@ class ComponentAsyncState {
3477
3555
  const isReady = meta.readyFn();
3478
3556
  if (!isReady) { continue; }
3479
3557
 
3558
+ _debugLog('[ComponentAsyncState#tick()] resuming task via tick', {
3559
+ taskID,
3560
+ componentIdx: this.#componentIdx,
3561
+ });
3480
3562
  this.resumeTaskByID(taskID);
3481
3563
  }
3482
3564
 
@@ -3849,7 +3931,8 @@ const symbolRscHandle = Symbol('handle');
3849
3931
 
3850
3932
  const symbolRscRep = Symbol.for('cabiRep');
3851
3933
 
3852
- const handleTables = [];
3934
+ const HANDLE_TABLES= [];
3935
+
3853
3936
 
3854
3937
  class ComponentError extends Error {
3855
3938
  constructor (value) {
@@ -3878,14 +3961,19 @@ const instantiateCore = WebAssembly.instantiate;
3878
3961
 
3879
3962
  let exports0;
3880
3963
  let exports1;
3964
+
3881
3965
  const handleTable2 = [T_FLAG, 0];
3966
+ handleTable2._createdReps = new Set();
3967
+
3968
+
3882
3969
  const captureTable2= new Map();
3883
- let captureCnt2 = 0;
3884
- handleTables[2] = handleTable2;
3970
+ let captureCnt2= 0;
3971
+
3972
+ HANDLE_TABLES[2] = handleTable2;
3885
3973
 
3886
3974
  const _trampoline5 = function() {
3887
3975
  _debugLog('[iface="wasi:cli/stderr@0.2.3", function="get-stderr"] [Instruction::CallInterface] (sync, @ enter)');
3888
- let hostProvided = true;
3976
+ const hostProvided = true;
3889
3977
 
3890
3978
  let parentTask;
3891
3979
  let task;
@@ -3939,6 +4027,11 @@ const _trampoline5 = function() {
3939
4027
  ;
3940
4028
  } catch (err) {
3941
4029
 
4030
+ _debugLog('[Instruction::CallInterface] error during sync call', {
4031
+ taskID: task.id(),
4032
+ subtaskID: currentSubtask?.id(),
4033
+ err,
4034
+ });
3942
4035
  task.setErrored(err);
3943
4036
  task.reject(err);
3944
4037
  task.exit();
@@ -3968,14 +4061,19 @@ const _trampoline5 = function() {
3968
4061
  return handle0;
3969
4062
  }
3970
4063
  _trampoline5.fnName = 'wasi:cli/stderr@0.2.3#getStderr';
4064
+
3971
4065
  const handleTable1 = [T_FLAG, 0];
4066
+ handleTable1._createdReps = new Set();
4067
+
4068
+
3972
4069
  const captureTable1= new Map();
3973
- let captureCnt1 = 0;
3974
- handleTables[1] = handleTable1;
4070
+ let captureCnt1= 0;
4071
+
4072
+ HANDLE_TABLES[1] = handleTable1;
3975
4073
 
3976
4074
  const _trampoline8 = function() {
3977
4075
  _debugLog('[iface="wasi:cli/stdin@0.2.3", function="get-stdin"] [Instruction::CallInterface] (sync, @ enter)');
3978
- let hostProvided = true;
4076
+ const hostProvided = true;
3979
4077
 
3980
4078
  let parentTask;
3981
4079
  let task;
@@ -4029,6 +4127,11 @@ const _trampoline8 = function() {
4029
4127
  ;
4030
4128
  } catch (err) {
4031
4129
 
4130
+ _debugLog('[Instruction::CallInterface] error during sync call', {
4131
+ taskID: task.id(),
4132
+ subtaskID: currentSubtask?.id(),
4133
+ err,
4134
+ });
4032
4135
  task.setErrored(err);
4033
4136
  task.reject(err);
4034
4137
  task.exit();
@@ -4061,7 +4164,7 @@ _trampoline8.fnName = 'wasi:cli/stdin@0.2.3#getStdin';
4061
4164
 
4062
4165
  const _trampoline9 = function() {
4063
4166
  _debugLog('[iface="wasi:cli/stdout@0.2.3", function="get-stdout"] [Instruction::CallInterface] (sync, @ enter)');
4064
- let hostProvided = true;
4167
+ const hostProvided = true;
4065
4168
 
4066
4169
  let parentTask;
4067
4170
  let task;
@@ -4115,6 +4218,11 @@ const _trampoline9 = function() {
4115
4218
  ;
4116
4219
  } catch (err) {
4117
4220
 
4221
+ _debugLog('[Instruction::CallInterface] error during sync call', {
4222
+ taskID: task.id(),
4223
+ subtaskID: currentSubtask?.id(),
4224
+ err,
4225
+ });
4118
4226
  task.setErrored(err);
4119
4227
  task.reject(err);
4120
4228
  task.exit();
@@ -4167,7 +4275,7 @@ const _trampoline10 = function(arg0) {
4167
4275
  }
4168
4276
  }
4169
4277
  _debugLog('[iface="wasi:cli/exit@0.2.3", function="exit"] [Instruction::CallInterface] (sync, @ enter)');
4170
- let hostProvided = true;
4278
+ const hostProvided = true;
4171
4279
 
4172
4280
  let parentTask;
4173
4281
  let task;
@@ -4221,6 +4329,11 @@ const _trampoline10 = function(arg0) {
4221
4329
  ;
4222
4330
  } catch (err) {
4223
4331
 
4332
+ _debugLog('[Instruction::CallInterface] error during sync call', {
4333
+ taskID: task.id(),
4334
+ subtaskID: currentSubtask?.id(),
4335
+ err,
4336
+ });
4224
4337
  task.setErrored(err);
4225
4338
  task.reject(err);
4226
4339
  task.exit();
@@ -4245,7 +4358,7 @@ let realloc0Async;
4245
4358
 
4246
4359
  const _trampoline11 = function(arg0) {
4247
4360
  _debugLog('[iface="wasi:cli/environment@0.2.3", function="get-environment"] [Instruction::CallInterface] (sync, @ enter)');
4248
- let hostProvided = true;
4361
+ const hostProvided = true;
4249
4362
 
4250
4363
  let parentTask;
4251
4364
  let task;
@@ -4299,6 +4412,11 @@ const _trampoline11 = function(arg0) {
4299
4412
  ;
4300
4413
  } catch (err) {
4301
4414
 
4415
+ _debugLog('[Instruction::CallInterface] error during sync call', {
4416
+ taskID: task.id(),
4417
+ subtaskID: currentSubtask?.id(),
4418
+ err,
4419
+ });
4302
4420
  task.setErrored(err);
4303
4421
  task.reject(err);
4304
4422
  task.exit();
@@ -4339,10 +4457,15 @@ const _trampoline11 = function(arg0) {
4339
4457
  task.exit();
4340
4458
  }
4341
4459
  _trampoline11.fnName = 'wasi:cli/environment@0.2.3#getEnvironment';
4460
+
4342
4461
  const handleTable6 = [T_FLAG, 0];
4462
+ handleTable6._createdReps = new Set();
4463
+
4464
+
4343
4465
  const captureTable6= new Map();
4344
- let captureCnt6 = 0;
4345
- handleTables[6] = handleTable6;
4466
+ let captureCnt6= 0;
4467
+
4468
+ HANDLE_TABLES[6] = handleTable6;
4346
4469
 
4347
4470
  const _trampoline12 = function(arg0, arg1) {
4348
4471
  var handle1 = arg0;
@@ -4357,7 +4480,7 @@ const _trampoline12 = function(arg0, arg1) {
4357
4480
 
4358
4481
  curResourceBorrows.push(rsc0);
4359
4482
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.get-flags"] [Instruction::CallInterface] (sync, @ enter)');
4360
- let hostProvided = true;
4483
+ const hostProvided = true;
4361
4484
 
4362
4485
  let parentTask;
4363
4486
  let task;
@@ -4626,7 +4749,7 @@ const _trampoline13 = function(arg0, arg1) {
4626
4749
 
4627
4750
  curResourceBorrows.push(rsc0);
4628
4751
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.get-type"] [Instruction::CallInterface] (sync, @ enter)');
4629
- let hostProvided = true;
4752
+ const hostProvided = true;
4630
4753
 
4631
4754
  let parentTask;
4632
4755
  let task;
@@ -4932,7 +5055,7 @@ const _trampoline14 = function(arg0, arg1) {
4932
5055
 
4933
5056
  curResourceBorrows.push(rsc0);
4934
5057
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.metadata-hash"] [Instruction::CallInterface] (sync, @ enter)');
4935
- let hostProvided = true;
5058
+ const hostProvided = true;
4936
5059
 
4937
5060
  let parentTask;
4938
5061
  let task;
@@ -5183,10 +5306,15 @@ task.resolve([ret]);
5183
5306
  task.exit();
5184
5307
  }
5185
5308
  _trampoline14.fnName = 'wasi:filesystem/types@0.2.3#metadataHash';
5309
+
5186
5310
  const handleTable0 = [T_FLAG, 0];
5311
+ handleTable0._createdReps = new Set();
5312
+
5313
+
5187
5314
  const captureTable0= new Map();
5188
- let captureCnt0 = 0;
5189
- handleTables[0] = handleTable0;
5315
+ let captureCnt0= 0;
5316
+
5317
+ HANDLE_TABLES[0] = handleTable0;
5190
5318
 
5191
5319
  const _trampoline15 = function(arg0, arg1) {
5192
5320
  var handle1 = arg0;
@@ -5201,7 +5329,7 @@ const _trampoline15 = function(arg0, arg1) {
5201
5329
 
5202
5330
  curResourceBorrows.push(rsc0);
5203
5331
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="filesystem-error-code"] [Instruction::CallInterface] (sync, @ enter)');
5204
- let hostProvided = true;
5332
+ const hostProvided = true;
5205
5333
 
5206
5334
  let parentTask;
5207
5335
  let task;
@@ -5255,6 +5383,11 @@ const _trampoline15 = function(arg0, arg1) {
5255
5383
  ;
5256
5384
  } catch (err) {
5257
5385
 
5386
+ _debugLog('[Instruction::CallInterface] error during sync call', {
5387
+ taskID: task.id(),
5388
+ subtaskID: currentSubtask?.id(),
5389
+ err,
5390
+ });
5258
5391
  task.setErrored(err);
5259
5392
  task.reject(err);
5260
5393
  task.exit();
@@ -5466,7 +5599,7 @@ const _trampoline16 = function(arg0, arg1, arg2, arg3, arg4) {
5466
5599
  var len4 = arg3;
5467
5600
  var result4 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr4, len4));
5468
5601
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.metadata-hash-at"] [Instruction::CallInterface] (sync, @ enter)');
5469
- let hostProvided = true;
5602
+ const hostProvided = true;
5470
5603
 
5471
5604
  let parentTask;
5472
5605
  let task;
@@ -5731,7 +5864,7 @@ const _trampoline17 = function(arg0, arg1, arg2) {
5731
5864
 
5732
5865
  curResourceBorrows.push(rsc0);
5733
5866
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.read-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
5734
- let hostProvided = true;
5867
+ const hostProvided = true;
5735
5868
 
5736
5869
  let parentTask;
5737
5870
  let task;
@@ -6005,7 +6138,7 @@ const _trampoline18 = function(arg0, arg1, arg2) {
6005
6138
 
6006
6139
  curResourceBorrows.push(rsc0);
6007
6140
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.write-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
6008
- let hostProvided = true;
6141
+ const hostProvided = true;
6009
6142
 
6010
6143
  let parentTask;
6011
6144
  let task;
@@ -6279,7 +6412,7 @@ const _trampoline19 = function(arg0, arg1) {
6279
6412
 
6280
6413
  curResourceBorrows.push(rsc0);
6281
6414
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.append-via-stream"] [Instruction::CallInterface] (sync, @ enter)');
6282
- let hostProvided = true;
6415
+ const hostProvided = true;
6283
6416
 
6284
6417
  let parentTask;
6285
6418
  let task;
@@ -6539,10 +6672,15 @@ task.resolve([ret]);
6539
6672
  task.exit();
6540
6673
  }
6541
6674
  _trampoline19.fnName = 'wasi:filesystem/types@0.2.3#appendViaStream';
6675
+
6542
6676
  const handleTable5 = [T_FLAG, 0];
6677
+ handleTable5._createdReps = new Set();
6678
+
6679
+
6543
6680
  const captureTable5= new Map();
6544
- let captureCnt5 = 0;
6545
- handleTables[5] = handleTable5;
6681
+ let captureCnt5= 0;
6682
+
6683
+ HANDLE_TABLES[5] = handleTable5;
6546
6684
 
6547
6685
  const _trampoline20 = function(arg0, arg1) {
6548
6686
  var handle1 = arg0;
@@ -6557,7 +6695,7 @@ const _trampoline20 = function(arg0, arg1) {
6557
6695
 
6558
6696
  curResourceBorrows.push(rsc0);
6559
6697
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.read-directory"] [Instruction::CallInterface] (sync, @ enter)');
6560
- let hostProvided = true;
6698
+ const hostProvided = true;
6561
6699
 
6562
6700
  let parentTask;
6563
6701
  let task;
@@ -6831,7 +6969,7 @@ const _trampoline21 = function(arg0, arg1) {
6831
6969
 
6832
6970
  curResourceBorrows.push(rsc0);
6833
6971
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.stat"] [Instruction::CallInterface] (sync, @ enter)');
6834
- let hostProvided = true;
6972
+ const hostProvided = true;
6835
6973
 
6836
6974
  let parentTask;
6837
6975
  let task;
@@ -7179,7 +7317,7 @@ const _trampoline22 = function(arg0, arg1, arg2, arg3, arg4) {
7179
7317
  var len4 = arg3;
7180
7318
  var result4 = TEXT_DECODER_UTF8.decode(new Uint8Array(memory0.buffer, ptr4, len4));
7181
7319
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.stat-at"] [Instruction::CallInterface] (sync, @ enter)');
7182
- let hostProvided = true;
7320
+ const hostProvided = true;
7183
7321
 
7184
7322
  let parentTask;
7185
7323
  let task;
@@ -7547,7 +7685,7 @@ const _trampoline23 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
7547
7685
  mutateDirectory: Boolean(arg5 & 32),
7548
7686
  };
7549
7687
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]descriptor.open-at"] [Instruction::CallInterface] (sync, @ enter)');
7550
- let hostProvided = true;
7688
+ const hostProvided = true;
7551
7689
 
7552
7690
  let parentTask;
7553
7691
  let task;
@@ -7821,7 +7959,7 @@ const _trampoline24 = function(arg0, arg1) {
7821
7959
 
7822
7960
  curResourceBorrows.push(rsc0);
7823
7961
  _debugLog('[iface="wasi:filesystem/types@0.2.3", function="[method]directory-entry-stream.read-directory-entry"] [Instruction::CallInterface] (sync, @ enter)');
7824
- let hostProvided = true;
7962
+ const hostProvided = true;
7825
7963
 
7826
7964
  let parentTask;
7827
7965
  let task;
@@ -8142,7 +8280,7 @@ const _trampoline25 = function(arg0, arg1, arg2) {
8142
8280
 
8143
8281
  curResourceBorrows.push(rsc0);
8144
8282
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]input-stream.read"] [Instruction::CallInterface] (sync, @ enter)');
8145
- let hostProvided = true;
8283
+ const hostProvided = true;
8146
8284
 
8147
8285
  let parentTask;
8148
8286
  let task;
@@ -8295,7 +8433,7 @@ const _trampoline26 = function(arg0, arg1, arg2) {
8295
8433
 
8296
8434
  curResourceBorrows.push(rsc0);
8297
8435
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]input-stream.blocking-read"] [Instruction::CallInterface] (sync, @ enter)');
8298
- let hostProvided = true;
8436
+ const hostProvided = true;
8299
8437
 
8300
8438
  let parentTask;
8301
8439
  let task;
@@ -8448,7 +8586,7 @@ const _trampoline27 = function(arg0, arg1) {
8448
8586
 
8449
8587
  curResourceBorrows.push(rsc0);
8450
8588
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]output-stream.check-write"] [Instruction::CallInterface] (sync, @ enter)');
8451
- let hostProvided = true;
8589
+ const hostProvided = true;
8452
8590
 
8453
8591
  let parentTask;
8454
8592
  let task;
@@ -8581,7 +8719,7 @@ const _trampoline28 = function(arg0, arg1, arg2, arg3) {
8581
8719
  var len3 = arg2;
8582
8720
  var result3 = new Uint8Array(memory0.buffer.slice(ptr3, ptr3 + len3 * 1));
8583
8721
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]output-stream.write"] [Instruction::CallInterface] (sync, @ enter)');
8584
- let hostProvided = true;
8722
+ const hostProvided = true;
8585
8723
 
8586
8724
  let parentTask;
8587
8725
  let task;
@@ -8713,7 +8851,7 @@ const _trampoline29 = function(arg0, arg1, arg2, arg3) {
8713
8851
  var len3 = arg2;
8714
8852
  var result3 = new Uint8Array(memory0.buffer.slice(ptr3, ptr3 + len3 * 1));
8715
8853
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]output-stream.blocking-write-and-flush"] [Instruction::CallInterface] (sync, @ enter)');
8716
- let hostProvided = true;
8854
+ const hostProvided = true;
8717
8855
 
8718
8856
  let parentTask;
8719
8857
  let task;
@@ -8842,7 +8980,7 @@ const _trampoline30 = function(arg0, arg1) {
8842
8980
 
8843
8981
  curResourceBorrows.push(rsc0);
8844
8982
  _debugLog('[iface="wasi:io/streams@0.2.3", function="[method]output-stream.blocking-flush"] [Instruction::CallInterface] (sync, @ enter)');
8845
- let hostProvided = true;
8983
+ const hostProvided = true;
8846
8984
 
8847
8985
  let parentTask;
8848
8986
  let task;
@@ -8960,7 +9098,7 @@ _trampoline30.fnName = 'wasi:io/streams@0.2.3#blockingFlush';
8960
9098
 
8961
9099
  const _trampoline31 = function(arg0, arg1) {
8962
9100
  _debugLog('[iface="wasi:random/random@0.2.3", function="get-random-bytes"] [Instruction::CallInterface] (sync, @ enter)');
8963
- let hostProvided = true;
9101
+ const hostProvided = true;
8964
9102
 
8965
9103
  let parentTask;
8966
9104
  let task;
@@ -9014,6 +9152,11 @@ const _trampoline31 = function(arg0, arg1) {
9014
9152
  ;
9015
9153
  } catch (err) {
9016
9154
 
9155
+ _debugLog('[Instruction::CallInterface] error during sync call', {
9156
+ taskID: task.id(),
9157
+ subtaskID: currentSubtask?.id(),
9158
+ err,
9159
+ });
9017
9160
  task.setErrored(err);
9018
9161
  task.reject(err);
9019
9162
  task.exit();
@@ -9058,7 +9201,7 @@ _trampoline31.fnName = 'wasi:random/random@0.2.3#getRandomBytes';
9058
9201
 
9059
9202
  const _trampoline32 = function(arg0) {
9060
9203
  _debugLog('[iface="wasi:filesystem/preopens@0.2.3", function="get-directories"] [Instruction::CallInterface] (sync, @ enter)');
9061
- let hostProvided = true;
9204
+ const hostProvided = true;
9062
9205
 
9063
9206
  let parentTask;
9064
9207
  let task;
@@ -9112,6 +9255,11 @@ const _trampoline32 = function(arg0) {
9112
9255
  ;
9113
9256
  } catch (err) {
9114
9257
 
9258
+ _debugLog('[Instruction::CallInterface] error during sync call', {
9259
+ taskID: task.id(),
9260
+ subtaskID: currentSubtask?.id(),
9261
+ err,
9262
+ });
9115
9263
  task.setErrored(err);
9116
9264
  task.reject(err);
9117
9265
  task.exit();
@@ -9157,14 +9305,19 @@ const _trampoline32 = function(arg0) {
9157
9305
  task.exit();
9158
9306
  }
9159
9307
  _trampoline32.fnName = 'wasi:filesystem/preopens@0.2.3#getDirectories';
9308
+
9160
9309
  const handleTable3 = [T_FLAG, 0];
9310
+ handleTable3._createdReps = new Set();
9311
+
9312
+
9161
9313
  const captureTable3= new Map();
9162
- let captureCnt3 = 0;
9163
- handleTables[3] = handleTable3;
9314
+ let captureCnt3= 0;
9315
+
9316
+ HANDLE_TABLES[3] = handleTable3;
9164
9317
 
9165
9318
  const _trampoline33 = function(arg0) {
9166
9319
  _debugLog('[iface="wasi:cli/terminal-stdin@0.2.3", function="get-terminal-stdin"] [Instruction::CallInterface] (sync, @ enter)');
9167
- let hostProvided = true;
9320
+ const hostProvided = true;
9168
9321
 
9169
9322
  let parentTask;
9170
9323
  let task;
@@ -9218,6 +9371,11 @@ const _trampoline33 = function(arg0) {
9218
9371
  ;
9219
9372
  } catch (err) {
9220
9373
 
9374
+ _debugLog('[Instruction::CallInterface] error during sync call', {
9375
+ taskID: task.id(),
9376
+ subtaskID: currentSubtask?.id(),
9377
+ err,
9378
+ });
9221
9379
  task.setErrored(err);
9222
9380
  task.reject(err);
9223
9381
  task.exit();
@@ -9254,14 +9412,19 @@ const _trampoline33 = function(arg0) {
9254
9412
  task.exit();
9255
9413
  }
9256
9414
  _trampoline33.fnName = 'wasi:cli/terminal-stdin@0.2.3#getTerminalStdin';
9415
+
9257
9416
  const handleTable4 = [T_FLAG, 0];
9417
+ handleTable4._createdReps = new Set();
9418
+
9419
+
9258
9420
  const captureTable4= new Map();
9259
- let captureCnt4 = 0;
9260
- handleTables[4] = handleTable4;
9421
+ let captureCnt4= 0;
9422
+
9423
+ HANDLE_TABLES[4] = handleTable4;
9261
9424
 
9262
9425
  const _trampoline34 = function(arg0) {
9263
9426
  _debugLog('[iface="wasi:cli/terminal-stdout@0.2.3", function="get-terminal-stdout"] [Instruction::CallInterface] (sync, @ enter)');
9264
- let hostProvided = true;
9427
+ const hostProvided = true;
9265
9428
 
9266
9429
  let parentTask;
9267
9430
  let task;
@@ -9315,6 +9478,11 @@ const _trampoline34 = function(arg0) {
9315
9478
  ;
9316
9479
  } catch (err) {
9317
9480
 
9481
+ _debugLog('[Instruction::CallInterface] error during sync call', {
9482
+ taskID: task.id(),
9483
+ subtaskID: currentSubtask?.id(),
9484
+ err,
9485
+ });
9318
9486
  task.setErrored(err);
9319
9487
  task.reject(err);
9320
9488
  task.exit();
@@ -9354,7 +9522,7 @@ _trampoline34.fnName = 'wasi:cli/terminal-stdout@0.2.3#getTerminalStdout';
9354
9522
 
9355
9523
  const _trampoline35 = function(arg0) {
9356
9524
  _debugLog('[iface="wasi:cli/terminal-stderr@0.2.3", function="get-terminal-stderr"] [Instruction::CallInterface] (sync, @ enter)');
9357
- let hostProvided = true;
9525
+ const hostProvided = true;
9358
9526
 
9359
9527
  let parentTask;
9360
9528
  let task;
@@ -9408,6 +9576,11 @@ const _trampoline35 = function(arg0) {
9408
9576
  ;
9409
9577
  } catch (err) {
9410
9578
 
9579
+ _debugLog('[Instruction::CallInterface] error during sync call', {
9580
+ taskID: task.id(),
9581
+ subtaskID: currentSubtask?.id(),
9582
+ err,
9583
+ });
9411
9584
  task.setErrored(err);
9412
9585
  task.reject(err);
9413
9586
  task.exit();
@@ -9499,6 +9672,10 @@ function parse(arg0) {
9499
9672
  });
9500
9673
  } catch (err) {
9501
9674
 
9675
+ _debugLog('[Instruction::CallWasm] error during sync call', {
9676
+ taskID: task.id(),
9677
+ err,
9678
+ });
9502
9679
  task.setErrored(err);
9503
9680
  task.reject(err);
9504
9681
  task.exit();
@@ -9618,6 +9795,10 @@ function print(arg0) {
9618
9795
  });
9619
9796
  } catch (err) {
9620
9797
 
9798
+ _debugLog('[Instruction::CallWasm] error during sync call', {
9799
+ taskID: task.id(),
9800
+ err,
9801
+ });
9621
9802
  task.setErrored(err);
9622
9803
  task.reject(err);
9623
9804
  task.exit();
@@ -9789,6 +9970,10 @@ function componentNew(arg0, arg1) {
9789
9970
  });
9790
9971
  } catch (err) {
9791
9972
 
9973
+ _debugLog('[Instruction::CallWasm] error during sync call', {
9974
+ taskID: task.id(),
9975
+ err,
9976
+ });
9792
9977
  task.setErrored(err);
9793
9978
  task.reject(err);
9794
9979
  task.exit();
@@ -9908,6 +10093,10 @@ function componentWit(arg0) {
9908
10093
  });
9909
10094
  } catch (err) {
9910
10095
 
10096
+ _debugLog('[Instruction::CallWasm] error during sync call', {
10097
+ taskID: task.id(),
10098
+ err,
10099
+ });
9911
10100
  task.setErrored(err);
9912
10101
  task.reject(err);
9913
10102
  task.exit();
@@ -10057,6 +10246,10 @@ function componentWitMetadataForWorld(arg0, arg1) {
10057
10246
  });
10058
10247
  } catch (err) {
10059
10248
 
10249
+ _debugLog('[Instruction::CallWasm] error during sync call', {
10250
+ taskID: task.id(),
10251
+ err,
10252
+ });
10060
10253
  task.setErrored(err);
10061
10254
  task.reject(err);
10062
10255
  task.exit();
@@ -10501,6 +10694,10 @@ function componentEmbed(arg0) {
10501
10694
  });
10502
10695
  } catch (err) {
10503
10696
 
10697
+ _debugLog('[Instruction::CallWasm] error during sync call', {
10698
+ taskID: task.id(),
10699
+ err,
10700
+ });
10504
10701
  task.setErrored(err);
10505
10702
  task.reject(err);
10506
10703
  task.exit();
@@ -10620,6 +10817,10 @@ function metadataShow(arg0) {
10620
10817
  });
10621
10818
  } catch (err) {
10622
10819
 
10820
+ _debugLog('[Instruction::CallWasm] error during sync call', {
10821
+ taskID: task.id(),
10822
+ err,
10823
+ });
10623
10824
  task.setErrored(err);
10624
10825
  task.reject(err);
10625
10826
  task.exit();
@@ -10859,6 +11060,10 @@ function metadataAdd(arg0, arg1) {
10859
11060
  });
10860
11061
  } catch (err) {
10861
11062
 
11063
+ _debugLog('[Instruction::CallWasm] error during sync call', {
11064
+ taskID: task.id(),
11065
+ err,
11066
+ });
10862
11067
  task.setErrored(err);
10863
11068
  task.reject(err);
10864
11069
  task.exit();
@@ -11324,7 +11529,7 @@ null,
11324
11529
  isManualAsync: _trampoline12.manuallyAsync,
11325
11530
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
11326
11531
  resultLowerFns: [_lowerFlatResult([
11327
- [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
11532
+ [ 'ok', _lowerFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
11328
11533
  [ '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 ],
11329
11534
  ])
11330
11535
  ],
@@ -11348,7 +11553,7 @@ null,
11348
11553
  isManualAsync: _trampoline12.manuallyAsync,
11349
11554
  paramLiftFns: [_liftFlatBorrow.bind(null, 6)],
11350
11555
  resultLowerFns: [_lowerFlatResult([
11351
- [ 'ok', _lowerFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
11556
+ [ 'ok', _lowerFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 }), 2, 1, 1 ],
11352
11557
  [ '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 ],
11353
11558
  ])
11354
11559
  ],
@@ -11518,7 +11723,7 @@ null,
11518
11723
  componentIdx: 0,
11519
11724
  isAsync: false,
11520
11725
  isManualAsync: _trampoline16.manuallyAsync,
11521
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
11726
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
11522
11727
  resultLowerFns: [_lowerFlatResult([
11523
11728
  [ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
11524
11729
  [ '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 ],
@@ -11542,7 +11747,7 @@ null,
11542
11747
  componentIdx: 0,
11543
11748
  isAsync: false,
11544
11749
  isManualAsync: _trampoline16.manuallyAsync,
11545
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
11750
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
11546
11751
  resultLowerFns: [_lowerFlatResult([
11547
11752
  [ 'ok', _lowerFlatRecord({ fieldMetas: [['lower', _lowerFlatU64, 8, 8 ],['upper', _lowerFlatU64, 8, 8 ],], size32: 16, align32: 8 }), 24, 8, 8 ],
11548
11753
  [ '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 ],
@@ -11964,7 +12169,7 @@ null,
11964
12169
  componentIdx: 0,
11965
12170
  isAsync: false,
11966
12171
  isManualAsync: _trampoline22.manuallyAsync,
11967
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
12172
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
11968
12173
  resultLowerFns: [_lowerFlatResult([
11969
12174
  [ '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([
11970
12175
  [ 'none', null, 24, 8, 8 ],
@@ -12000,7 +12205,7 @@ null,
12000
12205
  componentIdx: 0,
12001
12206
  isAsync: false,
12002
12207
  isManualAsync: _trampoline22.manuallyAsync,
12003
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
12208
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny],
12004
12209
  resultLowerFns: [_lowerFlatResult([
12005
12210
  [ '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([
12006
12211
  [ 'none', null, 24, 8, 8 ],
@@ -12037,7 +12242,7 @@ null,
12037
12242
  componentIdx: 0,
12038
12243
  isAsync: false,
12039
12244
  isManualAsync: _trampoline23.manuallyAsync,
12040
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 })],
12245
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 })],
12041
12246
  resultLowerFns: [_lowerFlatResult([
12042
12247
  [ 'ok', _lowerFlatOwn({
12043
12248
  componentIdx: 0,
@@ -12077,7 +12282,7 @@ null,
12077
12282
  componentIdx: 0,
12078
12283
  isAsync: false,
12079
12284
  isManualAsync: _trampoline23.manuallyAsync,
12080
- paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlink-follow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','file-integrity-sync','data-integrity-sync','requested-write-sync','mutate-directory'], size32: 1, align32: 1, intSizeBytes: 1 })],
12285
+ paramLiftFns: [_liftFlatBorrow.bind(null, 6),_liftFlatFlags({ names: ['symlinkFollow'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatStringAny,_liftFlatFlags({ names: ['create','directory','exclusive','truncate'], size32: 1, align32: 1, intSizeBytes: 1 }),_liftFlatFlags({ names: ['read','write','fileIntegritySync','dataIntegritySync','requestedWriteSync','mutateDirectory'], size32: 1, align32: 1, intSizeBytes: 1 })],
12081
12286
  resultLowerFns: [_lowerFlatResult([
12082
12287
  [ 'ok', _lowerFlatOwn({
12083
12288
  componentIdx: 0,