| Index: test/mjsunit/asm/int32modb.js
|
| diff --git a/test/mjsunit/asm/int32mod.js b/test/mjsunit/asm/int32modb.js
|
| similarity index 80%
|
| copy from test/mjsunit/asm/int32mod.js
|
| copy to test/mjsunit/asm/int32modb.js
|
| index 22fa81384d49af081f32a3a78b51cebf26d4dee8..5081b49ae5c83f8fd0db6bd05affd7b2b453e865 100644
|
| --- a/test/mjsunit/asm/int32mod.js
|
| +++ b/test/mjsunit/asm/int32modb.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2014 the V8 project authors. All rights reserved.
|
| +// Copyright 2015 the V8 project authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -17,8 +17,8 @@ var mod = (function Module(stdlib, foreign, heap) {
|
| })(stdlib, foreign, heap).mod;
|
|
|
| var divisors = [-2147483648, -32 * 1024, -1000, -16, -7, -2, -1, 0,
|
| - 1, 3, 4, 10, 64, 100, 1024, 2147483647];
|
| -for (var i in divisors) {
|
| + 1, 3, 4, 10, 64, 99, 1023, 1024, 2147483647];
|
| +for (var i = 0; i < divisors.length; i++) {
|
| var divisor = divisors[i];
|
| for (var dividend = -2147483648; dividend < 2147483648; dividend += 3999773) {
|
| assertEquals((dividend % divisor) | 0, mod(dividend, divisor));
|
|
|