Auto merge of #5630 - Ms2ger:substringData, r=Manishearth

This commit is contained in:
bors-servo 2015-04-10 03:38:08 -05:00
commit ebf5a70b51
2 changed files with 1 additions and 4 deletions

View file

@ -73,7 +73,7 @@ impl<'a> CharacterDataMethods for JSRef<'a, CharacterData> {
let data = self.data.borrow();
// Step 1.
let len = data.chars().count();
if len > offset as usize {
if offset as usize > len {
// Step 2.
return Err(IndexSize);
}

View file

@ -1,3 +0,0 @@
[CharacterData-substringData.html]
type: testharness
expected: CRASH