| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 66f2c60 commit e7e8256
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -736,11 +736,11 @@ void StringWrite(const FunctionCallbackInfo<Value>& args) { | |||
| 736 | 736 | } | |
| 737 | 737 | ||
| 738 | 738 | void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) { | |
| 739 | - Environment* env = Environment::GetCurrent(args); | ||
| 740 | 739 | CHECK(args[0]->IsString()); | |
| 741 | 740 | ||
| 742 | 741 | // Fast case: avoid StringBytes on UTF8 string. Jump to v8. | |
| 743 | - args.GetReturnValue().Set(args[0].As<String>()->Utf8Length(env->isolate())); | ||
| 742 | + args.GetReturnValue().Set( | ||
| 743 | + args[0].As<String>()->Utf8Length(args.GetIsolate())); | ||
| 744 | 744 | } | |
| 745 | 745 | ||
| 746 | 746 | uint32_t FastByteLengthUtf8(Local<Value> receiver, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments