diff options
Diffstat (limited to 'stdlib/source/lux/world/program.lux')
-rw-r--r-- | stdlib/source/lux/world/program.lux | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stdlib/source/lux/world/program.lux b/stdlib/source/lux/world/program.lux index ae0c6d840..96019a132 100644 --- a/stdlib/source/lux/world/program.lux +++ b/stdlib/source/lux/world/program.lux @@ -300,9 +300,6 @@ @.lua (io.io (list)) @.ruby (|> (RubyEnv::keys []) array.to_list - (list\map (function (_ variable) - [variable (RubyEnv::fetch [variable])])) - (dictionary.from_list text.hash) io.io) ## @.php (do io.monad ## [environment (..getenv/0 [])] @@ -339,7 +336,8 @@ @.js (io.io (if ffi.on_node_js? (case (do maybe.monad [process/env (ffi.constant Object [process env])] - (array.read (: Nat name) process/env)) + (array.read (:coerce Nat name) + (:coerce (Array Text) process/env))) (#.Some value) (#try.Success value) |