diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index 1b40721c2c..55da05b75b 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -70,9 +70,9 @@ each(t.FLIPPED_ALIAS_KEYS, function (types, type) { */ t.is = function (type, node, opts, skipAliasCheck) { - if (!node) return; + if (!node) return false; - var typeMatches = (type === node.type); + var typeMatches = type === node.type; if (!typeMatches && !skipAliasCheck) { var aliases = t.FLIPPED_ALIAS_KEYS[type];