aboutsummaryrefslogtreecommitdiff
path: root/lib/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parse.js')
-rw-r--r--lib/parse.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 3bf8d29d..10a0f1af 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -304,10 +304,6 @@ function tokenizer($TEXT, filename) {
return ch;
};
- function eof() {
- return !S.peek();
- };
-
function find(what, signal_eof) {
var pos = S.text.indexOf(what, S.pos);
if (signal_eof && pos == -1) throw EX_EOF;
@@ -909,7 +905,7 @@ function parse($TEXT, options) {
}
expect(":");
S.labels.push(label);
- var start = S.token, stat = statement();
+ var stat = statement();
S.labels.pop();
return new AST_LabeledStatement({ body: stat, label: label });
};
@@ -1036,7 +1032,7 @@ function parse($TEXT, options) {
var switch_body_ = curry(in_loop, function(){
expect("{");
- var a = [], cur = null, branch = null, start = S.token;
+ var a = [], cur = null, branch = null;
while (!is("punc", "}")) {
if (is("eof")) unexpected();
if (is("keyword", "case")) {