Skip to content

ObserverCallbacks continues growing with dead callback #18

Open
@naqtn

Description

@naqtn

Object.observe() appends the callback to [[ObserverCallbacks]] .
On the other hand, Object.unobserve() does not care about [[ObserverCallbacks]] .
Then [[ObserverCallbacks]] continues growing big with unused callback while the system runs.

I implemented current specification straight forward, then I encountered this problem.

I think Object.unobserve() should remove it.
Or, somewhere in delivering steps (the end of AllChangeRecords ?) might be better point.
because records in [[PendingChangeRecords]] could remain if Object.unobserve() immediately removes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions