Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.9.1
-
None
-
ec2388860141dcde6387f4cba482955de648e5aa, b067e607f1cfd5bee94710d6a6a7c2fa048e9b23
Description
The example in the documentation uses two arguments for call while only one is permitted
QJSValue fun = myEngine.evaluate("(function(a, b) { return a + b; })");QJSValueList args;args << 1 << 2;QJSValue threeAgain = fun.call(QJSValue(), args);
While it should be
QJSValue fun = myEngine.evaluate("(function(a, b) { return a + b; })");QJSValueList args;args << 1 << 2;QJSValue threeAgain = fun.call(args);