test262/test/suite/ch15/15.7/15.7.4/15.7.4.5/S15.7.4.5_A2_T01.js
2011-10-03 13:04:52 -07:00

21 lines
560 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The length property of the toFixed method is 1
*
* @path ch15/15.7/15.7.4/15.7.4.5/S15.7.4.5_A2_T01.js
* @description Checking Number prototype itself
*/
//CHECK#1
if(Number.prototype.toFixed.hasOwnProperty("length") !== true){
$ERROR('#1: The length property of the toFixed method is 1');
}
//CHECK#2
if(Number.prototype.toFixed.length !== 1){
$ERROR('#2: The length property of the toFixed method is 1');
}