I filed a JIRA bug for this behavior at

http://jira.openlaszlo.org/jira/browse/LPP-9061

When there's a free reference in the function expression, the compiler
inserts some debug
wrapper code which is not linking properly for some reason, it can't find
the var 'lz', for example.

Aside from fixing whatever is broken there, I need to make the server at
least return something that tells the user that their eval script code
failed to compile.


On Mon, May 31, 2010 at 5:01 AM, AndrĂ© Bargull <[email protected]>wrote:

> Approved.
>
> (Erroneous) function expressions now show a different behaviour.
> lzx> 42
> 42
> lzx> (function (x) { return x.foo })(3)
> 42
> lzx> (function (x) { return x + 3 })(3)
> 6
>
> So basically the previous result is returned again. It works for valid
> function expressions. See LPP-8633 (debugger eval barfs on function
> expression in swf10) and LPP-8790 (SWF9/10: missing scope for function when
> using debug evaluator).
>
>
>
> On 5/31/2010 3:22 AM, Henry Minsky wrote:
>
>> Change 20100530-hqm-T by [email protected] on 2010-05-30 21:00:47 EDT
>>     in /Users/hqm/openlaszlo/trunk
>>     for http://svn.openlaszlo.org/openlaszlo/trunk
>>
>> Summary: debugger eval broken in swf10
>>
>> New Features:
>>
>> Bugs Fixed: LPP_9059
>>
>> Technical Reviewer: andre
>> QA Reviewer: max
>> Doc Reviewer: (pending)
>>
>> Documentation:
>>
>> Release Notes:
>>
>> Overview:
>>
>>
>>
>> Details:
>>
>> New script compiler API requires as "compileType" property to be passed in
>>
>>
>> Tests:
>>
>> debug eval works in swf10
>> smokecheck in swf10
>>
>>
>> Files:
>> M       WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
>> M       WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
>>
>> Changeset:
>> http://svn.openlaszlo.org/openlaszlo/patches/20100530-hqm-T.tar
>>
>>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to