assemblyscript
assemblyscript copied to clipboard
A TypeScript-like language for WebAssembly.
### Bug description If an `Array` is declared and used, the compiler generates an error due to `ref_extern` not being compatible with the `alignof` function. This will trigger three compiler...
### Bug description Compound assignment where the left hand side is an array with a post increment index generates incorrect code. ```ts let a = new Uint32Array(1); let v =...
console.error doesn't send output to STDERR, but to STDOUT, prepended with string "Error:" console.error should send output to STDERR, similar to `Console` from as-wasi
### Bug description Seems like the `extends` syntax doesn't accept interface `type` aliases. ### Steps to reproduce ``` interface IDFOutputT {} type IDFNumberOutput = IDFOutputT; class DFNumberValue implements IDFNumberOutput {}...
Treating Unicode strings as arrays often leads to bugs where code processes text in some languages correctly but not others. In JavaScript, it's surprising that `"🤦🏼♂️".length == 7`, and the...
### Feature suggestion current compiler adds an unexpected null check when there is an exclamenation token like `nullable!.prop1`. it will be great if it is possible to disable the null...
### Feature suggestion When meet `==` operator overload. There is no way to know if the ref is same. For reference type, it's very helpful to know the ref equality...
### Feature suggestion Add memory64 support. It probably would be best if this was done in steps.
### Feature suggestion When write an encode method, I need to know if a class have parent, which will lead to different logic path. The method receive a generic class...
Most modern compilers like Rust and Swift support special set arithmetic operations which cause to exceptions when result is overflow or underflow. + In `Swift` all integer operations checked by...