blob: 94412302151617ceb819311466e8ce997788b686 [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(1);
});
assert.throws(RangeError, () => {
1..toString(1);
});
assert.throws(RangeError, () => {
NaN.toString(1);
});
assert.throws(RangeError, () => {
Infinity.toString(1);
});