Skip to content

[Bug]: Duplicated names of class and functions in its static block #1128

Description

@p51lee

Expected Behavior

This input JavaScript code

// input.js
class x { static { function x ( ) { } function x ( ) { } } }

should terminate normally.

$ node --version
v18.11.0
$ node input.js
// terminates without error

Current Behavior

Obfuscator crashes when the input.js is given.
image

Note: Obfuscator works fine if there is only one function definition in the static block.

Steps to Reproduce

  1. I used https://obfuscator.io/ (with default settings) to make this error.
  2. Paste input.js
  3. Obfuscate

Your Environment

Stack trace

Minimal working example that will help to reproduce issue

Activity

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