File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 44### Fixed
55- Make ` Promise.is ` work with promises from old versions of the library (#41 )
66- Make ` Promise.delay ` properly break out of the current loop (#40 )
7+ - Allow upvalues captured by queued callbacks to be garbage collected when the Promise resolves by deleting the queues when the Promise settles (#39 )
78
89## [ 3.0.0] - 2020-08-17
910### Changed
Original file line number Diff line number Diff line change @@ -1292,6 +1292,10 @@ function Promise.prototype:_finalize()
12921292 coroutine.wrap (callback )(self ._status )
12931293 end
12941294
1295+ self ._queuedFinally = nil
1296+ self ._queuedReject = nil
1297+ self ._queuedResolve = nil
1298+
12951299 -- Clear references to other Promises to allow gc
12961300 if not Promise .TEST then
12971301 self ._parent = nil
You can’t perform that action at this time.
0 commit comments