Closed Bug 568707 Opened 15 years ago Closed 15 years ago

"key is not defined" results in broken form history service

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Mardak, Assigned: Mardak)

Details

Attachments

(1 file)

Sounds like mrbkap and jorendorff know what's going on. We'll need to work around it for the 1.3 release. The exception throws for this reference: http://localhost:8000/file/50ccc820a14a/source/components/FormNotifier.js#l33 But basically the code looks like.. for (let keyval in Iterator(obj)) { let [key, val] = keyval; this[key] = function() { let notify = function() { foo({ bar: key }); }; notify(); }; }
Flags: blocking-weave1.3+
Attached patch v1Splinter Review
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #447880 - Flags: review?(mconnor)
Comment on attachment 447880 [details] [diff] [review] v1 we really need to get unit tests running in prod.
Attachment #447880 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/labs/weave/rev/3be7bbdc48fe Pretend to call a function with "key" to keep it around.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3
Ergh. hg.mozilla.org isn't working, but the link in comment 0 should have been http://hg.mozilla.org/labs/weave/file/50ccc820a14a/source/components/FormNotifier.js#l33
http://hg.mozilla.org/labs/weave/rev/29a97fe177d0 (new url from hg magic) Pretend to call a function with "key" to keep it around.
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.

Attachment

General

Creator:
Created:
Updated:
Size: