assemblyscript icon indicating copy to clipboard operation
assemblyscript copied to clipboard

A TypeScript-like language for WebAssembly.

Results 234 assemblyscript issues
Sort by recently updated
recently updated
newest added

### Question I don't expect my modules to allocate much dynamic memory, if any, but I'd like to reset it between runs (so I don't have to create a new...

question

### Bug description I have updated my package version from `0.27.23` to `0.27.27`. There is now a compiling issue where: `ERROR TS2454: Variable 'zj' is used before being assigned.` ###...

bug

### Bug description `String.fromCodePoints` is documented here: https://www.assemblyscript.org/stdlib/string.html#static-members It is defined in the portable std here https://github.com/AssemblyScript/assemblyscript/blob/64cba2e22bc415994274dd14eeae50a5a9369d70/std/portable/index.js#L241 However it is missing from the AssemblyScript `String` class here: https://github.com/AssemblyScript/assemblyscript/blob/64cba2e22bc415994274dd14eeae50a5a9369d70/std/assembly/string.ts#L10 ### Steps...

bug

Fixes #2833 . add debugLocation before convertExpression. For code snippet: ```typescript function add(a: i32, b: i32): i32 { return a + b; } add(1, 2); ``` Before this PR, we...

Fixes #2827. Changes proposed in this pull request: ⯈ Bump `Compiler#memoryOffset` instead of allocating zero-filled segments. There is an issue with the `initialPages` calculation in `initDefaultMemory`, however. The existing condition...

breaking change

### Bug description ```typescript function main(): void { add(1, 2); } ``` For above code snippet, assemblyscript wraps a `drop` for the `call add` instruction. But there is no debuglocation...

bug

### Bug description AS compiler crash after hang up a few second. ### Steps to reproduce ```ts memory.data(0x7fffffff); ``` `npm run asbuild:debug` ### AssemblyScript version v0.27.x

bug

### Question If translated into wat format, will wasmGC related instructions appear, such as struct.new, etc.?

enhancement
question

getting an error when using webpack import build file(debug.js): ``` ERROR in node:fs/promises Module build failed: UnhandledSchemeError: Reading from "node:fs/promises" is not handled by plugins (Unhandled scheme). Webpack supports "data:"...

### Bug description moduleImpors(cases where `@external` or `declare` are used) together with the `--importMemory` flag, the glue code does not include the imports of the `env` module. e.g. build `assembly/index.ts`...

bug