javascript-obfuscator / javascript-obfuscator/grunt-contrib-obfuscator

Class static initialization block support

Open
#34 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
30
Forks
21
PR merge metrics
No merged PRs in 30d

Description

Current version 2.0.0 does not obfuscate the JS code that contains Class static initialization block at class level, even with --force option. The output file is empty.
Error message is

Running "obfuscator:task1" (obfuscator) task
>> Error: Unknown node type StaticBlock.

Please let mecknow if any work around is there till you support this ECMA 2022 feature..

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with JavaScript containing a class static initialization block and the --force option, then trace handling of the reported Unknown node type StaticBlock error. Done means the plugin produces non-empty obfuscated output for this ECMAScript 2022 syntax without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.