Skip to content

Commit

Permalink
Inject runtime compat functions
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Feb 1, 2024
1 parent 7c202bd commit b20d3c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/lune/builtins/task/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ return defer(select(2, ...))

pub fn create(lua: &Lua) -> LuaResult<LuaTable> {
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")?;

Expand Down

0 comments on commit b20d3c9

Please sign in to comment.