History

Fixed crash on starting in VR mode with V8

ksuprynowicz committed 3 years ago

Commit b52fe9a1 parent ceeac402 files · +6 −0Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp+1−0
@@ -163,6 +163,7 @@ ScriptObjectV8Proxy* ScriptObjectV8Proxy::unwrapProxy(const V8ScriptValue& val) · 162 unmodified lines
163 //V8TODO This shouldn't cause problems but I'm not sure if it's ok163 //V8TODO This shouldn't cause problems but I'm not sure if it's ok
164 //v8::HandleScope handleScope(const_cast<v8::Isolate*>(val.constGetIsolate()));164 //v8::HandleScope handleScope(const_cast<v8::Isolate*>(val.constGetIsolate()));
165 auto v8Value = val.constGet();165 auto v8Value = val.constGet();
166 Q_ASSERT(!v8Value.IsEmpty());
166 if (v8Value->IsNullOrUndefined()) {167 if (v8Value->IsNullOrUndefined()) {
167 return nullptr;168 return nullptr;
168 }169 }