blob: cacd0047670e976aa35bbbaba0e8da5a1350246b [file] [log] [blame]
// Copyright 2020 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-number.prototype.tostring
description: >
If radixNumber < 2 or radixNumber > 36, throw a RangeError exception.
---*/
assert.throws(RangeError, () => {
0..toString(37);
});
assert.throws(RangeError, () => {
1..toString(37);
});
assert.throws(RangeError, () => {
NaN.toString(37);
});
assert.throws(RangeError, () => {
Infinity.toString(37);
});