function test(val) {
try {
document.createNodeIterator(document.body,
NodeFilter.SHOW_ALL,
function() { throw val }).nextNode();
ok(false, "NodeIterator::nextNode() should have thrown an exception.");
} catch (ex) {
ok(val === ex, "NodeIterator did not properly forward exception " +
val + " of type " + typeof val + ". Thrown value was " + ex + ".");
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.