Closed
Bug 547827
Opened 15 years ago
Closed 15 years ago
JavaScript strict warning: modules/util.js, line 617: reference to undefined property thisObj[name]
Categories
(Firefox :: Sync, defect)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
1.1
People
(Reporter: zpao, Assigned: zpao)
Details
Attachments
(1 file)
|
745 bytes,
patch
|
Mardak
:
review+
|
Details | Diff | Splinter Review |
Not sure how much we really care about these warnings, but I don't see any harm in fixing them...
In the case when thisObj[name] doesn't exist, we get a JS strict warning. So we can just check if the property exists first before seeing if it's an instance of nsITimer.
| Assignee | ||
Comment 1•15 years ago
|
||
Added: name in thisObj &&
Comment 2•15 years ago
|
||
Comment on attachment 428286 [details] [diff] [review]
Patch v0.1
Curious, do you see other undefined property warnings? I think deferGetSet triggers them, but some callers also expect |undefined|.
Attachment #428286 -
Flags: review?(edilee) → review+
| Assignee | ||
Comment 3•15 years ago
|
||
(In reply to comment #2)
> Curious, do you see other undefined property warnings? I think deferGetSet
> triggers them, but some callers also expect |undefined|.
Yea, there's one in ClientStore.getInfo (related to wiping) which I'm looking at now.
| Assignee | ||
Comment 4•15 years ago
|
||
Pushed http://hg.mozilla.org/labs/weave/rev/b53a4e63db18
Check that name is a property of thisObj before trying to access it.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.1
Updated•7 years ago
|
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in
before you can comment on or make changes to this bug.
Description
•