2 Jul 15:22
For Review: Change 20070702-ptw-D Summary: Preserve Debug.printLength when overriding
P T Withington <ptw <at> pobox.com>
2007-07-02 13:22:03 GMT
2007-07-02 13:22:03 GMT
Change 20070702-ptw-D by ptw <at> dueling-banjos.local on 2007-07-02
09:05:57 EDT
in /Users/ptw/OpenLaszlo/legals
for http://svn.openlaszlo.org/openlaszlo/branches/legals
Summary: Preserve Debug.printLength when overriding
Bugs Fixed:
LPP-4234 'DHTML Debug.inspect clobbers printLength'
Technical Reviewer: ben (pending)
QA Reviewer: frisco (pending)
Details:
Guard with a try/catch. Also, move length computation out of
object test so length will be displayed for strings.
Tests:
ant lztest, smokecheck
lzx> Debug.printLength = 24
24
lzx> "A long string that will be abbreviated"
«string(38)| 'A l...»
lzx> Debug.inspect('A long string that will be abbreviated')
'A long string that will be abbreviated'
«string(38)| 'A l...»
lzx> Debug.printLength
24
lzx>
(Continue reading)
RSS Feed