We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 090b0a0 commit 3fa72d2Copy full SHA for 3fa72d2
docs/website/new-compiler.md
@@ -89,7 +89,7 @@ The old compiler generates:
89
```js
90
sum.value = 0;
91
i.value = 1;
92
-for (var a0 = 100; a0 >= 0; a0--) {
+for (var a0 = 100; a0 >= 0.5; a0--) {
93
sum.value = ((+sum.value || 0) + (+i.value || 0));
94
i.value = ((+i.value || 0) + 1);
95
}
@@ -102,7 +102,7 @@ The new compiler instead generates:
102
103
104
105
-for (var a0 = 100; a0 >= 0.5; a0--) {
+for (var a0 = 100; a0 > 0; a0--) {
106
sum.value = (sum.value + i.value);
107
i.value = (i.value + 1);
108
0 commit comments