Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
5.15.2
Description
QJSEngine engine;
QJSValue result = engine.evaluate(QStringLiteral("Array.prototype.map.call(undefined, function (a) {return a; } );"));
qDebug() << result.toString();
Results in
"TypeError: Value is undefined and could not be converted to an object"
I believe that this is not correct. The expected behavior is that an undefined this parameter is converted to the global object unless strict mode is enabled.
Attachments
Issue Links
- relates to
-
QBS-913 QtScript dependency needs to be removed
- Closed