react-native-macos/Libraries/vendor
James Ide b76acd3f42 Fix sparse array handling in `EventEmitter#listeners()` (#24546)
Summary:
Fixes a regression in 1f8b46a2fc. The internal subscription vendor uses a sparse array to track listeners, which makes listener removal fast. When querying listeners, the sparse entries need to be removed. `Array#filter` is a built-in way to do this -> linked to the JS spec, which explains this.

[General] [Fixed] - Fixed sparse array handling in `EventEmitter#listeners()`
Pull Request resolved: https://github.com/facebook/react-native/pull/24546

Differential Revision: D15044790

Pulled By: cpojer

fbshipit-source-id: 0f1301618739357b4a0f5378b9584efe74f0f09a
2019-04-23 02:51:16 -07:00
..
core Do not overwrite Object.freeze 2019-04-04 10:53:34 -07:00
document/selection Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
emitter Fix sparse array handling in `EventEmitter#listeners()` (#24546) 2019-04-23 02:51:16 -07:00