mirror of
https://github.com/luau-lang/luau.git
synced 2025-08-26 19:37:04 +01:00
We're back on track after the long weekend! ## General - `clang-format`ed new code. Keep your code tidy! - Disable some Luau tests that are broken currently. - Enable fragment autocomplete to do tagged union completion for modules typechecked in the old solver. ## New Type Solver - Fix false positives on generic type packs in non-strict mode. - Update type signature of `setmetatable` to be `<T, MT>(T, MT) -> setmetatable<T, MT>`. - Make local type aliases available in type functions. For example: ``` type Foo = number type Array<T> = {T} type function Bar(t) return types.unionof(Foo, Array(t)) end ``` ## VM/Runtime - Make sure `lua_unref` doesn't accept refs which did not exist in the table. --- Co-authored-by: Andy Friesen <afriesen@roblox.com> Co-authored-by: Ariel Weiss <aaronweiss@roblox.com> Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com> Co-authored-by: Sora Kanosue <skanosue@roblox.com> Co-authored-by: Talha Pathan <tpathan@roblox.com> Co-authored-by: Vighnesh Vijay <vvijay@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> --------- Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com> Co-authored-by: Varun Saini <61795485+vrn-sn@users.noreply.github.com> Co-authored-by: Menarul Alam <malam@roblox.com> Co-authored-by: Aviral Goel <agoel@roblox.com> Co-authored-by: Vighnesh <vvijay@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> Co-authored-by: Ariel Weiss <aaronweiss@roblox.com> Co-authored-by: Andy Friesen <afriesen@roblox.com>
29 lines
730 B
C++
29 lines
730 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "Luau/Require.h"
|
|
|
|
#include "Luau/Compiler.h"
|
|
#include "Luau/VfsNavigator.h"
|
|
|
|
#include "lua.h"
|
|
|
|
#include <string>
|
|
|
|
void requireConfigInit(luarequire_Configuration* config);
|
|
|
|
struct ReplRequirer
|
|
{
|
|
using CompileOptions = Luau::CompileOptions (*)();
|
|
using BoolCheck = bool (*)();
|
|
using Coverage = void (*)(lua_State*, int);
|
|
|
|
ReplRequirer(CompileOptions copts, BoolCheck coverageActive, BoolCheck codegenEnabled, Coverage coverageTrack);
|
|
|
|
CompileOptions copts;
|
|
BoolCheck coverageActive;
|
|
BoolCheck codegenEnabled;
|
|
Coverage coverageTrack;
|
|
|
|
VfsNavigator vfs;
|
|
};
|