question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support optional chaining and nullish coalescing syntax

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, 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.

0reactions
sanex3339commented, Nov 4, 2020

Will be released soon as 2.7.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
The optional chaining ( ?. ) operator accesses an object's property or calls a function. If the object accessed or function called is ......
Read more >
How to Use Optional Chaining and Nullish Coalescing in ...
The optional chaining operator provides a way to simplify accessing values through connected objects when it's possible that a reference or function may...
Read more >
How can I use optional chaining and nullish coalescing in my ...
The optional chaining operator ( ?. ) allows us to access deeply nested object properties without having to validate each reference in the ......
Read more >
Optional chaining and nullish coalescing in TypeScript
Optional chaining is often used together with nullish coalescing, which is the ability to fall back to a default value when the primary ......
Read more >
How to Use Optional Chaining in JavaScript - freeCodeCamp
We know that if any ?. check equates to a nullish value within the chain, it will return undefined . So we can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found