archives

« Bugzilla Issues Index

#595 — Coverage: 15.4.4.5 - check steps 2/3 are executed before step 5


Since the following test case only succeeds in JSC and Opera, it might make sense to add it to the other tests in ch15/15.4/15.4.4/15.4.4.5 . The test checks whether steps 2/3 are executed before step 5.

---
var object = {length: {valueOf: function(){ throw "length" }}};
var sep = {toString: function(){ throw "toString" }};
try {
Array.prototype.join.call(object, sep);
$ERROR("...");
} catch (e) {
if (e !== "length") {
$ERROR("...");
}
}
---