Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
4.6.0
-
None
Description
QScriptEngine eng; QScriptValue str = QScriptValue(&eng, "bar"); eng.evaluate("o = new Object; " "o.__defineGetter__('foo', function() { throw new Error('get foo') }); " "o.__defineSetter__('foo', function() { throw new Error('set foo') }); "); QScriptValue object = eng.evaluate("o"); QScriptValue ret = object.property("foo"); qWarning() << ret.toString();
With Qt 4.5, the above program prints "Error: get foo", but since 4.6, it prints "null".
Attachments
Issue Links
- is required for
-
QTBUG-16571 Resolve QtScript behavior that reflects implementation of old ("classic") back-end
-
- Closed
-