aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.js')
-rw-r--r--src/parser.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parser.js b/src/parser.js
index 0c4a391a..541addc4 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -290,11 +290,9 @@ function parser(text, json){
var token = peek(e1, e2, e3, e4);
if (token) {
if (json && !token.json) {
- index = token.index;
throwError("is not valid json", token);
}
tokens.shift();
- this.currentToken = token;
return token;
}
return false;