Skip to content

deadCodeInjection: true causes error SyntaxError: function statement not allowed #499

@ddzobov

Description

@ddzobov

When deadCodeInjection enabled:

if (_0x5abbc0[_0x58af('0x18a', 'Mg$V')](_0x5abbc0[_0x58af('0x18b', 'TB25')], _0x5abbc0[_0x58af('0x18c', 'gyn0')])) {
                throw new TypeError(_0x4c3a6f[_0x58af('0x18d', '3dd^')]);
            } else {
----->       function _0x556570(_0x2b416c, _0x3ba7ab, _0x5148c6) {
                    var _0x2b0d32 = _0x4c3a6f[_0x58af('0x18e', 'WFsi')][_0x58af('0x18f', 'VjCx')]('|');
                    var _0x21f712 = 0x0;
                    while (!![]) {
                        switch (_0x2b0d32[_0x21f712++]) {

I think that it is caused by 'use strict' statement

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions