GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #604

New issue
Copy link
New issue
Copy link
Closed
#799
Closed
Support optional chaining and nullish coalescing syntax#604
#799
Copy link
Labels
3rd party libraryenhancementes2019+escodegen

Description

@tedgoddard
tedgoddard
opened on May 13, 2020
Issue body actions

Is 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.

Reacted by GoogleSites

Activity

  1. sanex3339
    added
    3rd party library
    enhancement
    on May 14, 2020
  2. sanex3339 commented on May 30, 2020

    @sanex3339
    sanex3339
    on May 30, 2020
    Member
    More actions

    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.

  3. tedgoddard commented on Jun 5, 2020

    @tedgoddard
    tedgoddard
    on Jun 5, 2020
    Author
    More actions

    Relevant Acorn PR: acornjs/acorn#891

  4. sanex3339 commented on Jun 11, 2020

    @sanex3339
    sanex3339
    on Jun 11, 2020
    Member
    More actions

    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.

    Reacted by Ted Goddard
  5. sanex3339
    added
    escodegen
    es2019+
    on Jun 23, 2020
  6. sanex3339 commented on Jul 7, 2020

    @sanex3339
    sanex3339
    on Jul 7, 2020
    Member
    More actions

    This PR estools/escodegen#412 makes me sad

  7. sanex3339 commented on Jul 7, 2020

    @sanex3339
    sanex3339
    on Jul 7, 2020
    Member
    More actions

    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

  8. sanex3339
    changed the title [-]Support optional chaining syntax[/-] [+]Support optional chaining and nullish coalescing syntax[/+] on Jul 7, 2020
  9. sanex3339 commented on Jul 7, 2020

    @sanex3339
    sanex3339
    on Jul 7, 2020
    Member
    More actions

    Also here is the PR with nullish coalescing support
    estools/escodegen#417

  10. sanex3339 commented on Aug 6, 2020

    @sanex3339
    sanex3339
    on Aug 6, 2020
    Member
    More actions

    Optional chaining has been merged on escodegen side!

  11. sanex3339 commented on Aug 6, 2020

    @sanex3339
    sanex3339
    on Aug 6, 2020
    Member
    More actions

    Seems the last step is the PR for esrecurse because eslint-scope uses it.
    estools/esrecurse#22

  12. sanex3339 commented on Aug 6, 2020

    @sanex3339
    sanex3339
    on Aug 6, 2020
    Member
    More actions

    #697

  13. sanex3339 commented on Aug 6, 2020

    @sanex3339
    sanex3339
    on Aug 6, 2020
    Member
    More actions

    Optional chaining support has been merged. Expect the release with it later today.

  14. sanex3339 commented on Aug 6, 2020

    @sanex3339
    sanex3339
    on Aug 6, 2020
    Member
    More actions

    Optional chaining support still requires estools/esrecurse#22 but right now I avoided it by using Selective dependency resolutions feature of yarn

  15. sanex3339 commented on Aug 14, 2020

    @sanex3339
    sanex3339
    on Aug 14, 2020
    Member
    More actions

    Optional chaining support just has been released as 1.10.0

  16. sanex3339
    closed this as completedin #799on Nov 4, 2020
  17. sanex3339 commented on Nov 4, 2020

    @sanex3339
    sanex3339
    on Nov 4, 2020
    Member
    More actions

    Will be released soon as 2.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3rd party libraryenhancementes2019+escodegen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.