This commit is contained in:
sanex3339
2016-06-09 21:30:55 +03:00
parent 0b433f36cb
commit 3c8030b38b
2 changed files with 6 additions and 22 deletions
+2 -15
View File
@@ -37,18 +37,6 @@ module.exports =
/******/ // identity function for calling harmory imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmory exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
@@ -2366,9 +2354,8 @@ module.exports =
value: function replaceVariableCalls(variableDeclarationNode, variableParentNode) {
var _this3 = this;
var scopeNode = void 0;
scopeNode = variableDeclarationNode.kind === 'var' ? NodeUtils_1.NodeUtils.getBlockScopeOfNode(variableDeclarationNode) : variableParentNode;
var isNodeAfterVariableDeclaratorFlag = false;
var scopeNode = variableDeclarationNode.kind === 'var' ? NodeUtils_1.NodeUtils.getBlockScopeOfNode(variableDeclarationNode) : variableParentNode,
isNodeAfterVariableDeclaratorFlag = false;
estraverse.replace(scopeNode, {
enter: function enter(node, parentNode) {
var functionNodes = [NodeType_1.NodeType.ArrowFunctionExpression, NodeType_1.NodeType.FunctionDeclaration, NodeType_1.NodeType.FunctionExpression];
@@ -64,13 +64,10 @@ export class VariableDeclarationObfuscator extends NodeObfuscator {
* @param variableParentNode
*/
private replaceVariableCalls (variableDeclarationNode: IVariableDeclarationNode, variableParentNode: INode): void {
let scopeNode: INode;
scopeNode = variableDeclarationNode.kind === 'var' ? NodeUtils.getBlockScopeOfNode(
variableDeclarationNode
) : variableParentNode;
let isNodeAfterVariableDeclaratorFlag: boolean = false;
let scopeNode: INode = variableDeclarationNode.kind === 'var' ? NodeUtils.getBlockScopeOfNode(
variableDeclarationNode
) : variableParentNode,
isNodeAfterVariableDeclaratorFlag: boolean = false;
estraverse.replace(scopeNode, {
enter: (node: INode, parentNode: INode): any => {