Showing the changes to libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp (1 of 13 files). Show all
Unified · Split
| @@ -1051,7 +1051,11 @@ void ScriptMethodV8Proxy::call(const v8::FunctionCallbackInfo<v8::Value>& argume · 1050 unmodified lines | ||
| 1051 | 1051 | |
| 1052 | 1052 | for (int arg = 0; arg < numArgs; ++arg) { |
| 1053 | 1053 | int methodArgTypeId = meta.parameterType(arg); |
| 1054 | − Q_ASSERT(methodArgTypeId != QMetaType::UnknownType); | |
| 1054 | + if (methodArgTypeId == QMetaType::UnknownType) { | |
| 1055 | + QString methodName = fullName(); | |
| 1056 | + qCDebug(scriptengine_v8) << "One of the arguments is QMetaType::UnknownType for method " << methodName; | |
| 1057 | + Q_ASSERT(false); | |
| 1058 | + } | |
| 1055 | 1059 | v8::Local<v8::Value> argVal = arguments[arg]; |
| 1056 | 1060 | if (methodArgTypeId == scriptValueTypeId) { |
| 1057 | 1061 | qScriptArgLists[i].append(ScriptValue(new ScriptValueV8Wrapper(_engine, V8ScriptValue(_engine, argVal)))); |