facebookarchive/prepack

Make maps and sets more usuable

Open

#1,047 opened on 2017年10月4日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (520 forks)batch import
abstractdesign neededdo-not-reapenhancementhelp wantedlevel 4 (hard)priority: lowtest needed

Repository metrics

Stars
 (14,268 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

Map, Set, WeakMap and WeakSet are all implemented by doing linear searches of an array of key values. The key values are compared with a routine that requires concrete values. Comparing abstract values is quite a bit more challenging, since more than one match may be present, each with different conditions. Some of these conditions can be removed by refining the abstract keys with the current paths, but others will have to be dealt with by returning a result which is a conditional abstract value.

コントリビューターガイド