I'm trying to upgrade a working Electron app from 5 to 6 which has introduced a breaking change...
error C2664: 'v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>,uint32_t)': cannot convert argument 1 from 'v8::MaybeLocal<v8::String>' to 'v8::Local<v8::Value>'
...compiling the following code.
Isolate* isolate = info.GetIsolate();
Local<Object> group = Local<Object>::Cast(info[0]);
Local<Array> A = Local<Array>::Cast(group->Get(String::NewFromUtf8(isolate,"A"))); <<-- Error here
Local<Array> B = Local<Array>::Cast(group->Get(String::NewFromUtf8(isolate,"B"))); << Same error here
Erroring lines are e.g. 113/114 in this file if more context would help
I've found some suggestions, e.g. that probably come close but C++ is totally alien to me and I've spent too long trying to do this already. I expect the fix will be really easy to someone who knows C++ and it'll be much appreciated!