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.

Update soak implementation when optional chaining becomes stable

See original GitHub issue

Currently there’s a prototype implementation (--use-optional-chaining) mapping ?. syntax to JS optional chaining ( https://github.com/tc39/proposal-optional-chaining ), but upgrading Babel broke it because the latest spec does not allow soaked assignments, soaked new, and possibly other forms. Once the syntax and semantics settle down, it would be good to revisit. For now, I’m disabling the failing tests from the initial prototype.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
a-x-commented, Feb 9, 2019

I does not use soaked assignments and etc. in coffeescript, why I cannot --use-optional-chaining?

0reactions
eventualbuddhacommented, Apr 30, 2022

In case this still matters to anyone, --optional-chaining is an option again as of a while back (#1969).

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 >
What is wrong with optional chaining and how to fix it - DEV ...
Optional chaining simplifies above and removes a lot of errors by saying that values considered as no value are only two - null...
Read more >
Can't implement simple optional chaining - Stack Overflow
I am trying to implement a simple optional chaining state update. What I want is for the items to ONLY be changed IF...
Read more >
Support optional chaining · Issue #4303 · facebook/flow - GitHub
Can be a simple case of optional chaining (optional static property access) implemented today under option's flag esproposal or experemental? I ...
Read more >
Optional chaining '?.' - The Modern JavaScript Tutorial
The optional chaining ?. is a safe way to access nested object properties, even if an intermediate property doesn't exist.
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