diff options
Diffstat (limited to 'test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js')
-rw-r--r-- | test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js index 7c65b5fbe..d6d1c630f 100644 --- a/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js +++ b/test/built-ins/Array/prototype/slice/S15.4.4.10_A3_T2.js @@ -15,10 +15,10 @@ obj[4294967296] = "y"; obj.length = 4294967297; try { - var arr = obj.slice(0,4294967297); + var arr = obj.slice(0, 4294967297); $ERROR('#1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception.'); } catch (e) { if (!(e instanceof RangeError)) { - $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is '+e); + $ERROR('#1.1: var obj = {}; obj.slice = Array.prototype.slice; obj[0] = "x"; obj[4294967296] = "y"; obj.length = 4294967297; var arr = obj.slice(0,4294967297); lead to throwing exception. Exception is instance of RangeError. Actual: exception is ' + e); } } |