We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b879c1e commit 203fa63Copy full SHA for 203fa63
src/util-inl.h
@@ -186,10 +186,9 @@ inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
186
inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
187
const unsigned char* data,
188
int length) {
189
- return v8::String::NewFromOneByte(isolate,
190
- reinterpret_cast<const uint8_t*>(data),
191
- v8::NewStringType::kNormal,
192
- length).ToLocalChecked();
+ return v8::String::NewFromOneByte(
+ isolate, data, v8::NewStringType::kNormal, length)
+ .ToLocalChecked();
193
}
194
195
void SwapBytes16(char* data, size_t nbytes) {
0 commit comments