test262/test/suite/ch15/15.7/15.7.3/15.7.3.1/S15.7.3.1_A3.js

18 lines
470 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* Number.prototype value is +0
*
* @path ch15/15.7/15.7.3/15.7.3.1/S15.7.3.1_A3.js
* @description Checking value of Number.prototype property
*/
//CHECK#1
if (Number.prototype != 0) {
$ERROR('#2: Number.prototype == +0');
} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){
$ERROR('#2: Number.prototype == +0');
}