question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Obfuscation failed for code with `super`

See original GitHub issue

Can be reproduced on online demo:

class BaseClass {
    constructor(foo) {
        this._foo = foo;
    }
  
      get foo() {
        return this._foo;
    }
}

class BarClass extends BaseClass {
    constructor(foo, bar) {
        super(foo);
         this._bar = bar;
    }
  
      get bar() {
        return this._bar;
    }
}

const a = new BarClass('foo', 'bar');
console.log(a.foo);
console.log(a.bar);

Attempt to obfuscate this code snippet with everything off and Mangle Variable Names on returns: Error: Unknown node type Super.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
sanex3339commented, Oct 11, 2017

In the future i’ll remove esmangle on my own transformer.

1reaction
sanex3339commented, Nov 30, 2017

Could it be the deadCodeInjection (again)?

Looks like ( Will fix it in 0.12.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

SuperNotCalledException after obfuscation with Proguard
I got it working. Like Doron suggested, it probably was related to the obfuscation, and not to the code itself.
Read more >
Facing an error with "Can't find common super class of " while ...
We are trying to obfuscate a jar which is basically a maven based Java application using Proguard (version 7.2.0-beta4)
Read more >
ProGuard Java Optimizer and Obfuscator / Bugs / #770 Error ...
I resolved the bug, I was simply missing the java.xml module from the -libraryjars setting. I updated the example. Perhaps the error reporting ......
Read more >
Debugging Proguard configuration issues
code obfuscation - replacing names with shorter variants. Makes it more difficult to reverse engineer the app and makes bytecode smaller. code ......
Read more >
When Things Go Wrong — PyArmor 6.7.0 documentation
Then set the right source code encoding in the scripts, first run the plain script to make sure everything is fine, then obfuscate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found