| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b9ce4b4 commit 6f9cbcf
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1944,7 +1944,7 @@ static void WriteString(const FunctionCallbackInfo<Value>& args) { | |||
| 1944 | 1944 | auto ext = string->GetExternalOneByteStringResource(); | |
| 1945 | 1945 | buf = const_cast<char*>(ext->data()); | |
| 1946 | 1946 | len = ext->length(); | |
| 1947 | - } else if (enc == UCS2 && IsLittleEndian() && string->IsExternal()) { | ||
| 1947 | + } else if (enc == UCS2 && IsLittleEndian() && string->IsExternalTwoByte()) { | ||
| 1948 | 1948 | auto ext = string->GetExternalStringResource(); | |
| 1949 | 1949 | buf = reinterpret_cast<char*>(const_cast<uint16_t*>(ext->data())); | |
| 1950 | 1950 | len = ext->length() * sizeof(*ext->data()); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments