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

Simple example: ```ts class Vec2 { constructor(public x: f64 = 0, public y: f64 = 0) {} @operator("==") eq(other: Vec2): bool { return this.x == this.x && other.y == other.y;...

enhancement

Example: ```ts class Vec2 { constructor(public x: f64 = 0, public y: f64 = 0) {} @operator("==") eq(a: Vec2, b: Vec2): bool { // non-static but 2 args return a.x...

bug

Example ```ts class Foo { constructor(public boo: T) {} } new Foo("abc"); // ERROR TS2558: Expected 1 type arguments, but got 0. new Foo(123); // ERROR TS2558: Expected 1 type...

enhancement
compatibility

Add autocomplete via json scheme ### Implementation Plan + Create JSON scheme for `asconfig.son` based on [this file](https://github.com/AssemblyScript/assemblyscript/blob/main/cli/options.json), but preserve structure. + Add JSON scheme to [schemastore](https://www.schemastore.org/json/) in their [repository](https://github.com/schemastore/schemastore/)

enhancement
good first issue

### Examples ```ts const a = u32`0xFF` // same as u32(0xFF), 0xFF, 0xFF as u32 const b = f64`-1e5` // ^ // etc ``` ### Motivation It will allow support...

enhancement
compatibility

**Examples** ```c++ 0x1.999999999999ap-4 -0X0.1P4 -0x1A.p+100 ``` **Motvation** + Hexadecimal float pointing literals can represent float points exactly without complicated and expensive parsing. It's quite useful for math calculations; + Hexadecimal...

enhancement

```ts let a = true; let b = false; a &&= b; a ||= b; // a ??= b; ``` ~~[Proposal (Stage 3)](https://github.com/tc39/proposal-logical-assignment)~~. Already in ES2021 Already implemented in [Chrome](https://v8.dev/features/logical-assignment)

enhancement

It seems logical expressions much better compile use blocks (1) like: ```ts export function f3(x: number): number { do { if (x === 1) { break; } if (x ===...

enhancement
performance

**Edit:** While working on #1129 I stumbled upon the following pattern that cannot be inferred yet because we don't yet attempt to recognize return types: ```ts function foo(a: Set =...

enhancement

We are currently generating internal names containing spaces and commas, which are both [explicitly disallowed](https://webassembly.github.io/spec/core/text/values.html#text-id) in text format identifiers, leading to syntax highlighting issues (only, as far as I can...

breaking change
compatibility