throw/catch uses CatchNLX object instead of plain object
[jscl.git] / src / prelude.js
index 8f2c1b2..d9df2da 100644 (file)
@@ -151,3 +151,17 @@ function js_to_lisp (x) {
     });
   } else return x;
 }
+
+
+// Non-local exits
+
+function BlockNLX (id, values, name){
+  this.id = id;
+  this.values = values;
+  this.name = name;
+}
+
+function CatchNLX (id, values){
+  this.id = id;
+  this.values = values;
+}