| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6735585 commit 42729f0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -359,7 +359,7 @@ v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context, | |||
| 359 | 359 | v8::MaybeLocal<v8::Value> ToV8Value(v8::Local<v8::Context> context, | |
| 360 | 360 | std::u16string_view str, | |
| 361 | 361 | v8::Isolate* isolate) { | |
| 362 | - if (isolate == nullptr) isolate = context->GetIsolate(); | ||
| 362 | + if (isolate == nullptr) isolate = v8::Isolate::GetCurrent(); | ||
| 363 | 363 | if (str.length() >= static_cast<size_t>(v8::String::kMaxLength)) | |
| 364 | 364 | [[unlikely]] { | |
| 365 | 365 | // V8 only has a TODO comment about adding an exception when the maximum | |
| Back | FazBrowse Home | New Git URL |
0 commit comments