Bug Tracker

Opened 5 years ago

Closed 5 years ago

#12665 closed bug (fixed)

Callbacks objects with "unique" flag will iterate over a function's methods when it is added a second time

Reported by: jaubourg Owned by: jaubourg
Priority: blocker Milestone: 1.8.3
Component: deferred Version: git
Keywords: Cc:
Blocked by: Blocking:

Description

Fiddle

Culprit is too wide a test that will make Callbacks.add iterate over a function that is defined with at least a single parameter and has already been added to the same Callbacks instance.

Reported on github by kselden here.

Change History (2)

comment:1 Changed 5 years ago by jaubourg

Component: unfileddeferred
Milestone: None1.8.3
Owner: set to jaubourg
Priority: undecidedblocker
Status: newassigned

comment:2 Changed 5 years ago by jaubourg

Resolution: fixed
Status: assignedclosed

Do not iterate over functions. Fixes #12665. Unit tests added. Thanks to @kselden for finding the bug.

Changeset: bb38f706463a4d7598505b2f7adf3ed83935f298

Note: See TracTickets for help on using tickets.