mirror of
https://github.com/tc39/test262.git
synced 2025-07-29 17:04:31 +02:00
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…
x
Reference in New Issue
Block a user