@yabgu_gm/tensionscript 0.11.1 → 0.11.2
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/dist/asc.generated.d.ts +14 -1
- package/dist/asc.js +1 -1
- package/dist/asc.js.map +1 -1
- package/dist/assemblyscript.generated.d.ts +14 -1
- package/dist/assemblyscript.js +12 -12
- package/dist/assemblyscript.js.map +3 -3
- package/dist/importmap.json +2 -2
- package/dist/web.js +3 -3
- package/package.json +1 -1
|
@@ -621,7 +621,8 @@ declare module "types:tensionscript/src/diagnosticMessages.generated" {
|
|
|
621
621
|
_abi_align_0_is_less_than_the_field_type_s_natural_alignment_1_asking_for_less_is_a_lie_so_it_is_refused_rather_than_silently_ignored = 6408,
|
|
622
622
|
_abi_align_0_is_too_large_the_maximum_is_1 = 6409,
|
|
623
623
|
Alignment_is_a_property_of_the_field_not_its_type_Place_abi_align_N_on_the_field_declaration = 6410,
|
|
624
|
-
A_view_parameter_unmanaged_0_over_an_inline_type_cannot_appear_in_a_host_visible_signature_an_external_or_exported_parameter_is_supplied_by_the_host_and_a_view_is_an_address_this_compiler_did_not_materialise = 6411
|
|
624
|
+
A_view_parameter_unmanaged_0_over_an_inline_type_cannot_appear_in_a_host_visible_signature_an_external_or_exported_parameter_is_supplied_by_the_host_and_a_view_is_an_address_this_compiler_did_not_materialise = 6411,
|
|
625
|
+
Call_to_0_emits_1_operands_but_its_signature_declares_2 = 6412
|
|
625
626
|
}
|
|
626
627
|
/** Translates a diagnostic code to its respective string. */
|
|
627
628
|
export function diagnosticCodeToString(code: DiagnosticCode): string;
|
|
@@ -5901,6 +5902,18 @@ declare module "types:tensionscript/src/compiler" {
|
|
|
5901
5902
|
private needToStack;
|
|
5902
5903
|
/** Marks managed call operands for the shadow stack. */
|
|
5903
5904
|
private operandsTostack;
|
|
5905
|
+
/**
|
|
5906
|
+
* Checks that the operands about to be passed match the WASM arity the callee
|
|
5907
|
+
* declares, and reports a clean diagnostic when they do not.
|
|
5908
|
+
*
|
|
5909
|
+
* The invariant is maintained by the default-argument filling in
|
|
5910
|
+
* `makeCallDirect`; this guard exists because when that filling misses — as it
|
|
5911
|
+
* did for an sret callee with an omitted optional argument — the mismatch
|
|
5912
|
+
* reached the WASM validator as `call* param number must match`, which names a
|
|
5913
|
+
* binaryen rule and never mentions the call that broke it. A wrong arity is a
|
|
5914
|
+
* compiler bug, so it should say so at the call site.
|
|
5915
|
+
*/
|
|
5916
|
+
private checkCallArity;
|
|
5904
5917
|
/** Creates a direct call to the specified function. */
|
|
5905
5918
|
makeCallDirect(instance: Function, operands: ExpressionRef[] | null, reportNode: Node, immediatelyDropped?: boolean): ExpressionRef;
|
|
5906
5919
|
/** Compiles an indirect call to a first-class function. */
|