# All files / src/custom-nodes/console-output-nodes ConsoleOutputDisableExpressionNode.js

100% Statements 8/8
100% Branches 1/1
100% Functions 1/1
100% Lines 8/8

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    1x
    1x
    1x

    6x

    2x

    2x

    2x

    1x
     "use strict";
    const esprima = require('esprima');
    const Node_1 = require('../Node');
    const NodeUtils_1 = require("../../NodeUtils");
    class ConsoleOutputDisableExpressionNode extends Node_1.Node {
        constructor(options) {
            super(options);
            this.node = this.getNodeStructure();
        }
        appendNode(blockScopeNode) {
            NodeUtils_1.NodeUtils.prependNode(blockScopeNode.body, this.getNode());
        }
        getNodeStructure() {
            return NodeUtils_1.NodeUtils.getBlockStatementNodeByIndex(esprima.parse(`
                    (function () {
                        var _ = '(\u0004\u0006\u0003\u0005[]' + '["filter"]["\u0007tructor"]' + '("return this")()' + '.' + '\u0003;\u0006\u0002\u0005\u0004};' + '_\u0003.log\u0001.in' + 'fo\u0001.' + 'war' + 'n\u0001.er' + 'r' + 'or\u0001})();' + '\u0001\u0005_\u0002;' + '_\u0003\u0002function' + '\u0003\u0007ole\u0004\u0002 ()' + '{\u0005 = \u0006var ' + '_\u0007cons',
                            Y,
                            $;

                        for (Y in $ = "\u0007\u0006\u0005\u0004\u0003\u0002\u0001") {
                          var arr = _.split($[Y]);
                          _ = arr.join(arr.pop());
                        }

                        []["filter"]["constructor"](_)();
                    })()
                `));
        }
    }
    exports.ConsoleOutputDisableExpressionNode = ConsoleOutputDisableExpressionNode;
    //# sourceMappingURL=ConsoleOutputDisableExpressionNode.js.map