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.

Convert to latest JS

See original GitHub issue

I have a feature request.

For now decaffeinate outputs not recent JS code. Please help to output JS code with all recent features supported by babel. I see decaffeinate-parser which looks cool. I think I just need to update nodes.coffee?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
eventualbuddhacommented, Apr 12, 2019

You’ll likely need to edit ClassPatcher#needsInitClass and the methods it calls, notably this line.

0reactions
aleksandrlatcommented, Apr 12, 2019

Thank you @eventualbuddha very much for such detailed explanation!

I didn’t know that properties are not instance properties. This was not obvious. I’m relatively new in coffeescript.

And I don’t understand about new AllObjectsForm().getAll !== new AllObjectsForm().getAll Because with

constructor(props) {
    super(props);
    this.getAll = this.getAll.bind(this);
}

new AllObjectsForm().getAll !== new AllObjectsForm().getAll too. Because bind creates new function.

Yes please let me know I want to fix it at least for literals. It can be beneficial for community and for me. I learn it and I can fork to modify for our needs after.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript Type Conversions (with Examples) - Programiz
In programming, type conversion is the process of converting data of one type to another. For example: converting String data to Number ....
Read more >
JavaScript Type Conversions - W3Schools
Converting Strings to Numbers. The global method Number() converts a variable (or a value) into a number. A numeric string (like "3.14") ...
Read more >
JavaScript Date: Create, Convert, Compare Dates in JavaScript
JavaScript provides Date object to work with date & time, including days, months, years, hours, minutes, seconds, and milliseconds. Use the Date() function...
Read more >
The compiler for next generation JavaScript - Babel
The compiler for next generation JavaScript.
Read more >
Documentation - Migrating from JavaScript - TypeScript
Converting a JavaScript codebase over to TypeScript is, while somewhat tedious, usually not challenging. In this tutorial, we're going to look at how...
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