summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Number/prototype/toFixed/return-type.js
blob: 0f67d1685729ab5baff5bc0cbacbfe1b331b4727 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2017 K. Adam White. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-number.prototype.tofixed
description: >
  Number.prototype.toFixed returns a string value
---*/

assert.sameValue(typeof(123.456).toFixed(), "string");

reportCompare(0, 0);