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 dc22890 commit ca86c93Copy full SHA for ca86c93
src/node_buffer.cc
@@ -721,11 +721,11 @@ void StringWrite(const FunctionCallbackInfo<Value>& args) {
721
}
722
723
void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
724
- Environment* env = Environment::GetCurrent(args);
725
CHECK(args[0]->IsString());
726
727
// Fast case: avoid StringBytes on UTF8 string. Jump to v8.
728
- args.GetReturnValue().Set(args[0].As<String>()->Utf8Length(env->isolate()));
+ args.GetReturnValue().Set(
+ args[0].As<String>()->Utf8Length(args.GetIsolate()));
729
730
731
uint32_t FastByteLengthUtf8(
0 commit comments