From 96adf83fad2b37b69a78574b494d146983c67319 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Tue, 3 Oct 2023 21:39:30 -0500 Subject: [PATCH] Fix process built-in not working in REPL --- CHANGELOG.md | 15 ++++++++------- src/lune/mod.rs | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87d2422..100439f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,13 +31,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 -- Returns a specific moment in time as a DateTime instance local someDayInTheFuture = DateTime.fromLocalTime({ - year = 3033, - month = 8, - day = 26, - hour = 16, - minute = 56, - second = 28, - millisecond = 892, + year = 3033, + month = 8, + day = 26, + hour = 16, + minute = 56, + second = 28, + millisecond = 892, }) -- Extracts the current local date & time as separate values (same values as above table) @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Fixed the `process` built-in library not loading correctly when using Lune in REPL mode. - Fixed list subcommand not listing global scripts without a local `.lune` / `lune` directory present. - Fixed `net.serve` stopping when the returned `ServeHandle` is garbage collected. - Fixed missing trailing newline when using the `warn` global. diff --git a/src/lune/mod.rs b/src/lune/mod.rs index 49c8a45..caa6f1a 100644 --- a/src/lune/mod.rs +++ b/src/lune/mod.rs @@ -39,6 +39,7 @@ impl Lune { let scheduler = Scheduler::new().into_static(); lua.set_scheduler(scheduler); + lua.set_app_data(Vec::::new()); globals::inject_all(lua).expect("Failed to inject lua globals"); Self {