Skip to content

Commit

Permalink
hmm what's a good way to do logging
Browse files Browse the repository at this point in the history
  • Loading branch information
keyz committed Apr 14, 2016
1 parent 2d0f4a3 commit a7bbbf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interp.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const expInterp = (exp, env) => {
}
}
default: {
throw new Error(`unsupported type ${exp.type}`);
throw new Error(`unsupported expression type ${exp.type}`);
}
}
};
Expand Down
5 changes: 5 additions & 0 deletions src/Writer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const log = (x) => {
console.log(x); // eslint-disable-line no-console
};

export { log };

0 comments on commit a7bbbf6

Please sign in to comment.