summaryrefslogtreecommitdiff
path: root/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js')
-rw-r--r--test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js48
1 files changed, 28 insertions, 20 deletions
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
index cc6b6aadc..bc2190c3e 100644
--- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
+++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js
@@ -8,57 +8,65 @@ description: radix is 1
---*/
//CHECK#1
-try {
+try{
var n = Number.prototype.toString(1);
$ERROR('#1: Number.prototype.toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#2
-try {
+try{
var n = (new Number()).toString(1);
$ERROR('#2: (new Number()).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#3
-try {
+try{
var n = (new Number(0)).toString(1);
$ERROR('#3: (new Number(0)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#4
-try {
+try{
var n = (new Number(-1)).toString(1);
$ERROR('#4: (new Number(-1)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#5
-try {
- var n = (new Number(1)).toString(1);
+try{
+ var n =(new Number(1)).toString(1);
$ERROR('#5: (new Number(1)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#6
-try {
- var n = (new Number(Number.NaN)).toString(1);
+try{
+ var n =(new Number(Number.NaN)).toString(1);
$ERROR('#6: (new Number(Number.NaN)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#7
-try {
- var n = (new Number(Number.POSITIVE_INFINITY)).toString(1);
+try{
+ var n =(new Number(Number.POSITIVE_INFINITY)).toString(1);
$ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}
//CHECK#8
-try {
- var n = (new Number(Number.NEGATIVE_INFINITY)).toString(1);
+try{
+ var n =(new Number(Number.NEGATIVE_INFINITY)).toString(1);
$ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(1) should throw an Error');
}
-catch (e) {}
+catch(e){
+}