Fixed #123 and #125, added tests for debug protection template

This commit is contained in:
sanex3339
2017-11-23 01:42:55 +03:00
parent f5b9c22f11
commit e52fb4c84c
14 changed files with 274 additions and 12 deletions
+8
View File
@@ -21,6 +21,14 @@ export class NodeGuards {
return node.type === NodeType.AssignmentPattern;
}
/**
* @param {Node} node
* @returns {boolean}
*/
public static isAwaitExpressionNode (node: ESTree.Node): node is ESTree.AwaitExpression {
return node.type === NodeType.AwaitExpression;
}
/**
* @param {Node} node
* @returns {boolean}