Skip to content

2.2.7

Latest

Choose a tag to compare

@caffeine-ci-bot caffeine-ci-bot released this 30 Nov 20:47
· 8 commits to master since this release
dcc684e
  • 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 its timeout could carry over to a later
      message and make an unrelated call best-effort. Such code is now
      rejected; -W=M0210 downgrades it to a warning. An unused timeout is
      also discarded at the end of each message (#6536).

    • bugfix: a let with or-pattern that binds variables, in a block containing
      an await, no longer crashes moc (#6550).

    • bugfix: the runtime now refuses to allocate a Blob of 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-pages raised above 2^22 (#6515).