Skip to content

0.749

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 21:02
Immutable release. Only release title and notes can be modified.
5d0e79e

We're back from the holidays with another full Luau release! 🦃 🥧

Analysis

  • Classes now report MissingConstructor if a class has private fields but no constructor.
  • IllegalPrivateAccess is now reported with the following subcases:
    • UnknownProp: This is reported if we index an error suppressing type with an unknown private field inside a method.
    • NonMethodContext: An object or class was indexed with a private field outside a method of the relevant class.
    • NotAClass: A value that isn't an object or class was indexed with a private field inside a class method.
    • UnknownPropOnClass, UnknownPropOnInstance: An unknown private field was indexed.
  • AssignIndexConstraint now handles union types.
  • Generic bounds now capture any instead of falling back to unknown | *error-type*.
  • Fixed a type error when inferring setmetatable(Y, Z) when Y has an unowned blocked type.
  • A parenthesized type group inside type arguments (useState<<(A | B)?>>) now spans its parentheses in the AST, so tools that reprint Luau source no longer corrupt it.
  • Added autocomplete support for the types library.
  • Fixed a stack overflow when iterating over a self-referential metatable type.

Compiler & Runtime

  • Fixed coroutine.wrap erroring without clearing finalizers, allowing coroutine.close to still run said finalizers.
  • Added NCG fallbacks for class-related bytecodes.
  • Optimized fp64 vector allocation and garbage collection.
  • Fixed table constant not being recorded when replacing a previous constant, plus constant records not being preserved correctly in nested scopes and between loop iterations. (#3132)
  • Constant folding cost model no longer treats Unknown records as constants.
  • Constant folding cost model includes cost of an IIFE body.
  • Fixed a miscompilation in the Inliner with inlined variadic function parameter reads within loops.
  • Introduced a new attribute, @noinline, which prevents both compile-time and runtime function inlining.

New Contributors

@lucaskiforishin made their first contribution in #3151
@DavidLoveLuau made their first contribution in #3081


Co-authored-by: Andy Friesen afriesen@roblox.com
Co-authored-by: Annie Tang annietang@roblox.com
Co-authored-by: Hunter Goldstein hgoldstein@roblox.com
Co-authored-by: Sora Kanosue skanosue@roblox.com
Co-authored-by: Thomas Schollenberger tschollenberger@roblox.com
Co-authored-by: Vyacheslav Egorov vegorov@roblox.com