1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 info: "toString: radix should be an integer between 2 and 36"
7 description: radix is 0
11 var n = Number.prototype.toString(0);
12 throw new Test262Error('#1: Number.prototype.toString(0) should throw an Error');
17 var n = (new Number()).toString(0);
18 throw new Test262Error('#2: (new Number()).toString(0) should throw an Error');
23 var n = (new Number(0)).toString(0);
24 throw new Test262Error('#3: (new Number(0)).toString(0) should throw an Error');
29 var n = (new Number(-1)).toString(0);
30 throw new Test262Error('#4: (new Number(-1)).toString(0) should throw an Error');
35 var n = (new Number(1)).toString(0);
36 throw new Test262Error('#5: (new Number(1)).toString(0) should throw an Error');
41 var n = (new Number(Number.NaN)).toString(0);
42 throw new Test262Error('#6: (new Number(Number.NaN)).toString(0) should throw an Error');
47 var n = (new Number(Number.POSITIVE_INFINITY)).toString(0);
48 throw new Test262Error('#7: (new Number(Number.POSITIVE_INFINITY)).toString(0) should throw an Error');
53 var n = (new Number(Number.NEGATIVE_INFINITY)).toString(0);
54 throw new Test262Error('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(0) should throw an Error');