Releases: AssemblyScript/assemblyscript
Releases · AssemblyScript/assemblyscript
v0.27.1
v0.27.0
Breaking changes
- Check global uses more strictly (#2632) (5cbbf84)
Use of global variables (in the Wasm sense) is now checked more strictly to prevent undesirable execution order. If the compiler detects that it is possible that a variable might not have been initialized when accessed, a diagnostic is produced. It cannot be ruled out that some amount of existing code will be affected, since such checks are performed at runtime in JS but are proven at compile time in AS. If encountered, the fix is to move the variable's declaration up, say before the first invocation of a function (that might call another function) accessing the variable, so it is guaranteed that it is initialized before its first use.
Bug fixes
Other
v0.26.7
v0.26.6
v0.26.5
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
Breaking changes
- Add LUB computation for class types (#2594) (4b3b390)
Binary and ternary expressions now compute and evaluate to the least upper bound of two not identical class type inputs in the absence of a better fitting contextual type. Technically a breaking change, yet likely without noticeable effects on existing code.
Bug fixes
- Defuse assert in lookupPropertyAccessExpression after prior error (82812de)
- Support trailing comma in function type parameters (#2608) (1ff71e5)