Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commitb4952e3

Browse files
committed
Demonstrate let.
1 parent0de10a6 commitb4952e3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎test/fixtures/actual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function logSum(start: int, end: int): double {
1313
varsum=0.0;
1414

1515
// asm.js forces byte addressing of the heap by requiring shifting by 3
16-
for(varp=start<<3,q=end<<3;p<q;p=p+8){
16+
for(letp=start<<3,q=end<<3;p<q;p=p+8){
1717
sum=sum+Math.log(values[p>>3]);
1818
}
1919

‎test/fixtures/expected.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ function initialize(heap) {
3434
start=start|0;
3535
end=end|0;
3636
varsum=0.0,
37-
p=0,
38-
q=0;
37+
_p=0,
38+
_q=0;
3939

4040
// asm.js forces byte addressing of the heap by requiring shifting by 3
41-
for(p=start<<3,q=end<<3;p<q;p=p+8|0){
42-
sum=sum++_Math$log_func(values[p>>3]);
41+
for(_p=start<<3,_q=end<<3;_p<_q;_p=_p+8|0){
42+
sum=sum++_Math$log_func(values[_p>>3]);
4343
}
4444

4545
return+sum;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp