mirror of
https://github.com/lune-org/lune.git
synced 2025-01-07 11:59:10 +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
|
@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Fixed
|
### 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 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 `net.serve` stopping when the returned `ServeHandle` is garbage collected.
|
||||||
- Fixed missing trailing newline when using the `warn` global.
|
- Fixed missing trailing newline when using the `warn` global.
|
||||||
|
|
|
@ -39,6 +39,7 @@ impl Lune {
|
||||||
let scheduler = Scheduler::new().into_static();
|
let scheduler = Scheduler::new().into_static();
|
||||||
|
|
||||||
lua.set_scheduler(scheduler);
|
lua.set_scheduler(scheduler);
|
||||||
|
lua.set_app_data(Vec::<String>::new());
|
||||||
globals::inject_all(lua).expect("Failed to inject lua globals");
|
globals::inject_all(lua).expect("Failed to inject lua globals");
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
|
|
Loading…
Reference in a new issue