History

Work on porting laser pointers to local entities, removal of LaserPointer JS API

ksuprynowicz committed 3 years ago

Commit 2a2cf381 parent 4d0303313 files · +311 −385Browse files

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

Unified · Split

libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp+5−1
@@ -1051,7 +1051,11 @@ void ScriptMethodV8Proxy::call(const v8::FunctionCallbackInfo<v8::Value>& argume · 1050 unmodified lines
10511051
10521052 for (int arg = 0; arg < numArgs; ++arg) {
10531053 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+ }
10551059 v8::Local<v8::Value> argVal = arguments[arg];
10561060 if (methodArgTypeId == scriptValueTypeId) {
10571061 qScriptArgLists[i].append(ScriptValue(new ScriptValueV8Wrapper(_engine, V8ScriptValue(_engine, argVal))));