mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 09:51:33 +00:00
Remove the start decorator in favor of a command line option
This commit is contained in:
@ -100,6 +100,9 @@ Besides demangling classes exported from your entry file to a handy object struc
|
||||
var value = module.F64[ptr >>> 3];
|
||||
```
|
||||
|
||||
* **__start**(): `void`<br />
|
||||
Explicit start function if the `--explicit-start` option is used. Must be called before any other exports if present.
|
||||
|
||||
* **__allocString**(str: `string`): `number`<br />
|
||||
Allocates a new string in the module's memory and returns a reference (pointer) to it.
|
||||
|
||||
|
2
lib/loader/index.d.ts
vendored
2
lib/loader/index.d.ts
vendored
@ -43,6 +43,8 @@ interface ASUtil {
|
||||
readonly F32: Float32Array;
|
||||
/** A 64-bit float view on the memory. */
|
||||
readonly F64: Float64Array;
|
||||
/** Explicit start function, if requested. */
|
||||
__start(): void;
|
||||
/** Allocates a new string in the module's memory and returns a reference (pointer) to it. */
|
||||
__allocString(str: string): number;
|
||||
/** Reads (copies) the value of a string from the module's memory. */
|
||||
|
Reference in New Issue
Block a user