mirror of https://github.com/tc39/test262.git
This commit is contained in:
parent
9dbc4e9821
commit
42737015f4
|
@ -78,3 +78,14 @@ catch (e) {
|
|||
}
|
||||
}
|
||||
|
||||
//CHECK#9
|
||||
try {
|
||||
var object = {toString: function() {throw "error"}};
|
||||
[].join(object);
|
||||
$ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
|
||||
}
|
||||
catch (e) {
|
||||
if (e !== "error") {
|
||||
$ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue