David Fugate 2012-01-13 15:15:29 -08:00
parent 9dbc4e9821
commit 42737015f4
2 changed files with 12 additions and 1 deletions

View File

@ -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