Repository navigation
Immutable
release. Only release title and notes can be modified.
We're back from the holidays with another full Luau release! 🦃 🥧
Analysis
- Classes now report
MissingConstructorif a class has private fields but no constructor. IllegalPrivateAccessis 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.
AssignIndexConstraintnow handles union types.- Generic bounds now capture
anyinstead of falling back tounknown | *error-type*. - Fixed a type error when inferring
setmetatable(Y, Z)whenYhas 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
typeslibrary. - Fixed a stack overflow when iterating over a self-referential metatable type.
Compiler & Runtime
- Fixed
coroutine.wraperroring without clearing finalizers, allowingcoroutine.closeto 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