GeezerVison is showing github.com — Support optional chaining and nullish coalescing syntax · Issue #604 · javascript-obfuscator/javascript-obfuscator
Support optional chaining and nullish coalescing syntax #604DescriptionIs your feature request related to a problem? Please describe.
Support optional chaining syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
For example a?.b
Describe the solution you'd like
Obfuscate code making use of optional chaining.
Describe alternatives you've considered
Disable obfuscation for files containing this syntax
Additional context
Add any other context or screenshots about the feature request here. Activitysanex3339 commented on May 30, 2020 Hi. We have to wait until this PR will be merged
estools/escodegen#412
But that PR depends on acorn PR with this feature. So, expect this not so soon. tedgoddard commented on Jun 5, 2020 sanex3339 commented on Jun 11, 2020 Acorn PR has been merged, now waiting for the escodegen PR.
Also estraverse does not support this syntax out of the box, but there is fallback property to ignore it.
sanex3339 commented on Jul 7, 2020 sanex3339 commented on Jul 7, 2020 I think that if I won't get any response during this week, I'll create the forks of escodegen (@javascript-obfuscator/escodegen package) and estraverse (@javascript-obfuscator/estraverse package) that will be used until these changes will be merged into the base repo changed the title [-]Support optional chaining syntax[/-] [+]Support optional chaining and nullish coalescing syntax[/+] on Jul 7, 2020sanex3339 commented on Jul 7, 2020 sanex3339 commented on Aug 6, 2020 Optional chaining has been merged on escodegen side! sanex3339 commented on Aug 6, 2020 sanex3339 commented on Aug 6, 2020 sanex3339 commented on Aug 6, 2020 Optional chaining support has been merged. Expect the release with it later today. sanex3339 commented on Aug 6, 2020 Optional chaining support still requires estools/esrecurse#22 but right now I avoided it by using Selective dependency resolutions feature of yarn sanex3339 commented on Aug 14, 2020 Optional chaining support just has been released as 1.10.0 sanex3339 commented on Nov 4, 2020 Will be released soon as 2.7.0
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|