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
163163 //V8TODO This shouldn't cause problems but I'm not sure if it's ok
164164 //v8::HandleScope handleScope(const_cast<v8::Isolate*>(val.constGetIsolate()));
165165 auto v8Value = val.constGet();
166+ Q_ASSERT(!v8Value.IsEmpty());
166167 if (v8Value->IsNullOrUndefined()) {
167168 return nullptr;
168169 }