You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Breaking changes
Make Rtrace ESM by default, with UMD fallback (#1515) (2e249e4)
Rtrace is now an ES module by default as well.
Generalize runtime (#1503) (8c97612)
The __alloc family of built-ins has been split, now being named __new. __renew, __newString, __newArray etc. when dealing with managed objects. Furthermore, internal memory layouts of managed objects have changed. As a result, the new heap.alloc/realloc/free APIs now allow working with unmanaged heap memory more naturally and do not imply a managed object header anymore, more closely resembling malloc/realloc/free in C.
Make loader ESM by default, with UMD fallback (#1513) (ff80a4e)
The loader is now an ES module by default so it works out of the box on the web. Users of older node.js versions may have to switch to require("@assemblyscript/loader/umd").
Wrap RHS of SMI shifts to maximum size of type in bits (#1511) (9b57abd)
When shifting a small integer value of type i8/u8 or i16/u16, only the 3 respectively 4 least significant bits of the RHS value affect the result, analogous to the result of an i32.shl only being affected by the 5 least significant bits of the RHS value. Example: someI8 << 8 previously produced the value 0, but now produces someI8 due to masking the RHS as 8 & 7 = 0 (3 bits).
Bug fixes
Use explicit cast in Usize/Isize#toString (#1517) (bee3b73)