Skip to content

Commit 090b0a0

Browse files
authored
new compiler realizes that 100 is an integer
1 parent f785241 commit 090b0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/website/new-compiler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The old compiler generates:
8989
```js
9090
sum.value = 0;
9191
i.value = 1;
92-
for (var a0 = 100; a0 >= 0.5; a0--) {
92+
for (var a0 = 100; a0 >= 0; a0--) {
9393
sum.value = ((+sum.value || 0) + (+i.value || 0));
9494
i.value = ((+i.value || 0) + 1);
9595
}

0 commit comments

Comments
 (0)