Skip to content

0.748

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 23:36
Immutable release. Only release title and notes can be modified.
3d91c9d

General

We've refactored how embedded builtin definitions work for the type solver: instead of writing a bunch of declaration strings, instead we have some nice little builder methods. Apologies to anyone who has outstanding PRs that add or remove embedded builtin definitions, but this should make flagging changes wayyyyyy easier in this part of the codebase.

Analysis

  • LuauDecomposeIntersectionOfFreeType has been reverted. Fixes #3083 and #3117, but re-opens #3001 and #3002.
  • Fix a class of issues where referencing expression globals in type functions would be permitted, despite type functions having isolated and sandboxed environments.
type function foobar()
    X = 42
end

print(X) -- this would sometimes infer `X: number`, even though this is impossible.

Runtime

  • Fixed a bug where inlined functions might clobber captured values:
local function test()
    local f
    f = function() f = nil end
    f = (function() return f() end)() -- We need to make sure we get the correct `f` here.
    return f
end
  • In NCG, allow loads of immutable data (like constants) to be moved from block-to-block when safe.

Tooling

  • Golden tests now use TOML to store their outputs instead of individual files.

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: Ilya Rezvov irezvov@roblox.com
Co-authored-by: Sora Kanosue skanosue@roblox.com
Co-authored-by: Thomas Schollenberger tschollenberger@roblox.com
Co-authored-by: Varun Saini vsaini@roblox.com
Co-authored-by: Vighnesh Vijay vvijay@roblox.com
Co-authored-by: Vyacheslav Egorov vegorov@roblox.com