aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2013-01-26 14:24:54 +0200
committerMihai Bazon <mihai@bazon.net>2013-02-01 13:32:15 +0200
commita5b209470c2a61c3c735523fc82bd1ce45a51ec1 (patch)
tree1c7f851498bfb49b5580cb4adff7825acf17d029
parente9a571b2a1a93e1c5e299ca4c8f846e2e1117994 (diff)
downloadtracifyjs-a5b209470c2a61c3c735523fc82bd1ce45a51ec1.tar.gz
tracifyjs-a5b209470c2a61c3c735523fc82bd1ce45a51ec1.zip
Fix end token for Assign nodes
-rw-r--r--lib/parse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 01fbb88f..5a75e753 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -1358,7 +1358,7 @@ function parse($TEXT, options) {
left : left,
operator : val,
right : maybe_assign(no_in),
- end : peek()
+ end : prev()
});
}
croak("Invalid assignment");