about summary refs log tree commit diff stats
path: root/shell/global.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-05-30 18:02:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-05-30 18:02:40 -0700
commit067fa9c725e8afd1ce2e07264a900703fb30dba9 (patch)
treea092dbecd72ac527f7899be707fe73fd460fe1c6 /shell/global.mu
parent961ce67569ae5b0285f7e12d15652f98ef17d9b4 (diff)
downloadmu-067fa9c725e8afd1ce2e07264a900703fb30dba9.tar.gz
bugfix: unbound variables were not raising error
Since we switched error trace semantics from a designated label to a designated
depth (commit 9831a8cef9 on May 19).
Diffstat (limited to 'shell/global.mu')
-rw-r--r--shell/global.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/global.mu b/shell/global.mu
index 219ac5e3..6e0ff806 100644
--- a/shell/global.mu
+++ b/shell/global.mu
@@ -395,7 +395,7 @@ fn lookup-symbol-in-globals _sym: (addr cell), out: (addr handle cell), _globals
   write stream, "unbound symbol: "
   rewind-stream sym-name
   write-stream stream, sym-name
-  trace trace, "error", stream
+  error-stream trace, stream
 }
 
 fn maybe-lookup-symbol-in-globals _sym: (addr cell), out: (addr handle cell), _globals: (addr global-table), trace: (addr trace) {
@@ -506,7 +506,7 @@ fn mutate-binding-in-globals name: (addr stream byte), val: (addr handle cell),
   write stream, "unbound symbol: "
   rewind-stream name
   write-stream stream, name
-  trace trace, "error", stream
+  error-stream trace, stream
 }
 
 # a little strange; goes from value to name and selects primitive based on name