[Laszlo-dev] debug eval in swf10 of function expression
Henry Minsky
hminsky at laszlosystems.com
Tue Nov 24 08:29:23 PST 2009
If I remove that
with (Debug.environment) {
}
wrapper, then it compiles OK....
On Tue, Nov 24, 2009 at 11:20 AM, Henry Minsky <hminsky at laszlosystems.com>wrote:
> If you type this to the debug evaluator
>
> (function (x) { return x.foo })(3)
>
> It compiles down to this code, which is then linked to the debug LFC, and I
> do not understand why it complains about
> "Error" being unknown. "lz" and "$lzsc$runtime" are declared globals in the
> LFC, so I don't see why it
> complains about them either.
>
>
> package {
>
> import flash.display.*;
> import flash.events.*;
> import flash.utils.*;
> import flash.text.*;
> import flash.system.*;
> import flash.net.*;
> import flash.ui.*;
> import flash.external.*;
> public class DebugEvaluate extends DebugExec {
> override public function runToplevelDefinitions () {;
> (function () {
> try {
> try {
> with (Debug.environment) {
> Debug.displayResult((function (x_$1) {
> try {
> return x_$1.foo
> }
> catch ($lzsc$e) {
> if ($lzsc$e is Error && $lzsc$e
> !== lz["$lzsc$thrownError"]) {
>
> $lzsc$runtime.$reportException("[CommonGenerator.parseFragment]", 11,
> $lzsc$e)
> } else {
> throw $lzsc$e
> }}}
> )(3))
> }}
> catch (e_$1) {
> Debug.displayResult(e_$1)
> }}
> catch ($lzsc$e) {
> if ($lzsc$e is Error && $lzsc$e !==
> lz["$lzsc$thrownError"]) {
>
> $lzsc$runtime.$reportException("[CommonGenerator.parseFragment]", 8,
> $lzsc$e)
> } else {
> throw $lzsc$e
> }}}
> )();
> }
> }
> }
>
>
> Which gets these flex compiler errors
>
> Loading configuration file
> /Users/hqm/openlaszlo/trunk6/WEB-INF/frameworks/flex-config.xml
> /Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/Users/hqm/openlaszlo/trunk6/test/build/foo.lzx/DebugEvaluate.as(22):
> col: 16 Error: Access of undefined property Error.
>
> if ($lzsc$e is Error && $lzsc$e !== lz["$lzsc$thrownError"]) {
> ^
>
> /Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/Users/hqm/openlaszlo/trunk6/test/build/foo.lzx/DebugEvaluate.as(22):
> col: 37 Error: Access of undefined property lz.
>
> if ($lzsc$e is Error && $lzsc$e !== lz["$lzsc$thrownError"]) {
> ^
>
> /Users/hqm/openlaszlo/lib/jakarta-tomcat-5.0.30/temp/lzswf9/Users/hqm/openlaszlo/trunk6/test/build/foo.lzx/DebugEvaluate.as(23):
> col: 1 Error: Access of undefined property $lzsc$runtime.
>
> $lzsc$runtime.$reportException("[CommonGenerator.parseFragment]", 11,
> $lzsc$e)
> ^
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20091124/721a9b80/attachment.html
More information about the Laszlo-dev
mailing list