I guess if I had had warning turned on to tell me I was referencing a
free var, it would have been
a clue.



On Mon, Dec 15, 2008 at 4:48 PM, P T Withington <[email protected]> wrote:
> Don is actively working on fixing this... or fixing `this`, I guess I should
> say!  Needless to say, it is annoying!
>
> On 2008-12-15, at 16:41EST, Henry Minsky wrote:
>
>> I was tearing out my hair over a bug today, which ended up having the
>> symptom that the loadable libraries worked
>> in swf8, but only if the library was named "lib".
>>
>> I traced it down to this code in the kernel
>>
>>
>>   function $lzc$set_libname(val) {
>>       this.lib = LzLibrary.findLibrary(val);
>>       lib.loadfinished();
>>   }
>>
>> The binding of 'lib' was referencing a global, which would only be
>> bound to the library object if it happened to be named
>> 'lib', which it was in all of the unit tests!
>>
>>
>> --
>> Henry Minsky
>> Software Architect
>> [email protected]
>
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to