diff --git a/gen/repl.c b/gen/repl.c index 338234a..33b2d59 100644 Binary files a/gen/repl.c and b/gen/repl.c differ diff --git a/repl.js b/repl.js index cba2e13..ed7ecf8 100644 --- a/repl.js +++ b/repl.js @@ -35,7 +35,9 @@ import * as os from "os"; var String = g.String; var Array = g.Array; var Date = g.Date; + var RegExp = g.RegExp; var Math = g.Math; + var JSON = g.JSON; var isFinite = g.isFinite; var parseFloat = g.parseFloat; @@ -977,7 +979,7 @@ import * as os from "os"; stack.pop(a); } } else if (type === "string") { - s = JSON.stringify(s); + s = JSON.stringify(a); if (s.length > 79) s = s.substring(0, 75) + "...\""; std.puts(s);