mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset a4db87a48b24 (bug 1039551
) for Windows debug mochitest-4 crashes.
This commit is contained in:
parent
870ae7adf1
commit
0d52026d61
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user