[Laszlo-checkins] r11297 - openlaszlo/trunk/WEB-INF/lps/lfc/debugger
ptw@openlaszlo.org
ptw at openlaszlo.org
Wed Oct 1 10:56:59 PDT 2008
Author: ptw
Date: 2008-10-01 10:56:58 -0700 (Wed, 01 Oct 2008)
New Revision: 11297
Modified:
openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
Log:
Change 20080926-ptw-7 by ptw at dueling-banjos.local on 2008-09-26 11:30:01 EDT
in /Users/ptw/OpenLaszlo/honey-dew
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Get your this right
Bugs Fixed:
LPP-7064 Debug.bugReport errors trying to print stack
Technical Reviewer: anyone (pending)
Details:
Need to close over this in the stack mapper
Tests:
Debug.bugReport() no longer errs
Modified: openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs 2008-10-01 17:44:35 UTC (rev 11296)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/debugger/LzDebug.lzs 2008-10-01 17:56:58 UTC (rev 11297)
@@ -1339,13 +1339,14 @@
this.versionInfo();
this.format("\nERROR MESSAGE: %s", error);
this.format("\nERROR BACKTRACE:");
+ var that = this;
error.backtrace.map(
function (frame) {
- this.format("\n%w", frame);
- this.format("\n this: %#w", inspect(frame['this'], true));
+ that.format("\n%w", frame);
+ that.format("\n this: %#w", inspect(frame['this'], true));
var args = frame.arguments;
for (var i = 0; i < args.length; i++) {
- this.format("\n arg %2d: %#w", i, inspect(args[i], verbose));
+ that.format("\n arg %2d: %#w", i, inspect(args[i], verbose));
}
});
var keys = [];
More information about the Laszlo-checkins
mailing list