Skip to content

Removed brackets when ** operator is used #534

Closed
estools/escodegen
#407

Description

@pawelzwronek

Expected Behavior

console.log((1-2) ** 2) should be obfuscated to console['log']((0x1 - 0x2) ** 0x2)

Current Behavior

Now it's obfuscated to console['log'](0x1 - 0x2 ** 0x2)

Your Environment

https://obfuscator.io/

Activity

  1. sanex3339 commented on Jan 29, 2020

    @sanex3339
    Member

    Hi. This is escodegen problem, this package does not support this operator properly.
    The fix can take long time from them, so better to use Math.pow until fix

  2. sanex3339 commented on Jan 29, 2020

    @sanex3339
    Member

    I'll try to make PR

  3. sanex3339 commented on Jan 29, 2020

    @sanex3339
    Member

    Created the PR
    estools/escodegen#407

    So, you can ping it.

  4. pawelzwronek commented on Jan 29, 2020

    @pawelzwronek
    Author

    Great! But what do you mean ping it? :)

  5. sanex3339 commented on Jan 29, 2020

    @sanex3339
    Member

    Just write there something, that you need this fix, because this PR can take a few days or even week to merge and release version with fix. Previous time i'm waiting for the release with already merged fix about one week.

  6. sanex3339 commented on Feb 7, 2020

    @sanex3339
    Member

    Released as 0.24.6

  7. pawelzwronek commented on Feb 7, 2020

    @pawelzwronek
    Author

    Great, it's working, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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