assemblyscript
assemblyscript copied to clipboard
A TypeScript-like language for WebAssembly.
When passing an invalid UTF8 string into String.UTF8.decode, I expect it to return an empty string or a string containing the bytes up to the invalid part. In practice, the...
fix override keyword in following case ``` class A { foo(): void {} } class B extends A { bar(): void {} } class C extends B { override foo():...
```ts let a = [1, 2, 3]; if (isReference(unchecked(a[0]))) ERROR("This should not be possible") ``` This is almost a minimal reproduction. Please feel free to ask me to help reduce...
One of the most popular libraries for GPGPU in the javascript eco-system is: https://github.com/gpujs/gpu.js/ It works by taking a javascript function and compiles it to a WGSL shader at runtime....
For example, if we have custom `eq` we can always defina `ne(a, b)` as `!eq(a, b)` implicitly but only if operator marked as "private": ```ts class Vec2 { constructor(public x:...
Hi Maintainer, I found there is no tests for v128 with type `usize` and `isize`, I will prepare a PR for that. please let me know if the tests are...
Similar proposal in TypeScript closed and delegated to tslint: https://github.com/microsoft/TypeScript/issues/2575 ```ts // Basically not possible in AS for now function ambiguousReturn() { return {} } // could be: // return;...
**Motivation** Many intrinsics support `usize` / `isize` only partially (only i32 / u32 variants or i64 but not u64): ```ts builtin_v128_gt // supports only I64 part but not U64 builtin_v128_ge...
From: [2466](https://github.com/AssemblyScript/assemblyscript/issues/2466) - [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file
From: [2443](https://github.com/AssemblyScript/assemblyscript/issues/2443) - [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file