aboutsummaryrefslogtreecommitdiffstats
path: root/src/parser.js
diff options
context:
space:
mode:
authorIgor Minar2011-07-17 00:47:11 -0700
committerIgor Minar2011-07-18 12:12:54 -0700
commit4c6d26a38f977f61d4deaacfd6b6c71f331e8065 (patch)
treefc291897c2e61097f2cabdf1963ed752704fd24a /src/parser.js
parentc43ce91b2534fe36994fd74cf8d159e54909d8ca (diff)
downloadangular.js-4c6d26a38f977f61d4deaacfd6b6c71f331e8065.tar.bz2
fix(strict mode): fix all issues discovered by strict mode and unit/e2e tests
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;