Permalink
Browse files

Fix for issue #386

  • Loading branch information...
1 parent 301d37b commit c37094e05db79bc9eac03ad4745bfd72e87a111f @rvanvelzen rvanvelzen committed May 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/process.js
View
2 lib/process.js
@@ -1556,7 +1556,7 @@ function gen_code(ast, options) {
function has_parens(expr) {
var parentheses = 0, position = 0, token;
do {
- token = jsp.tokenizer(expr.slice(position))();
+ token = jsp.tokenizer("(" + expr.slice(position) + ")")();
position += token.endpos;
if (token.type == "punc") {
if (token.value == "(") {

0 comments on commit c37094e

Please sign in to comment.