Closed Bug 1284684 Opened 8 years ago Closed 8 years ago

js == doesn't always compare correctly in debugger or in browser

Categories

(DevTools :: Debugger, defect, P3)

47 Branch
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jmichae3, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 6.0; rv:47.0) Gecko/20100101 Firefox/47.0
Build ID: 20160623154057

Steps to reproduce:

break at time-diff.html line 246
break at DTime.js line 2841
http://Jesusnjim.com/calculators/time-diff.html#dtadtime


Actual results:

if (arr[0]==0) evaluated true with arr[0] having the value 4 in that element of the Array.


Expected results:

should not have been allowed to enter any of the if statements
I am trying to fix the bugs. just debug in-place.
OS: Unspecified → Windows Vista
Hardware: Unspecified → x86
apparently not my choice to change hardware or OS in bugzilla form
OS: Windows Vista → Unspecified
Hardware: x86 → Unspecified
How to hit those breakpoints?
Which button to click?  What value should I enter to which textboxes?
Flags: needinfo?(jmichae3)
it's live. just hit F5 and the debugger will start.
Setting those breakpoints and reloading the page doesn't hit them.

are those line numbers correct?

DTime.js:2841
>                    if (""===reststr) {

time-diff.html:246
> <input type="button" value="Set for 1 yr - 2 wks interval"      onclick="setidval('is1','0 millennia 0 centuries 1 yr 0 months -2 wks 0 ww 0 days 00:00:00.000');calc1();">
Component: Untriaged → Developer Tools: Debugger
Priority: -- → P3
Closing this as incomplete due to lack of information from the reporter.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(jmichae3)
Resolution: --- → INCOMPLETE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.