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

RESOLVED INCOMPLETE

Status

P3
normal
RESOLVED INCOMPLETE
3 years ago
6 months ago

People

(Reporter: jmichae3, Unassigned)

Tracking

47 Branch

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

3 years ago
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
(Reporter)

Comment 1

3 years ago
I am trying to fix the bugs. just debug in-place.
OS: Unspecified → Windows Vista
Hardware: Unspecified → x86
(Reporter)

Comment 2

3 years ago
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)
(Reporter)

Comment 4

3 years ago
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
Last Resolved: 2 years ago
Flags: needinfo?(jmichae3)
Resolution: --- → INCOMPLETE

Updated

6 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.