mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 04:50:36 +00:00
Fix process built-in not working in REPL
This commit is contained in:
parent
e4850666c5
commit
96adf83fad
2 changed files with 9 additions and 7 deletions
15
CHANGELOG.md
15
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.
|
||||
|
|
|
@ -39,6 +39,7 @@ impl Lune {
|
|||
let scheduler = Scheduler::new().into_static();
|
||||
|
||||
lua.set_scheduler(scheduler);
|
||||
lua.set_app_data(Vec::<String>::new());
|
||||
globals::inject_all(lua).expect("Failed to inject lua globals");
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Reference in a new issue