Showing the changes to libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp (1 of 2 files). Show all
Unified · Split
| @@ -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 ok | 163 | //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 | } |