We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baef293 commit 4c83d44Copy full SHA for 4c83d44
1 file changed
src/Utilities.h
@@ -166,18 +166,7 @@ class NativeString {
166
} else if (value->IsString()) {
167
Local<String> string = Local<String>::Cast(value);
168
169
- #if NODE_MODULE_VERSION >= 137
170
- if constexpr (AllowStringView) {
171
-
172
- String::ValueView strView(isolate, string);
173
- if (strView.is_one_byte()) {
174
- length = strView.length();
175
- data = (char *) strView.data8();
176
177
- return;
178
- }
179
180
- #endif
+ /* StringView path is Latin-1, not Utf-8 */
181
182
// Fallback
183
length = string->Utf8Length(isolate);
0 commit comments