[Laszlo-dev] 0 divided by 0 is...
P T Withington
ptw at openlaszlo.org
Fri Jun 29 13:19:54 PDT 2007
Filed with Mozilla as https://bugzilla.mozilla.org/show_bug.cgi?
id=386367
On 2007-06-29, at 15:53 EDT, P T Withington wrote:
> Rhino says false for your test case.
>
> Boolean(NaN) => false in swf, firefox, and rhino for me. This is
> what the spec says too.
>
> I tried `javascript:if(0/0) alert('true'); else alert('false')` in
> IE6, Opera, Firefox, and Safari. IE6 and Opera say false, Firefox
> and Safari say true.
>
> I think that Safari and Firefox have a bug.
>
> On 2007-06-28, at 19:26 EDT, Benjamin Shine wrote:
>
>>
>> Another place where javascript in swf8 and dhtml don't match up:
>>
>> In dhtml,
>> lzx> if (0/0) Debug.write("it's true"); else Debug.write("it's
>> false");
>> yields.... it's true
>>
>> In swf8, that same statement yields
>> it's false
>>
>> This was revealed with some nifty tucker-ish expected failures in
>> the smokecheck.
>>
>> And by the way, there *was* a non-expected error lurking in all
>> the expected errors in the smokecheck.
>>
>> ...i'm fixing...
>>
>>
>>
>> Benjamin Shine
>> Software Engineer, Open Laszlo / Laszlo Systems
>> ben at laszlosystems.com
>>
>>
>>
>
More information about the Laszlo-dev
mailing list