Skip to content

Commit

Permalink
Related to #48, don't want to run translate(stmt) twice.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Oct 17, 2012
1 parent 47f69e4 commit 2a583b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sibilant.js
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/core.sibilant
Expand Up @@ -265,7 +265,7 @@
(map body
(lambda (stmt)
(defvar tstmt (translate stmt))
(concat (translate stmt)
(concat tstmt
(if (= (last tstmt) ";") "" ";"))))))
"})"))

Expand Down

0 comments on commit 2a583b4

Please sign in to comment.