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