Backed out changeset a4db87a48b24 (bug 1039551) for Windows debug mochitest-4 crashes.

This commit is contained in:
Ryan VanderMeulen 2014-07-18 12:36:33 -04:00
parent 870ae7adf1
commit 0d52026d61

View File

@ -4402,16 +4402,6 @@ js::NewStringDontDeflate(ThreadSafeContext *cx, CharT *chars, size_t length)
}
}
if (JSFatInlineString::lengthFits<CharT>(length)) {
JSInlineString *str =
NewFatInlineString<allowGC>(cx, mozilla::Range<const CharT>(chars, length));
if (!str)
return nullptr;
js_free(chars);
return str;
}
return JSFlatString::new_<allowGC>(cx, chars, length);
}