mirror of https://github.com/tc39/test262.git
Merge pull request #476 from evilpie/error-message-hang
Stop test262 from hanging Spidermonkey with an unimportant error message
This commit is contained in:
commit
23d0f459a8
|
@ -15,7 +15,7 @@ obj.length = 4294967296;
|
|||
|
||||
try {
|
||||
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. Actual: '+arr);
|
||||
$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);
|
||||
|
|
|
@ -15,7 +15,7 @@ obj.length = 4294967297;
|
|||
|
||||
try {
|
||||
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. Actual: '+arr);
|
||||
$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);
|
||||
|
|
Loading…
Reference in New Issue