add missing semicolons

This commit is contained in:
Sebastian McKenzie
2015-07-12 00:36:21 +01:00
parent 16502488b9
commit ada45d5800
2 changed files with 10 additions and 11 deletions

View File

@@ -784,19 +784,18 @@ export default function (instance) {
instance.extend("parseImportSpecifiers", function (inner) {
return function (node) {
node.importKind = "value"
var kind =
(this.type === tt._typeof ? "typeof" :
(this.isContextual("type") ? "type" : null))
node.importKind = "value";
var kind = (this.type === tt._typeof ? "typeof" : (this.isContextual("type") ? "type" : null));
if (kind) {
var lh = this.lookahead()
var lh = this.lookahead();
if ((lh.type === tt.name && lh.value !== "from") || lh.type === tt.braceL || lh.type === tt.star) {
this.next()
node.importKind = kind
this.next();
node.importKind = kind;
}
}
inner.call(this, node)
inner.call(this, node);
};
});