summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js
blob: 2d7ef86f1d83bd885a4291005c94d8da8158397c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2009 the Sputnik authors.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
info: The length property of the toFixed method is 1
es5id: 15.7.4.5_A2_T01
description: Checking Number prototype itself
---*/
assert.sameValue(
  Number.prototype.toFixed.hasOwnProperty("length"),
  true,
  'Number.prototype.toFixed.hasOwnProperty("length") must return true'
);

assert.sameValue(
  Number.prototype.toFixed.length,
  1,
  'The value of Number.prototype.toFixed.length is expected to be 1'
);

reportCompare(0, 0);