Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.11
-
None
-
a1fd2866465c4be2815a6ada776867b3d4efc557
Description
QJSEngine::evaluate changed behaviour from 5.10 to 5.11 for strict mode scripts:
QJSValue def = engine.evaluate("'use strict'; function foo() { return 42 }"); QJSValue globalObject = engine.globalObject(); QJSValue foo = globalObject.property("foo"); QJSValue use = engine.evaluate("'use strict'; foo()");
Here foo was a function object in 5.10, but is undefined in 5.11. So use will be ReferenceError in 5.11, while it did work in 5.10.
Attachments
Issue Links
- is required for
-
QTBUG-64987 TestScion::dynamic() failed
- Closed
For Gerrit Dashboard: QTBUG-65167 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
214333,3 | Fix QJSEngine::evaluate regression | dev | qt/qtdeclarative | Status: MERGED | -2 | 0 |