Bug 934817 - Part 2.5: Remove 0-length string check in dom/bindings/BindingUtils.cpp. r=bz

This commit is contained in:
Michael Shuen 2014-02-14 11:15:43 -05:00
parent c489c0a6f2
commit 5fc2830e48

View File

@ -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());