mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
NodeUtils tests update
This commit is contained in:
+1
-1
@@ -142,6 +142,6 @@ export class NodeUtils {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
private static validateNode (node: INode): boolean {
|
||||
return !!node;
|
||||
return !!node && node.hasOwnProperty('type');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { IBlockStatementNode } from "./IBlockStatementNode";
|
||||
import { INode } from "./INode";
|
||||
|
||||
export interface IIfStatementNode extends INode {
|
||||
test: any,
|
||||
consequent: IBlockStatementNode,
|
||||
alternate: IBlockStatementNode
|
||||
}
|
||||
Reference in New Issue
Block a user