sanex3339 9 年 前
コミット
bc0c2004ff
1 ファイル変更1 行追加1 行削除
  1. 1 1
      dist/index.js

+ 1 - 1
dist/index.js

@@ -312,7 +312,7 @@ module.exports =
 	    }, {
 	        key: "validateNode",
 	        value: function validateNode(node) {
-	            return !!node;
+	            return !!node && node.hasOwnProperty('type');
 	        }
 	    }]);