Skip to content
Browse files

Related to #48, don't want to run translate(stmt) twice.

  • Loading branch information...
1 parent 47f69e4 commit 2a583b4bfa3d3f71276c659ddc6705d78ad6fcd5 @matthewp matthewp committed Oct 17, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/sibilant.js
  2. +1 −1 src/core.sibilant
View
2 lib/sibilant.js
@@ -535,7 +535,7 @@ macros.lambda = (function(arglist, body) {
}))).join(", ") + ") {" + indent(commentString, docString, argsString, (map(body, (function(stmt) {
// stmt:required
var tstmt = translate(stmt);
- return (translate(stmt) + (function() {
+ return (tstmt + (function() {
if (((tstmt.slice(-1))[0] === ";")) {
return "";
} else {
View
2 src/core.sibilant
@@ -265,7 +265,7 @@
(map body
(lambda (stmt)
(defvar tstmt (translate stmt))
- (concat (translate stmt)
+ (concat tstmt
(if (= (last tstmt) ";") "" ";"))))))
"})"))

0 comments on commit 2a583b4

Please sign in to comment.
Something went wrong with that request. Please try again.