From b20d3c9352fa47049e8af6df1d20e5a70e25eb14 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Thu, 1 Feb 2024 14:47:53 +0100 Subject: [PATCH] Inject runtime compat functions --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lune/builtins/task/mod.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 083dac80..a242a225 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1335,7 +1335,7 @@ dependencies = [ [[package]] name = "mlua-luau-runtime" version = "0.0.0" -source = "git+https://github.com/lune-org/mlua-luau-runtime?rev=4117cfba75c6df50bd5b12a776ad33e768393753#4117cfba75c6df50bd5b12a776ad33e768393753" +source = "git+https://github.com/lune-org/mlua-luau-runtime?rev=1aba727ce650d2198faccf42c628795990ac2e43#1aba727ce650d2198faccf42c628795990ac2e43" dependencies = [ "async-executor", "concurrent-queue", diff --git a/Cargo.toml b/Cargo.toml index f1e66561..b7975007 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,7 +84,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } tokio = { version = "1.24", features = ["full", "tracing"] } os_str_bytes = { version = "6.4", features = ["conversions"] } -mlua-luau-runtime = { git = "https://github.com/lune-org/mlua-luau-runtime", rev = "4117cfba75c6df50bd5b12a776ad33e768393753" } +mlua-luau-runtime = { git = "https://github.com/lune-org/mlua-luau-runtime", rev = "1aba727ce650d2198faccf42c628795990ac2e43" } mlua = { version = "0.9.5", features = [ "async", "luau", diff --git a/src/lune/builtins/task/mod.rs b/src/lune/builtins/task/mod.rs index c67fe2b2..0e3fb56a 100644 --- a/src/lune/builtins/task/mod.rs +++ b/src/lune/builtins/task/mod.rs @@ -14,6 +14,7 @@ return defer(select(2, ...)) pub fn create(lua: &Lua) -> LuaResult { let rt_fns = Functions::new(lua)?; + rt_fns.inject_compat(lua)?; // Inject compatible versions of coroutine.resume and coroutine.wrap let select_fn: LuaFunction = lua.globals().get("select")?;