mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-13 16:57:54 -05:00
* Update links to use https://coffeescript.org * 2.3.1 changelog * Bump version to 2.3.1; update output * Forgot one * Another one * Lock Babel versions for Node 6 build to succeed, until Babel 7 is out
1.1 KiB
1.1 KiB
Compatibility
Most modern JavaScript features that CoffeeScript supports can run natively in Node 7.6+, meaning that Node can run CoffeeScript’s output without any further processing required. Here are some notable exceptions:
- Modules and JSX always require transpilation.
- Splats, a.k.a. object rest/spread syntax, for objects are supported by Node 8.6+.
- The regular expression
s(dotall) flag is supported by Node 9+. - Async generator functions are supported by Node 10+.
This list may be incomplete, and excludes versions of Node that support newer features behind flags; please refer to node.green for full details. You can run the tests in your browser to see what your browser supports. It is your responsibility to ensure that your runtime supports the modern features you use; or that you transpile your code. When in doubt, transpile.