[Laszlo-checkins] r12994 - openlaszlo/trunk/WEB-INF/lps/lfc/debugger
bargull@openlaszlo.org
bargull at openlaszlo.org
Sat Feb 21 15:47:03 PST 2009
Author: bargull
Date: 2009-02-21 15:47:00 -0800 (Sat, 21 Feb 2009)
New Revision: 12994
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
Log:
Change 20090221-bargull-VAW by bargull at dell--p4--2-53 on 2009-02-21 18:31:09
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix debugger warnings for native flash objects
New Features:
Bugs Fixed: LPP-7703
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Be careful when accessing "hasOwnProperty" or "constructor", it might not be defined for native flash objects.
Tests:
evaluate second expression at LPP-7703, no warnings should appear
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs 2009-02-21 21:35:08 UTC (rev 12993)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs 2009-02-21 23:47:00 UTC (rev 12994)
@@ -857,7 +857,7 @@
// Look for class prototypes
// TODO: [2008-09-17 ptw] constructors are Class's in swf9,
// not Function's.
- if (thing.hasOwnProperty('_dbg_prototype_for')) {
+ if (thing['hasOwnProperty'] is Function && thing.hasOwnProperty('_dbg_prototype_for')) {
debug_name = this.functionName(thing._dbg_prototype_for) + '.prototype';
} else {
// Have to use `in` here, because only our objects will have
@@ -976,8 +976,8 @@
// No pretty for subclasses or non-objects or array-like objects
// that are not Arrays.
var notPretty = indices ?
- (this.isArrayLike(thing) && (thing.constructor !== Array)) :
- (this.isObjectLike(thing) && (thing.constructor !== Object));
+ (this.isArrayLike(thing) && (thing['constructor'] !== Array)) :
+ (this.isObjectLike(thing) && (thing['constructor'] !== Object));
if (notPretty) {
pretty = (! unique);
}
More information about the Laszlo-checkins
mailing list