Backed out 3 changesets (bug 1844563, bug 1906826) for crashes a=backout
[gecko.git] / js / src / tests / test262 / built-ins / Number / prototype / toString / numeric-literal-tostring-radix-15.js
blob1f97bbb3559b6b070bfeb4e0bf10cbaf26fcc0c6
1 // Copyright 2020 Rick Waldron.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-number.prototype.tostring
6 description: >
7   Calling toString(radix) (15)
8 info: |
9   Return the String representation of this Number value using the radix specified by radixNumber. Letters a-z are used for digits with values 10 through 35. The precise algorithm is implementation-defined, however the algorithm should be a generalization of that specified in sec-numeric-types-number-tostring.
10 ---*/
12 assert.sameValue(0..toString(15), "0");
13 assert.sameValue(1..toString(15), "1");
14 assert.sameValue(NaN.toString(15), "NaN");
15 assert.sameValue(Infinity.toString(15), "Infinity");
17 reportCompare(0, 0);