Sync to upstream/release/713#2308
Merged
Merged
Conversation
vegorov-rbx
approved these changes
Mar 20, 2026
Contributor
|
lgtm |
Autoplay1999
pushed a commit
to Autoplay1999/luau
that referenced
this pull request
Jun 30, 2026
Hey folks! Another week another Luau release 🙂
# Analysis
* `InsertionOrderedMap` has been moved from the `Analysis` library to
`Common`.
* Subtyping has been rewritten to avoid extra allocations: there should
be no behavioral change from this effort, only somewhat lower memory
pressure.
* Fixed a bug where analyzing comparing a value that is too complex to
type check against `nil` may cause the type checker to crash.
* `pcall` now handles functions that return no values, for example:
```luau
local mod = require('mymodule')
-- Previously, we would error claiming that we only expect one value on the left-hand-side.
-- Now, there is no error and `result` is typed as `unknown`.
local success, result = pcall(function()
mod.dothething()
end)
```
# Compiler
* Fixed a bug in `const` where function statements were excluded from
const checks. Fixes luau-lang#2282
```luau
const a = 42
-- The following will now fail to compile.
function a()
end
```
* Table literal "shapes" can now encorporate constant values at bytecode
compile time. We store the shape of constant tables if all their keys
are constants, which allows slightly faster insertion when building said
literals (we can preallocate a table in a particular shape). Now, we can
also store constant values, making construction a single bytecode. For
example:
```luau
-- This snippet ...
return { x = 1, y = 2 }
```
```luau
-- ... used to compile to bytecode like ...
DUPTABLE R0 2
LOADN R1 1
SETTABLEKS R1 R0 K0 ['x']
LOADN R1 2
SETTABLEKS R1 R0 K1 ['y']
RETURN R0 1
```
```luau
-- ... and now compiles to something like ...
DUPTABLE R0 4
RETURN R0 1
```
# Runtime
* Introduced a `@debugnoinline` attribute behind a debug flag. We do not
actively plan to ship this but have added it to help test compiler and
runtime optimizations.
* Fixed a bug where setting a breakpoint in a natively compiled function
could crash on ARM64.
* NCG: The data section of generated code is no longer allocated as
executable, preventing a class of potential exploits.
---
Co-authored-by: Andy Friesen <afriesen@roblox.com>
Co-authored-by: Ariel Weiss <arielweiss@roblox.com>
Co-authored-by: David Cope <dcope@roblox.com>
Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com>
Co-authored-by: Ilya Rezvov <irezvov@roblox.com>
Co-authored-by: Tom Schollenberger <tschollenberger@roblox.com>
Co-authored-by: Vighnesh Vijay <vvijay@roblox.com>
Co-authored-by: Karim Mouline <kmouline@roblox.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey folks! Another week another Luau release 🙂
Analysis
InsertionOrderedMaphas been moved from theAnalysislibrary toCommon.nilmay cause the type checker to crash.pcallnow handles functions that return no values, for example:Compiler
constwhere function statements were excluded from const checks. Fixes Const bindings can still be mutated #2282Runtime
@debugnoinlineattribute behind a debug flag. We do not actively plan to ship this but have added it to help test compiler and runtime optimizations.Co-authored-by: Andy Friesen afriesen@roblox.com
Co-authored-by: Ariel Weiss arielweiss@roblox.com
Co-authored-by: David Cope dcope@roblox.com
Co-authored-by: Hunter Goldstein hgoldstein@roblox.com
Co-authored-by: Ilya Rezvov irezvov@roblox.com
Co-authored-by: Tom Schollenberger tschollenberger@roblox.com
Co-authored-by: Vighnesh Vijay vvijay@roblox.com
Co-authored-by: Karim Mouline kmouline@roblox.com