Skip to content

Redeclaring an argument inside the function produces invalid code #563

Description

@courado

For example the following piece of code:

function fun(a) {
    console.log(a);
    var a = 123;
    console.log(a);
}

Expected Behavior

Should be something like:

function fun(b) {
    console['log'](b);
    var b = 0x7b;
    console['log'](b);
}

Current Behavior

Here variable b is never used and it console.logs the variable c which is undefined.

function fun(b) {
    console['log'](c);
    var c = 0x7b;
    console['log'](c);
}

Your Environment

  • Obfuscator version used: 0.25.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions