Skip to content

Commit

Permalink
Update TypeScript-related dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Mar 1, 2017
1 parent 5e67af1 commit f09a5b9
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -56,9 +56,9 @@
"node-tick-processor": "~0.0.2",
"regenerate": "~1.3.2",
"temp": "~0.8.3",
"tslint": "~4.0.2",
"typescript": "~2.1.4",
"typescript-formatter": "~4.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.1",
"typescript-formatter": "~5.0.0",
"unicode-8.0.0": "~0.7.0",
"webpack": "~1.14.0"
},
4 changes: 2 additions & 2 deletions src/parser.ts
Original file line number Diff line number Diff line change
@@ -1133,10 +1133,10 @@ export class Parser {
this.reinterpretExpressionAsPattern(expr);
}

const params = (expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]);
const parameters = (expr.type === Syntax.SequenceExpression ? expr.expressions : [expr]);
expr = {
type: ArrowParameterPlaceHolder,
params: params,
params: parameters,
async: false
};
}
4 changes: 2 additions & 2 deletions src/tokenizer.ts
Original file line number Diff line number Diff line change
@@ -51,8 +51,8 @@ class Reader {
break;

case ')':
const check = this.values[this.paren - 1];
regex = (check === 'if' || check === 'while' || check === 'for' || check === 'with');
const keyword = this.values[this.paren - 1];
regex = (keyword === 'if' || keyword === 'while' || keyword === 'for' || keyword === 'with');
break;

case '}':

0 comments on commit f09a5b9

Please sign in to comment.