mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 934817 - Part 2.5: Remove 0-length string check in dom/bindings/BindingUtils.cpp. r=bz
This commit is contained in:
parent
c489c0a6f2
commit
5fc2830e48
@ -2084,11 +2084,6 @@ bool
|
||||
NonVoidByteStringToJsval(JSContext *cx, const nsACString &str,
|
||||
JS::MutableHandle<JS::Value> rval)
|
||||
{
|
||||
if (str.IsEmpty()) {
|
||||
rval.set(JS_GetEmptyStringValue(cx));
|
||||
return true;
|
||||
}
|
||||
|
||||
// ByteStrings are not UTF-8 encoded.
|
||||
JSString* jsStr = JS_NewStringCopyN(cx, str.Data(), str.Length());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user