You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v2/index.html
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -646,7 +646,7 @@
646
646
<sectionid="overview">
647
647
<p><strong>CoffeeScript is a little language that compiles into JavaScript.</strong> Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way.</p>
648
648
<p>The golden rule of CoffeeScript is: <em>“It’s just JavaScript.”</em> The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript.</p>
<spanclass="cm-keyword">await</span><spanclass="cm-variable">sleep</span>(<spanclass="cm-number">1000</span>); <spanclass="cm-comment">// wait one second</span>
3536
3536
}
@@ -4524,7 +4524,7 @@ <h2>JSX</h2>
4524
4524
{(function() {
4525
4525
var i, ref, results;
4526
4526
results = [];
4527
-
for (wholeStar = i = 0, ref = Math.floor(rating); undefined !== 0 && (0 <= ref ? 0 <= i && i <ref:0>= i && i > ref); wholeStar = 0 <= ref ? ++i : --i) {
4527
+
for (wholeStar = i = 0, ref = Math.floor(rating); (0 <= ref ? i <ref:i> ref); wholeStar = 0 <= ref ? ++i : --i) {
<p>You can browse the CoffeeScript 2.2.1 source in readable, annotated form <ahref="annotated-source/">here</a>. You can also jump directly to a particular source file:</p>
4793
+
<p>You can browse the CoffeeScript 2.2.2 source in readable, annotated form <ahref="annotated-source/">here</a>. You can also jump directly to a particular source file:</p>
<li>Bugfix for regression in 2.2.0 where a range with a <code>by</code> (step) value that increments or decrements in the opposite direction as the range was returning an array containing the first value of the range, whereas it should be returning an empty array. In other words, <code>x for x in [2..1] by 1</code> should equal <code>[]</code>, not <code>[2]</code> (because the step value is positive 1, counting up, whereas the range goes from 2 to 1, counting down).</li>
5476
+
<li>Bugfixes for allowing backslashes in <code>import</code> and <code>export</code> statements and lines that trigger the start of an indented block, like an <code>if</code> statement.</li>
Copy file name to clipboardExpand all lines: documentation/sections/changelog.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
## Changelog
2
2
3
+
```
4
+
releaseHeader('2018-02-21', '2.2.2', '2.1.1')
5
+
```
6
+
* Bugfix for regression in 2.2.0 where a range with a `by` (step) value that increments or decrements in the opposite direction as the range was returning an array containing the first value of the range, whereas it should be returning an empty array. In other words, `x for x in [2..1] by 1` should equal `[]`, not `[2]` (because the step value is positive 1, counting up, whereas the range goes from 2 to 1, counting down).
7
+
* Bugfixes for allowing backslashes in `import` and `export` statements and lines that trigger the start of an indented block, like an `if` statement.
0 commit comments