Skip to content

2.2.2

Latest

Choose a tag to compare

@caffeine-ci-bot caffeine-ci-bot released this 13 Nov 21:34
· 1 commit to master since this release
cc1ce6c
  • motoko (moc)

    • bugfix: Candid subtype checks on shared function and actor references
      now handle records correctly. A missing opt field that sorts before the
      remaining fields no longer causes a spurious "incompatible function type"
      trap, and records with differently named fields are no longer wrongly
      accepted (#6498).

    • bugfix: Prim.shiftRight by 2^31 or more returns 0 instead of a wrong
      value, and Prim.shiftLeft of a nonzero value traps with "left shift
      result too large" when the result would have 2^31 or more bits, instead
      of returning a wrong value. The interpreter agrees and no longer hangs
      on large shift amounts (#6423).

    • perf: a switch on a tuple, such as switch (a, b) or
      switch (f()), no longer allocates the tuple on the heap when every case
      is a tuple pattern (or a wildcard). Neither does a projection from a
      tuple-returning call like f().0 (#6486).

    • bugfix: a canister with more than about 20,000 constant values (for example,
      that many distinct text literals), or with an array literal of more than
      about 18,500 constant elements, now installs instead of failing with
      IC0505 (function complexity exceeds the maximum allowed) (#6490).