There was an error while loading. Please reload this page.
1 parent 66f2c60 commit e7e8256Copy full SHA for e7e8256
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