assemblyscript
assemblyscript copied to clipboard
A TypeScript-like language for WebAssembly.
[Sample code](https://www.assemblyscript.org/editor.html#IyFvcHRpbWl6ZT1zcGVlZCZydW50aW1lPWluY3JlbWVudGFsCmV4cG9ydCB0eXBlIFByaWNlTG9va3VwID0gKAogIHRva2VuQWRkcmVzczogc3RyaW5nLAogIGJsb2NrOiBpMzIsCiAgY3VycmVudFBvb2w6IHN0cmluZywKKSA9PiBzdHJpbmcgfCBudWxsOwoKZXhwb3J0IHR5cGUgUHJpY2VMb29rdXAyID0gKHRva2VuQWRkcmVzczogc3RyaW5nLCBibG9jazogaTMyLCBjdXJyZW50UG9vbDogc3RyaW5nKSA9PiBzdHJpbmcgfCBudWxsOwojIWh0bWwK) This causes a TS1003 error on the comma after the third parameter: ```js export type PriceLookup = ( tokenAddress: string, block: i32, currentPool: string, ) => string |...
From issue [2508](https://github.com/AssemblyScript/assemblyscript/issues/2508) - [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file
- [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file fix: #2455
See original proposal in this [comment](https://github.com/AssemblyScript/assemblyscript/pull/2352#discussion_r963046874) But instead `lock` / `unlock` perhaps better to use `save` / `restore` names ```ts // save prev flow const currFlow = this.currentFlow; currFlow.save(); //...
Hi Maintainers, I found the class resolver for implements only check the name of the property or function, with will cause compile error during multi implements or extends. here is...
+ Fix #2484 + Disallow `static` modifier for indexed sets and gets + Return type of overloaded logical operators limited to `bool` type only + Return type of overloaded indexed...
```ts class Foo { static a = (): i32 => { // ERROR TS1110: Type expected. return 1; } b = (): i32 => { // ERROR TS1110: Type expected....
Previous one can't properly handle such edge cases: ```ts copysign(1.0, +0.0) -> +0.0 copysign(1.0, -0.0) -> -0.0 copysign(1.0, +NaN) -> NaN copysign(1.0, -NaN) -> NaN ``` Now, these cases don't...
Changes: + Canonicalize all enum identifiers from mixed (`UPPER`, `UPPER_SNAKE` and `TitleCase`) case to `TitleCase` only + Rename `statement` to `body` in all loop-related AST nodes in `ast.ts` + Rename...
In shadowstack pass, if some function need to add temp local, It need to be removed and re-added. It will discard all debug info because debug info bind with functionref....