Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded using transformObjectKeys #512

Closed
beeing opened this issue Jan 20, 2020 · 2 comments · Fixed by #514
Closed

Maximum call stack size exceeded using transformObjectKeys #512

beeing opened this issue Jan 20, 2020 · 2 comments · Fixed by #514
Labels

Comments

@beeing
Copy link

beeing commented Jan 20, 2020

Running this with transformObjectKeys will causes the error.

const v = `test: ${doSomething(obj, { tag: 'data' })}`;

Steps to Reproduce

  1. Paste the above code to https://obfuscator.io
  2. Tick Transform Object Keys
  3. Click Obfuscate

Your Environment

  • Obfuscator version used: latest
  • Node version used: v12.13.0

Stack trace

JavaScriptObfuscator/src/node/NodeStatementUtils.ts:45
    public static getRootStatementOfNode (node: ESTree.Node): ESTree.Statement {
           ^
RangeError: Maximum call stack size exceeded
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:45:12)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
    at Function.getRootStatementOfNode (JavaScriptObfuscator/src/node/NodeStatementUtils.ts:57:39)
@sanex3339
Copy link
Member

Thank you, will fix it this week

@sanex3339
Copy link
Member

Will fixed in #512
Expect a release in a few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants