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 88ec7c8 commit f89b36eCopy full SHA for f89b36e
src/node_buffer.cc
@@ -736,11 +736,11 @@ void StringWrite(const FunctionCallbackInfo<Value>& args) {
736
}
737
738
void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
739
- Environment* env = Environment::GetCurrent(args);
740
CHECK(args[0]->IsString());
741
742
// Fast case: avoid StringBytes on UTF8 string. Jump to v8.
743
- args.GetReturnValue().Set(args[0].As<String>()->Utf8Length(env->isolate()));
+ args.GetReturnValue().Set(
+ args[0].As<String>()->Utf8Length(args.GetIsolate()));
744
745
746
uint32_t FastByteLengthUtf8(Local<Value> receiver,
0 commit comments