aboutsummaryrefslogtreecommitdiff
path: root/nomsu.moon
diff options
context:
space:
mode:
Diffstat (limited to 'nomsu.moon')
-rwxr-xr-xnomsu.moon3
1 files changed, 2 insertions, 1 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 90b017c..eb376fc 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -810,6 +810,7 @@ if arg
if args.flags["-i"]
-- REPL
+ vars = {}
c\run('require "lib/core.nom"', "stdin")
while true
buff = ""
@@ -821,7 +822,7 @@ if arg
buff ..= line
if #buff == 0
break
- ok, ret = pcall(-> c\run(buff, "stdin"))
+ ok, ret = pcall(-> c\run(buff, "stdin", vars))
if ok and ret != nil
print "= "..repr(ret)