about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-10-05 14:26:04 -0700
committerKartik K. Agaram <vc@akkartik.com>2014-10-05 14:26:04 -0700
commit245609e3b2a542f37b0f7d7d7c6027c4224a09bc (patch)
tree0230de46f3974d8d23622f7862a148013669339a
parent35366e91d911295c60de5be873be0f5d59f32478 (diff)
downloadmu-245609e3b2a542f37b0f7d7d7c6027c4224a09bc.tar.gz
105
-rw-r--r--mu.arc1
1 files changed, 1 insertions, 0 deletions
diff --git a/mu.arc b/mu.arc
index cbbb1839..a492b3f0 100644
--- a/mu.arc
+++ b/mu.arc
@@ -218,6 +218,7 @@
 ;?     (prn "BBB")
     (for ninstrs 0 (< ninstrs time-slice) (++ ninstrs)
 ;?       (prn "CCC " pc.context " " context " " (len body.context))
+      (if (empty body.context) (err "@stack.context.0!fn-name not defined"))
       (while (>= pc.context (len body.context))
         (pop-stack context)
         (if empty.context (return ninstrs))