@ruby/head-wasm-wasi 2.6.2-2024-08-20-a → 2.6.2-2024-08-22-a

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.
@@ -2932,7 +2932,7 @@ SOFTWARE.
2932
2932
  };
2933
2933
 
2934
2934
  var name = "@ruby/head-wasm-wasi";
2935
- var version = "2.6.2-2024-08-20-a";
2935
+ var version = "2.6.2-2024-08-22-a";
2936
2936
  var description = "Ruby head built on WASI";
2937
2937
  var main = "./dist/cjs/index.js";
2938
2938
  var module = "./dist/esm/index.js";
@@ -2982,7 +2982,7 @@ SOFTWARE.
2982
2982
  ];
2983
2983
  var license = "MIT";
2984
2984
  var dependencies = {
2985
- "@ruby/wasm-wasi": "2.6.2-2024-08-20-a"
2985
+ "@ruby/wasm-wasi": "2.6.2-2024-08-22-a"
2986
2986
  };
2987
2987
  var _package = {
2988
2988
  name: name,
@@ -16,7 +16,7 @@ export namespace RubyJsJsRuntime {
16
16
  export function jsValueTypeof(value: JsAbiValue): string;
17
17
  export function jsValueEqual(lhs: JsAbiValue, rhs: JsAbiValue): boolean;
18
18
  export function jsValueStrictlyEqual(lhs: JsAbiValue, rhs: JsAbiValue): boolean;
19
- export function reflectApply(target: JsAbiValue, thisArgument: JsAbiValue, arguments: JsAbiValue[]): JsAbiResult;
19
+ export function reflectApply(target: JsAbiValue, thisArgument: JsAbiValue, arguments: Array<JsAbiValue>): JsAbiResult;
20
20
  export function reflectGet(target: JsAbiValue, propertyKey: string): JsAbiResult;
21
21
  export function reflectSet(target: JsAbiValue, propertyKey: string, value: JsAbiValue): JsAbiResult;
22
22
  export function throwProhibitRewindException(message: string): void;
@@ -1,12 +1,12 @@
1
1
  export namespace RubyJsRubyRuntime {
2
2
  export function rubyShowVersion(): void;
3
3
  export function rubyInit(): void;
4
- export function rubySysinit(args: string[]): void;
5
- export function rubyOptions(args: string[]): RbIseq;
4
+ export function rubySysinit(args: Array<string>): void;
5
+ export function rubyOptions(args: Array<string>): RbIseq;
6
6
  export function rubyScript(name: string): void;
7
7
  export function rubyInitLoadpath(): void;
8
8
  export function rbEvalStringProtect(str: string): [RbAbiValue, number];
9
- export function rbFuncallvProtect(recv: RbAbiValue, mid: RbId, args: RbAbiValue[]): [RbAbiValue, number];
9
+ export function rbFuncallvProtect(recv: RbAbiValue, mid: RbId, args: Array<RbAbiValue>): [RbAbiValue, number];
10
10
  export function rbIntern(name: string): RbId;
11
11
  export function rbErrinfo(): RbAbiValue;
12
12
  export function rbClearErrinfo(): void;
@@ -1,5 +1,5 @@
1
1
  export namespace WasiCliEnvironment {
2
- export function getEnvironment(): [string, string][];
3
- export function getArguments(): string[];
2
+ export function getEnvironment(): Array<[string, string]>;
3
+ export function getArguments(): Array<string>;
4
4
  export function initialCwd(): string | undefined;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export namespace WasiFilesystemPreopens {
2
- export function getDirectories(): [Descriptor, string][];
2
+ export function getDirectories(): Array<[Descriptor, string]>;
3
3
  }
4
4
  import type { Descriptor } from './wasi-filesystem-types.js';
5
5
  export { Descriptor };
@@ -229,13 +229,13 @@ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
229
229
 
230
230
  export class Fields {
231
231
  constructor()
232
- static fromList(entries: [FieldKey, FieldValue][]): Fields;
233
- get(name: FieldKey): FieldValue[];
232
+ static fromList(entries: Array<[FieldKey, FieldValue]>): Fields;
233
+ get(name: FieldKey): Array<FieldValue>;
234
234
  has(name: FieldKey): boolean;
235
- set(name: FieldKey, value: FieldValue[]): void;
235
+ set(name: FieldKey, value: Array<FieldValue>): void;
236
236
  'delete'(name: FieldKey): void;
237
237
  append(name: FieldKey, value: FieldValue): void;
238
- entries(): [FieldKey, FieldValue][];
238
+ entries(): Array<[FieldKey, FieldValue]>;
239
239
  clone(): Fields;
240
240
  }
241
241
 
@@ -1,6 +1,6 @@
1
1
  export namespace WasiIoPoll {
2
2
  export { Pollable };
3
- export function poll(in_: Pollable[]): Uint32Array;
3
+ export function poll(in_: Array<Pollable>): Uint32Array;
4
4
  }
5
5
 
6
6
  export class Pollable {
@@ -73,7 +73,7 @@ imports: ImportObject,
73
73
  instantiateCore?: (module: WebAssembly.Module, imports: Record<string, any>) => WebAssembly.Instance
74
74
  ): Root;
75
75
  export function instantiate(
76
- getCoreModule: (path: string) => WebAssembly.Module,
76
+ getCoreModule: (path: string) => WebAssembly.Module | Promise<WebAssembly.Module>,
77
77
  imports: ImportObject,
78
78
  instantiateCore?: (module: WebAssembly.Module, imports: Record<string, any>) => WebAssembly.Instance | Promise<WebAssembly.Instance>
79
79
  ): Root | Promise<Root>;
@@ -8466,14 +8466,14 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8466
8466
  let exports96;
8467
8467
  let exports97;
8468
8468
  let exports98;
8469
- const handleTable130 = [T_FLAG, 0];
8469
+ const handleTable155 = [T_FLAG, 0];
8470
8470
  const captureTable0= new Map();
8471
8471
  let captureCnt0 = 0;
8472
- handleTables[130] = handleTable130;
8472
+ handleTables[155] = handleTable155;
8473
8473
 
8474
8474
  function trampoline185(arg0) {
8475
8475
  var handle1 = arg0;
8476
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8476
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8477
8477
  var rsc0 = captureTable0.get(rep2);
8478
8478
  if (!rsc0) {
8479
8479
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8491,7 +8491,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8491
8491
 
8492
8492
  function trampoline186(arg0, arg1) {
8493
8493
  var handle1 = arg0;
8494
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8494
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8495
8495
  var rsc0 = captureTable0.get(rep2);
8496
8496
  if (!rsc0) {
8497
8497
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8500,7 +8500,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8500
8500
  }
8501
8501
  curResourceBorrows.push(rsc0);
8502
8502
  var handle4 = arg1;
8503
- var rep5 = handleTable130[(handle4 << 1) + 1] & ~T_FLAG;
8503
+ var rep5 = handleTable155[(handle4 << 1) + 1] & ~T_FLAG;
8504
8504
  var rsc3 = captureTable0.get(rep5);
8505
8505
  if (!rsc3) {
8506
8506
  rsc3 = Object.create(JsAbiValue.prototype);
@@ -8525,7 +8525,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8525
8525
  if (!handle0) {
8526
8526
  const rep = ret[symbolRscRep] || ++captureCnt0;
8527
8527
  captureTable0.set(rep, ret);
8528
- handle0 = rscTableCreateOwn(handleTable130, rep);
8528
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8529
8529
  }
8530
8530
  return handle0;
8531
8531
  }
@@ -8539,7 +8539,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8539
8539
  if (!handle0) {
8540
8540
  const rep = ret[symbolRscRep] || ++captureCnt0;
8541
8541
  captureTable0.set(rep, ret);
8542
- handle0 = rscTableCreateOwn(handleTable130, rep);
8542
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8543
8543
  }
8544
8544
  return handle0;
8545
8545
  }
@@ -8553,7 +8553,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8553
8553
  if (!handle0) {
8554
8554
  const rep = ret[symbolRscRep] || ++captureCnt0;
8555
8555
  captureTable0.set(rep, ret);
8556
- handle0 = rscTableCreateOwn(handleTable130, rep);
8556
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8557
8557
  }
8558
8558
  return handle0;
8559
8559
  }
@@ -8568,7 +8568,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8568
8568
  if (!handle1) {
8569
8569
  const rep = ret[symbolRscRep] || ++captureCnt0;
8570
8570
  captureTable0.set(rep, ret);
8571
- handle1 = rscTableCreateOwn(handleTable130, rep);
8571
+ handle1 = rscTableCreateOwn(handleTable155, rep);
8572
8572
  }
8573
8573
  return handle1;
8574
8574
  }
@@ -8582,7 +8582,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8582
8582
  if (!handle0) {
8583
8583
  const rep = ret[symbolRscRep] || ++captureCnt0;
8584
8584
  captureTable0.set(rep, ret);
8585
- handle0 = rscTableCreateOwn(handleTable130, rep);
8585
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8586
8586
  }
8587
8587
  return handle0;
8588
8588
  }
@@ -8596,14 +8596,14 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8596
8596
  if (!handle0) {
8597
8597
  const rep = ret[symbolRscRep] || ++captureCnt0;
8598
8598
  captureTable0.set(rep, ret);
8599
- handle0 = rscTableCreateOwn(handleTable130, rep);
8599
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8600
8600
  }
8601
8601
  return handle0;
8602
8602
  }
8603
8603
 
8604
8604
  function trampoline193(arg0) {
8605
8605
  var handle1 = arg0;
8606
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8606
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8607
8607
  var rsc0 = captureTable0.get(rep2);
8608
8608
  if (!rsc0) {
8609
8609
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8627,14 +8627,14 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8627
8627
  if (!handle0) {
8628
8628
  const rep = ret[symbolRscRep] || ++captureCnt0;
8629
8629
  captureTable0.set(rep, ret);
8630
- handle0 = rscTableCreateOwn(handleTable130, rep);
8630
+ handle0 = rscTableCreateOwn(handleTable155, rep);
8631
8631
  }
8632
8632
  return handle0;
8633
8633
  }
8634
8634
 
8635
8635
  function trampoline195(arg0, arg1) {
8636
8636
  var handle1 = arg0;
8637
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8637
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8638
8638
  var rsc0 = captureTable0.get(rep2);
8639
8639
  if (!rsc0) {
8640
8640
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8643,7 +8643,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8643
8643
  }
8644
8644
  curResourceBorrows.push(rsc0);
8645
8645
  var handle4 = arg1;
8646
- var rep5 = handleTable130[(handle4 << 1) + 1] & ~T_FLAG;
8646
+ var rep5 = handleTable155[(handle4 << 1) + 1] & ~T_FLAG;
8647
8647
  var rsc3 = captureTable0.get(rep5);
8648
8648
  if (!rsc3) {
8649
8649
  rsc3 = Object.create(JsAbiValue.prototype);
@@ -8661,7 +8661,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8661
8661
 
8662
8662
  function trampoline196(arg0, arg1) {
8663
8663
  var handle1 = arg0;
8664
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8664
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8665
8665
  var rsc0 = captureTable0.get(rep2);
8666
8666
  if (!rsc0) {
8667
8667
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8670,7 +8670,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8670
8670
  }
8671
8671
  curResourceBorrows.push(rsc0);
8672
8672
  var handle4 = arg1;
8673
- var rep5 = handleTable130[(handle4 << 1) + 1] & ~T_FLAG;
8673
+ var rep5 = handleTable155[(handle4 << 1) + 1] & ~T_FLAG;
8674
8674
  var rsc3 = captureTable0.get(rep5);
8675
8675
  if (!rsc3) {
8676
8676
  rsc3 = Object.create(JsAbiValue.prototype);
@@ -8733,7 +8733,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8733
8733
  if (!handle1) {
8734
8734
  const rep = e[symbolRscRep] || ++captureCnt0;
8735
8735
  captureTable0.set(rep, e);
8736
- handle1 = rscTableCreateOwn(handleTable130, rep);
8736
+ handle1 = rscTableCreateOwn(handleTable155, rep);
8737
8737
  }
8738
8738
  dataView(memory1).setInt32(arg2 + 4, handle1, true);
8739
8739
  break;
@@ -8748,7 +8748,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8748
8748
  if (!handle2) {
8749
8749
  const rep = e[symbolRscRep] || ++captureCnt0;
8750
8750
  captureTable0.set(rep, e);
8751
- handle2 = rscTableCreateOwn(handleTable130, rep);
8751
+ handle2 = rscTableCreateOwn(handleTable155, rep);
8752
8752
  }
8753
8753
  dataView(memory1).setInt32(arg2 + 4, handle2, true);
8754
8754
  break;
@@ -8771,14 +8771,14 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8771
8771
  if (!handle1) {
8772
8772
  const rep = ret[symbolRscRep] || ++captureCnt0;
8773
8773
  captureTable0.set(rep, ret);
8774
- handle1 = rscTableCreateOwn(handleTable130, rep);
8774
+ handle1 = rscTableCreateOwn(handleTable155, rep);
8775
8775
  }
8776
8776
  return handle1;
8777
8777
  }
8778
8778
 
8779
8779
  function trampoline204(arg0, arg1) {
8780
8780
  var handle1 = arg0;
8781
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8781
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8782
8782
  var rsc0 = captureTable0.get(rep2);
8783
8783
  if (!rsc0) {
8784
8784
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8799,7 +8799,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8799
8799
 
8800
8800
  function trampoline205(arg0, arg1) {
8801
8801
  var handle1 = arg0;
8802
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8802
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8803
8803
  var rsc0 = captureTable0.get(rep2);
8804
8804
  if (!rsc0) {
8805
8805
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8837,7 +8837,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8837
8837
 
8838
8838
  function trampoline206(arg0, arg1) {
8839
8839
  var handle1 = arg0;
8840
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8840
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8841
8841
  var rsc0 = captureTable0.get(rep2);
8842
8842
  if (!rsc0) {
8843
8843
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8858,7 +8858,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8858
8858
 
8859
8859
  function trampoline207(arg0, arg1, arg2, arg3, arg4) {
8860
8860
  var handle1 = arg0;
8861
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8861
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8862
8862
  var rsc0 = captureTable0.get(rep2);
8863
8863
  if (!rsc0) {
8864
8864
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8867,7 +8867,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8867
8867
  }
8868
8868
  curResourceBorrows.push(rsc0);
8869
8869
  var handle4 = arg1;
8870
- var rep5 = handleTable130[(handle4 << 1) + 1] & ~T_FLAG;
8870
+ var rep5 = handleTable155[(handle4 << 1) + 1] & ~T_FLAG;
8871
8871
  var rsc3 = captureTable0.get(rep5);
8872
8872
  if (!rsc3) {
8873
8873
  rsc3 = Object.create(JsAbiValue.prototype);
@@ -8881,7 +8881,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8881
8881
  for (let i = 0; i < len9; i++) {
8882
8882
  const base = base9 + i * 4;
8883
8883
  var handle7 = dataView(memory1).getInt32(base + 0, true);
8884
- var rep8 = handleTable130[(handle7 << 1) + 1] & ~T_FLAG;
8884
+ var rep8 = handleTable155[(handle7 << 1) + 1] & ~T_FLAG;
8885
8885
  var rsc6 = captureTable0.get(rep8);
8886
8886
  if (!rsc6) {
8887
8887
  rsc6 = Object.create(JsAbiValue.prototype);
@@ -8908,7 +8908,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8908
8908
  if (!handle10) {
8909
8909
  const rep = e[symbolRscRep] || ++captureCnt0;
8910
8910
  captureTable0.set(rep, e);
8911
- handle10 = rscTableCreateOwn(handleTable130, rep);
8911
+ handle10 = rscTableCreateOwn(handleTable155, rep);
8912
8912
  }
8913
8913
  dataView(memory1).setInt32(arg4 + 4, handle10, true);
8914
8914
  break;
@@ -8923,7 +8923,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8923
8923
  if (!handle11) {
8924
8924
  const rep = e[symbolRscRep] || ++captureCnt0;
8925
8925
  captureTable0.set(rep, e);
8926
- handle11 = rscTableCreateOwn(handleTable130, rep);
8926
+ handle11 = rscTableCreateOwn(handleTable155, rep);
8927
8927
  }
8928
8928
  dataView(memory1).setInt32(arg4 + 4, handle11, true);
8929
8929
  break;
@@ -8936,7 +8936,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8936
8936
 
8937
8937
  function trampoline208(arg0, arg1, arg2, arg3) {
8938
8938
  var handle1 = arg0;
8939
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8939
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8940
8940
  var rsc0 = captureTable0.get(rep2);
8941
8941
  if (!rsc0) {
8942
8942
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -8964,7 +8964,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8964
8964
  if (!handle4) {
8965
8965
  const rep = e[symbolRscRep] || ++captureCnt0;
8966
8966
  captureTable0.set(rep, e);
8967
- handle4 = rscTableCreateOwn(handleTable130, rep);
8967
+ handle4 = rscTableCreateOwn(handleTable155, rep);
8968
8968
  }
8969
8969
  dataView(memory1).setInt32(arg3 + 4, handle4, true);
8970
8970
  break;
@@ -8979,7 +8979,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8979
8979
  if (!handle5) {
8980
8980
  const rep = e[symbolRscRep] || ++captureCnt0;
8981
8981
  captureTable0.set(rep, e);
8982
- handle5 = rscTableCreateOwn(handleTable130, rep);
8982
+ handle5 = rscTableCreateOwn(handleTable155, rep);
8983
8983
  }
8984
8984
  dataView(memory1).setInt32(arg3 + 4, handle5, true);
8985
8985
  break;
@@ -8992,7 +8992,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
8992
8992
 
8993
8993
  function trampoline209(arg0, arg1, arg2, arg3, arg4) {
8994
8994
  var handle1 = arg0;
8995
- var rep2 = handleTable130[(handle1 << 1) + 1] & ~T_FLAG;
8995
+ var rep2 = handleTable155[(handle1 << 1) + 1] & ~T_FLAG;
8996
8996
  var rsc0 = captureTable0.get(rep2);
8997
8997
  if (!rsc0) {
8998
8998
  rsc0 = Object.create(JsAbiValue.prototype);
@@ -9004,7 +9004,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
9004
9004
  var len3 = arg2;
9005
9005
  var result3 = utf8Decoder.decode(new Uint8Array(memory1.buffer, ptr3, len3));
9006
9006
  var handle5 = arg3;
9007
- var rep6 = handleTable130[(handle5 << 1) + 1] & ~T_FLAG;
9007
+ var rep6 = handleTable155[(handle5 << 1) + 1] & ~T_FLAG;
9008
9008
  var rsc4 = captureTable0.get(rep6);
9009
9009
  if (!rsc4) {
9010
9010
  rsc4 = Object.create(JsAbiValue.prototype);
@@ -9029,7 +9029,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
9029
9029
  if (!handle7) {
9030
9030
  const rep = e[symbolRscRep] || ++captureCnt0;
9031
9031
  captureTable0.set(rep, e);
9032
- handle7 = rscTableCreateOwn(handleTable130, rep);
9032
+ handle7 = rscTableCreateOwn(handleTable155, rep);
9033
9033
  }
9034
9034
  dataView(memory1).setInt32(arg4 + 4, handle7, true);
9035
9035
  break;
@@ -9044,7 +9044,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
9044
9044
  if (!handle8) {
9045
9045
  const rep = e[symbolRscRep] || ++captureCnt0;
9046
9046
  captureTable0.set(rep, e);
9047
- handle8 = rscTableCreateOwn(handleTable130, rep);
9047
+ handle8 = rscTableCreateOwn(handleTable155, rep);
9048
9048
  }
9049
9049
  dataView(memory1).setInt32(arg4 + 4, handle8, true);
9050
9050
  break;
@@ -9677,120 +9677,120 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
9677
9677
  }
9678
9678
  resourceCallBorrows= [];
9679
9679
  }
9680
- const handleTable124 = [T_FLAG, 0];
9681
- const finalizationRegistry124 = finalizationRegistryCreate((handle) => {
9682
- const { rep } = rscTableRemove(handleTable124, handle);
9680
+ const handleTable149 = [T_FLAG, 0];
9681
+ const finalizationRegistry149 = finalizationRegistryCreate((handle) => {
9682
+ const { rep } = rscTableRemove(handleTable149, handle);
9683
9683
  exports0['88'](rep);
9684
9684
  });
9685
9685
 
9686
- handleTables[124] = handleTable124;
9686
+ handleTables[149] = handleTable149;
9687
9687
  function trampoline169(handle) {
9688
- const handleEntry = rscTableRemove(handleTable124, handle);
9688
+ const handleEntry = rscTableRemove(handleTable149, handle);
9689
9689
  if (handleEntry.own) {
9690
9690
 
9691
9691
  exports0['88'](handleEntry.rep);
9692
9692
  }
9693
9693
  }
9694
- const handleTable125 = [T_FLAG, 0];
9695
- const finalizationRegistry125 = finalizationRegistryCreate((handle) => {
9696
- const { rep } = rscTableRemove(handleTable125, handle);
9694
+ const handleTable150 = [T_FLAG, 0];
9695
+ const finalizationRegistry150 = finalizationRegistryCreate((handle) => {
9696
+ const { rep } = rscTableRemove(handleTable150, handle);
9697
9697
  exports0['65'](rep);
9698
9698
  });
9699
9699
 
9700
- handleTables[125] = handleTable125;
9700
+ handleTables[150] = handleTable150;
9701
9701
  function trampoline170(handle) {
9702
- const handleEntry = rscTableRemove(handleTable125, handle);
9702
+ const handleEntry = rscTableRemove(handleTable150, handle);
9703
9703
  if (handleEntry.own) {
9704
9704
 
9705
9705
  exports0['65'](handleEntry.rep);
9706
9706
  }
9707
9707
  }
9708
- const handleTable126 = [T_FLAG, 0];
9709
- const finalizationRegistry126 = finalizationRegistryCreate((handle) => {
9710
- const { rep } = rscTableRemove(handleTable126, handle);
9708
+ const handleTable151 = [T_FLAG, 0];
9709
+ const finalizationRegistry151 = finalizationRegistryCreate((handle) => {
9710
+ const { rep } = rscTableRemove(handleTable151, handle);
9711
9711
  exports0['67'](rep);
9712
9712
  });
9713
9713
 
9714
- handleTables[126] = handleTable126;
9714
+ handleTables[151] = handleTable151;
9715
9715
  function trampoline171(handle) {
9716
- const handleEntry = rscTableRemove(handleTable126, handle);
9716
+ const handleEntry = rscTableRemove(handleTable151, handle);
9717
9717
  if (handleEntry.own) {
9718
9718
 
9719
9719
  exports0['67'](handleEntry.rep);
9720
9720
  }
9721
9721
  }
9722
- const handleTable127 = [T_FLAG, 0];
9723
- const finalizationRegistry127 = finalizationRegistryCreate((handle) => {
9724
- const { rep } = rscTableRemove(handleTable127, handle);
9722
+ const handleTable152 = [T_FLAG, 0];
9723
+ const finalizationRegistry152 = finalizationRegistryCreate((handle) => {
9724
+ const { rep } = rscTableRemove(handleTable152, handle);
9725
9725
  exports0['68'](rep);
9726
9726
  });
9727
9727
 
9728
- handleTables[127] = handleTable127;
9728
+ handleTables[152] = handleTable152;
9729
9729
  function trampoline172(handle) {
9730
- const handleEntry = rscTableRemove(handleTable127, handle);
9730
+ const handleEntry = rscTableRemove(handleTable152, handle);
9731
9731
  if (handleEntry.own) {
9732
9732
 
9733
9733
  exports0['68'](handleEntry.rep);
9734
9734
  }
9735
9735
  }
9736
- const handleTable123 = [T_FLAG, 0];
9737
- const finalizationRegistry123 = finalizationRegistryCreate((handle) => {
9738
- const { rep } = rscTableRemove(handleTable123, handle);
9736
+ const handleTable148 = [T_FLAG, 0];
9737
+ const finalizationRegistry148 = finalizationRegistryCreate((handle) => {
9738
+ const { rep } = rscTableRemove(handleTable148, handle);
9739
9739
  exports0['87'](rep);
9740
9740
  });
9741
9741
 
9742
- handleTables[123] = handleTable123;
9742
+ handleTables[148] = handleTable148;
9743
9743
  function trampoline173(handle) {
9744
- const handleEntry = rscTableRemove(handleTable123, handle);
9744
+ const handleEntry = rscTableRemove(handleTable148, handle);
9745
9745
  if (handleEntry.own) {
9746
9746
 
9747
9747
  exports0['87'](handleEntry.rep);
9748
9748
  }
9749
9749
  }
9750
- const handleTable122 = [T_FLAG, 0];
9751
- const finalizationRegistry122 = finalizationRegistryCreate((handle) => {
9752
- const { rep } = rscTableRemove(handleTable122, handle);
9750
+ const handleTable147 = [T_FLAG, 0];
9751
+ const finalizationRegistry147 = finalizationRegistryCreate((handle) => {
9752
+ const { rep } = rscTableRemove(handleTable147, handle);
9753
9753
  exports0['66'](rep);
9754
9754
  });
9755
9755
 
9756
- handleTables[122] = handleTable122;
9756
+ handleTables[147] = handleTable147;
9757
9757
  function trampoline174(handle) {
9758
- const handleEntry = rscTableRemove(handleTable122, handle);
9758
+ const handleEntry = rscTableRemove(handleTable147, handle);
9759
9759
  if (handleEntry.own) {
9760
9760
 
9761
9761
  exports0['66'](handleEntry.rep);
9762
9762
  }
9763
9763
  }
9764
- const handleTable128 = [T_FLAG, 0];
9765
- const finalizationRegistry128 = finalizationRegistryCreate((handle) => {
9766
- const { rep } = rscTableRemove(handleTable128, handle);
9764
+ const handleTable153 = [T_FLAG, 0];
9765
+ const finalizationRegistry153 = finalizationRegistryCreate((handle) => {
9766
+ const { rep } = rscTableRemove(handleTable153, handle);
9767
9767
  exports0['85'](rep);
9768
9768
  });
9769
9769
 
9770
- handleTables[128] = handleTable128;
9770
+ handleTables[153] = handleTable153;
9771
9771
  function trampoline176(handle) {
9772
- const handleEntry = rscTableRemove(handleTable128, handle);
9772
+ const handleEntry = rscTableRemove(handleTable153, handle);
9773
9773
  if (handleEntry.own) {
9774
9774
 
9775
9775
  exports0['85'](handleEntry.rep);
9776
9776
  }
9777
9777
  }
9778
- const handleTable129 = [T_FLAG, 0];
9779
- const finalizationRegistry129 = finalizationRegistryCreate((handle) => {
9780
- const { rep } = rscTableRemove(handleTable129, handle);
9778
+ const handleTable154 = [T_FLAG, 0];
9779
+ const finalizationRegistry154 = finalizationRegistryCreate((handle) => {
9780
+ const { rep } = rscTableRemove(handleTable154, handle);
9781
9781
  exports0['86'](rep);
9782
9782
  });
9783
9783
 
9784
- handleTables[129] = handleTable129;
9784
+ handleTables[154] = handleTable154;
9785
9785
  function trampoline177(handle) {
9786
- const handleEntry = rscTableRemove(handleTable129, handle);
9786
+ const handleEntry = rscTableRemove(handleTable154, handle);
9787
9787
  if (handleEntry.own) {
9788
9788
 
9789
9789
  exports0['86'](handleEntry.rep);
9790
9790
  }
9791
9791
  }
9792
9792
  function trampoline178(handle) {
9793
- const handleEntry = rscTableRemove(handleTable130, handle);
9793
+ const handleEntry = rscTableRemove(handleTable155, handle);
9794
9794
  if (handleEntry.own) {
9795
9795
 
9796
9796
  const rsc = captureTable0.get(handleEntry.rep);
@@ -9802,37 +9802,37 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
9802
9802
  }
9803
9803
  }
9804
9804
  }
9805
- const handleTable131 = [T_FLAG, 0];
9806
- const finalizationRegistry131 = finalizationRegistryCreate((handle) => {
9807
- const { rep } = rscTableRemove(handleTable131, handle);
9805
+ const handleTable156 = [T_FLAG, 0];
9806
+ const finalizationRegistry156 = finalizationRegistryCreate((handle) => {
9807
+ const { rep } = rscTableRemove(handleTable156, handle);
9808
9808
  });
9809
9809
 
9810
- handleTables[131] = handleTable131;
9810
+ handleTables[156] = handleTable156;
9811
9811
  function trampoline179(handle) {
9812
- const handleEntry = rscTableRemove(handleTable131, handle);
9812
+ const handleEntry = rscTableRemove(handleTable156, handle);
9813
9813
  if (handleEntry.own) {
9814
9814
 
9815
9815
  }
9816
9816
  }
9817
- const trampoline180 = rscTableCreateOwn.bind(null, handleTable131);
9817
+ const trampoline180 = rscTableCreateOwn.bind(null, handleTable156);
9818
9818
  function trampoline181(handle) {
9819
- return handleTable131[(handle << 1) + 1] & ~T_FLAG;
9819
+ return handleTable156[(handle << 1) + 1] & ~T_FLAG;
9820
9820
  }
9821
- const handleTable132 = [T_FLAG, 0];
9822
- const finalizationRegistry132 = finalizationRegistryCreate((handle) => {
9823
- const { rep } = rscTableRemove(handleTable132, handle);
9821
+ const handleTable157 = [T_FLAG, 0];
9822
+ const finalizationRegistry157 = finalizationRegistryCreate((handle) => {
9823
+ const { rep } = rscTableRemove(handleTable157, handle);
9824
9824
  });
9825
9825
 
9826
- handleTables[132] = handleTable132;
9826
+ handleTables[157] = handleTable157;
9827
9827
  function trampoline182(handle) {
9828
- const handleEntry = rscTableRemove(handleTable132, handle);
9828
+ const handleEntry = rscTableRemove(handleTable157, handle);
9829
9829
  if (handleEntry.own) {
9830
9830
 
9831
9831
  }
9832
9832
  }
9833
- const trampoline183 = rscTableCreateOwn.bind(null, handleTable132);
9833
+ const trampoline183 = rscTableCreateOwn.bind(null, handleTable157);
9834
9834
  function trampoline184(handle) {
9835
- return handleTable132[(handle << 1) + 1] & ~T_FLAG;
9835
+ return handleTable157[(handle << 1) + 1] & ~T_FLAG;
9836
9836
  }
9837
9837
  function trampoline197(from_ptr, len, to_ptr) {
9838
9838
  new Uint8Array(memory1.buffer, to_ptr, len).set(new Uint8Array(memory0.buffer, from_ptr, len));
@@ -16952,7 +16952,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
16952
16952
  var handle3 = ret;
16953
16953
  var rsc2 = new.target === RbIseq ? this : Object.create(RbIseq.prototype);
16954
16954
  Object.defineProperty(rsc2, symbolRscHandle, { writable: true, value: handle3});
16955
- finalizationRegistry131.register(rsc2, handle3, rsc2);
16955
+ finalizationRegistry156.register(rsc2, handle3, rsc2);
16956
16956
  Object.defineProperty(rsc2, symbolDispose, { writable: true, value: emptyFunc });
16957
16957
  return rsc2;
16958
16958
  }
@@ -16974,34 +16974,34 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
16974
16974
  var handle2 = dataView(memory1).getInt32(ret + 0, true);
16975
16975
  var rsc1 = new.target === RbAbiValue ? this : Object.create(RbAbiValue.prototype);
16976
16976
  Object.defineProperty(rsc1, symbolRscHandle, { writable: true, value: handle2});
16977
- finalizationRegistry132.register(rsc1, handle2, rsc1);
16977
+ finalizationRegistry157.register(rsc1, handle2, rsc1);
16978
16978
  Object.defineProperty(rsc1, symbolDispose, { writable: true, value: emptyFunc });
16979
16979
  return [rsc1, dataView(memory1).getInt32(ret + 4, true)];
16980
16980
  }
16981
16981
 
16982
16982
  function rbFuncallvProtect(arg0, arg1, arg2) {
16983
16983
  var handle1 = arg0[symbolRscHandle];
16984
- if (!handle1 || (handleTable132[(handle1 << 1) + 1] & T_FLAG) === 0) {
16984
+ if (!handle1 || (handleTable157[(handle1 << 1) + 1] & T_FLAG) === 0) {
16985
16985
  throw new TypeError('Resource error: Not a valid "RbAbiValue" resource.');
16986
16986
  }
16987
- var handle0 = handleTable132[(handle1 << 1) + 1] & ~T_FLAG;
16987
+ var handle0 = handleTable157[(handle1 << 1) + 1] & ~T_FLAG;
16988
16988
  var vec4 = arg2;
16989
16989
  var len4 = vec4.length;
16990
16990
  var result4 = realloc2(0, 0, 4, len4 * 4);
16991
16991
  for (let i = 0; i < vec4.length; i++) {
16992
16992
  const e = vec4[i];
16993
16993
  const base = result4 + i * 4;var handle3 = e[symbolRscHandle];
16994
- if (!handle3 || (handleTable132[(handle3 << 1) + 1] & T_FLAG) === 0) {
16994
+ if (!handle3 || (handleTable157[(handle3 << 1) + 1] & T_FLAG) === 0) {
16995
16995
  throw new TypeError('Resource error: Not a valid "RbAbiValue" resource.');
16996
16996
  }
16997
- var handle2 = handleTable132[(handle3 << 1) + 1] & ~T_FLAG;
16997
+ var handle2 = handleTable157[(handle3 << 1) + 1] & ~T_FLAG;
16998
16998
  dataView(memory1).setInt32(base + 0, handle2, true);
16999
16999
  }
17000
17000
  const ret = exports99['ruby:js/ruby-runtime#rb-funcallv-protect'](handle0, toUint32(arg1), result4, len4);
17001
17001
  var handle6 = dataView(memory1).getInt32(ret + 0, true);
17002
17002
  var rsc5 = new.target === RbAbiValue ? this : Object.create(RbAbiValue.prototype);
17003
17003
  Object.defineProperty(rsc5, symbolRscHandle, { writable: true, value: handle6});
17004
- finalizationRegistry132.register(rsc5, handle6, rsc5);
17004
+ finalizationRegistry157.register(rsc5, handle6, rsc5);
17005
17005
  Object.defineProperty(rsc5, symbolDispose, { writable: true, value: emptyFunc });
17006
17006
  return [rsc5, dataView(memory1).getInt32(ret + 4, true)];
17007
17007
  }
@@ -17018,7 +17018,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
17018
17018
  var handle1 = ret;
17019
17019
  var rsc0 = new.target === RbAbiValue ? this : Object.create(RbAbiValue.prototype);
17020
17020
  Object.defineProperty(rsc0, symbolRscHandle, { writable: true, value: handle1});
17021
- finalizationRegistry132.register(rsc0, handle1, rsc0);
17021
+ finalizationRegistry157.register(rsc0, handle1, rsc0);
17022
17022
  Object.defineProperty(rsc0, symbolDispose, { writable: true, value: emptyFunc });
17023
17023
  return rsc0;
17024
17024
  }
@@ -17029,16 +17029,17 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
17029
17029
 
17030
17030
  function rstringPtr(arg0) {
17031
17031
  var handle1 = arg0[symbolRscHandle];
17032
- if (!handle1 || (handleTable132[(handle1 << 1) + 1] & T_FLAG) === 0) {
17032
+ if (!handle1 || (handleTable157[(handle1 << 1) + 1] & T_FLAG) === 0) {
17033
17033
  throw new TypeError('Resource error: Not a valid "RbAbiValue" resource.');
17034
17034
  }
17035
- var handle0 = handleTable132[(handle1 << 1) + 1] & ~T_FLAG;
17035
+ var handle0 = handleTable157[(handle1 << 1) + 1] & ~T_FLAG;
17036
17036
  const ret = exports99['ruby:js/ruby-runtime#rstring-ptr'](handle0);
17037
17037
  var ptr2 = dataView(memory1).getInt32(ret + 0, true);
17038
17038
  var len2 = dataView(memory1).getInt32(ret + 4, true);
17039
17039
  var result2 = utf8Decoder.decode(new Uint8Array(memory1.buffer, ptr2, len2));
17040
+ const retVal = result2;
17040
17041
  postReturn0(ret);
17041
- return result2;
17042
+ return retVal;
17042
17043
  }
17043
17044
 
17044
17045
  function rbVmBugreport() {
@@ -17068,7 +17069,7 @@ export function instantiate(getCoreModule, imports, instantiateCore = WebAssembl
17068
17069
  var handle1 = ret;
17069
17070
  var rsc0 = new.target === RbAbiValue ? this : Object.create(RbAbiValue.prototype);
17070
17071
  Object.defineProperty(rsc0, symbolRscHandle, { writable: true, value: handle1});
17071
- finalizationRegistry132.register(rsc0, handle1, rsc0);
17072
+ finalizationRegistry157.register(rsc0, handle1, rsc0);
17072
17073
  Object.defineProperty(rsc0, symbolDispose, { writable: true, value: emptyFunc });
17073
17074
  return rsc0;
17074
17075
  }
Binary file
Binary file
package/dist/ruby.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruby/head-wasm-wasi",
3
- "version": "2.6.2-2024-08-20-a",
3
+ "version": "2.6.2-2024-08-22-a",
4
4
  "description": "Ruby head built on WASI",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -50,6 +50,6 @@
50
50
  ],
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
- "@ruby/wasm-wasi": "2.6.2-2024-08-20-a"
53
+ "@ruby/wasm-wasi": "2.6.2-2024-08-22-a"
54
54
  }
55
55
  }