Bug 1896390 - Add getter for Iterator.constructor to eager-ecma-allowlist.js; r=nchev...
[gecko.git] / js / src / tests / test262 / built-ins / Number / prototype / toString / numeric-literal-tostring-radix-14.js
blob206642059c58f3c348dd16f61a5a3150b106950a
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) (14)
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(14), "0");
13 assert.sameValue(1..toString(14), "1");
14 assert.sameValue(NaN.toString(14), "NaN");
15 assert.sameValue(Infinity.toString(14), "Infinity");
17 reportCompare(0, 0);