This should never happen, but if it does, lets make sure we know

In the past, this has cause things to break in mysterious ways

Change-Id: I2fcf1e2a9cf776a9ab9b3969d9ec552e23120e79
This commit is contained in:
Trevor Parscal 2012-08-08 15:17:45 -07:00
parent d8ee3c2c29
commit 8479e3d060

View file

@ -416,6 +416,9 @@ ve.Document.prototype.selectNodes = function ( range, mode ) {
}
}
} while ( end >= left - 1 );
if ( retval.length === 0 ) {
throw new Error( 'selectNodes epic fail' );
}
return retval;
};