Repository navigation
-
motoko (
moc)-
Breaking change (minor): a parenthetical (
cycles,timeout) on a call
that does not send a message (e.g. a local function merely returning a
future) is now reported as misplaced (M0210), like other misplaced
parentheticals. Previously itstimeoutcould carry over to a later
message and make an unrelated call best-effort. Such code is now
rejected;-W=M0210downgrades it to a warning. An unusedtimeoutis
also discarded at the end of each message (#6536). -
bugfix: a
letwithor-pattern that binds variables, in a block containing
anawait, no longer crashesmoc(#6550). -
bugfix: the runtime now refuses to allocate a
Blobof more than 2^48
bytes. Before, a length within 31 bytes of 2^64 made the size computation
wrap, so that a much too small object was allocated. All known ways to
request such a length (e.g.Region.loadBlob) trapped right afterwards
(#6528). -
bugfix: growing stable regions now fails cleanly once all regions
together use the maximum of 32768 blocks (256 GiB), instead of
overwriting region metadata. This could only happen with
--max-stable-pagesraised above 2^22 (#6515).
-