in /Users/ptw/OpenLaszlo/ringding
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Fix behaviour of attributes with setter _and_ intial value
Bugs Fixed:
LPP-5613 'examples/animation/animation.lzx broken by class compiler
change' (partial)
Technical Reviewer: hqm (pending)
QA Reviewer: max (pending)
Details:
By reverse-engineering, I determined that an attribute with a
setter _and_ and initial value expects to be initially initialized
to `null` (as opposed to `undefined`), and then the setter called
with the actual initial value. This is the source of the
remaining "reference to undefined property" warnings: some
setters expect to be able to _read_ the value of the state
variable, even before it has been given its initial value. <barf />
Also checking in simplification to LzBactrace that takes advantage
of the AS2 back-end implementing try/catch (thanks Don!).
Tests:
animation.lzx no longer gives "reference to undefined property"
errors.
Files:
M WEB-INF/lps/lfc/debugger/LzBacktrace.lzs
M WEB-INF/lps/lfc/core/LzNode.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080318-ptw-i.tar
