Details
-
Bug
-
Resolution: Invalid
-
P4: Low
-
None
-
4.6.0
-
None
Description
QScriptEngine eng; QScriptContext *ctx = eng.pushContext(); QScriptValue act = ctx->activationObject(); act.setProperty("act", act); eng.evaluate("act.__defineGetter__('x', function() { return 123; })"); qDebug() << eng.evaluate("x").toString();
With Qt 4.5, the above program prints "123", whereas with 4.6, it prints "ReferenceError: Can't find variable: x".
I.e. you can no longer have local variables implemented as getter/setter properties.
Attachments
Issue Links
- is required for
-
QTBUG-16571 Resolve QtScript behavior that reflects implementation of old ("classic") back-end
-
- Closed
-