test262/test/suite/ch08/8.5/S8.5_A12.2.js

16 lines
424 B
JavaScript
Raw Normal View History

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: -Infinity is the same as Number.NEGATIVE_INFINITY
2014-07-25 00:41:42 +02:00
es5id: 8.5_A12.2
description: Compare -Infinity with Number.NEGATIVE_INFINITY
---*/
var n_inf=-Infinity;
//CHECK #1
if (n_inf !== Number.NEGATIVE_INFINITY){
$ERROR('#1: -Infinity is the same as Number.NEGATIVE_INFINITY');
}