Skip to content

[Bug] Extending a boolean literal results in SyntaxError #1131

Description

@f52985

When the input code contains a class that extends a boolean literal, the output code results in SyntaxError.

Expected Behavior

Obfuscating the following code should output a valid program.

class C extends true {}

Current Behavior

The obfuscated code throws SyntaxError. (Early error)

class C extends![]{}

Steps to Reproduce

  1. Obfuscate the following program using https://obfuscator.io

Your Environment

Stack trace

Minimal working example that will help to reproduce issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions