-0 gets printed as 0 in Babel
See original GitHub issueBug Report
Current Behavior
t.numericLiteral
does not support -0
.
Possible Solution
Check that 0
is -0
with Object.is
before printing it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Why does babel rewrite imported function call to (0, fn)(...)?
This is the reason Babel is doing it there: In the original code, the call was simply a() , which calls a with...
Read more >Number Formatting — Babel 2.11.0 documentation
As with date/time formatting patterns, the patterns Babel supports for number formatting are based on the Locale Data Markup Language specification (LDML).
Read more >6.0.0 Released - Babel.js
This means the 'blacklist', 'whitelist', 'optional', 'nonStandard', and 'modules' options have all been removed, but that doesn't mean you need ...
Read more >The openbabel module — Open Babel v2.3.1 documentation
The openbabel module provides direct access to the C++ Open Babel library from Python. ... OBMol() print 'Should print 0 (atoms)' print mol....
Read more >Java — Open Babel 3.0.1 documentation - Read the Docs
The openbabel.jar file in the Open Babel distribution allows you to use the Open Babel ... ReadString(mol, "C(Cl)(=O)CCC(=O)Cl"); // Print out some general ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright, here’s a PR: https://github.com/babel/babel/pull/8005
Also probably a reasonable candidate for backporting but it’d be best to let it bake on 7.x for a few days after our next publish.
Interesting, I think that’s something we should treat as a bug in
valueToNode
, good catch.