On 2010-05-19, at 18:41, André Bargull wrote:

> 3) validateReferenceDependencies() is only needed in contextmenu.js, because 
> it's compiled with the -g option. Is this necessary at all? It seems to be 
> more correct to remove the -g option when compiling contextmenu.lzx

This actually points up a bug in the .lzo compiler:

The reason I suggested using -g is to preserve the source line numbers in the 
.lzo, so that when you compile a debug LFC you will get accurate backtraces (to 
the LZX source, rather than to the compressed .lzs source).

The bug is, if the .lzo compiler is inserting code that only applies in $debug 
mode, it must wrap it in a `if ($debug) { ... }` so that it will be correctly 
elided from a non-debug compile.



Reply via email to