Skip to content

0.593

Compare
Choose a tag to compare
@github-actions github-actions released this 01 Sep 18:10
551a43c

Floor division operator //

Luau now supports floor division operator //; by default it works on numbers and is equivalent to math.floor(a / b), but it can also be overridden for other types using __idiv metamethod. The operator has the same syntax and semantics as // in Lua 5.3; see #832 for full RFC.

Analysis Changes

  • Autocomplete now shows end within do blocks
  • Restore BraceType when using Lexer::lookahead (fixes #1019)

New Type Solver

  • Enhance subtyping tests to support metatables, string singletons, and class types

Native Codegen

  • Fixed clobbering of non-volatile xmm registers on Windows
  • Optimize redundant table slot lookups
  • Improve value propagation optimizations to work across basic blocks in some cases
  • Implemented IR translation of table.insert builtin
  • Fixed mmap error handling on macOS/Linux