Showing the changes to libraries/script-engine/src/v8/ScriptEngineV8_cast.cpp (1 of 4 files). Show all
Unified · Split
| @@ -375,6 +375,9 @@ bool ScriptEngineV8::castValueToVariant(const V8ScriptValue& v8Val, QVariant& de · 374 unmodified lines | ||
| 375 | 375 | } |
| 376 | 376 | } |
| 377 | 377 | // V8TODO |
| 378 | + errorMessage = QString() + "Conversion failure: " + QString(*v8::String::Utf8Value(_v8Isolate, val->ToDetailString(getConstContext()).ToLocalChecked())) | |
| 379 | + + "to variant. Destination type: " + QMetaType::typeName(destTypeId); | |
| 380 | + qDebug() << errorMessage; | |
| 378 | 381 | Q_ASSERT(false); |
| 379 | 382 | //dest = val->ToVariant(); |
| 380 | 383 | break; |