| Index: test/mjsunit/mirror-number.js
|
| diff --git a/test/mjsunit/mirror-number.js b/test/mjsunit/mirror-number.js
|
| index 2db5df43994de71180fea2e28f0da609acc76ae7..fc71c1238b46f941487db355be97ec89372666d7 100644
|
| --- a/test/mjsunit/mirror-number.js
|
| +++ b/test/mjsunit/mirror-number.js
|
| @@ -50,10 +50,10 @@ function testNumberMirror(n) {
|
| // Parse JSON representation and check.
|
| var fromJSON = eval('(' + json + ')');
|
| assertEquals('number', fromJSON.type);
|
| - if (!isNaN(n)) {
|
| + if (isFinite(n)) {
|
| assertEquals(n, fromJSON.value);
|
| } else {
|
| - // NaN values are encoded as strings.
|
| + // NaN and Infinity values are encoded as strings.
|
| assertTrue(typeof fromJSON.value == 'string');
|
| if (n === Infinity) {
|
| assertEquals('Infinity', fromJSON.value);
|
|
|