Closed matthewp closed 9 years ago
Yes we will need a way to iterate. It's on my todo list. I'll leave this issue open till it's specified. Thanks!
:+1:
Solved by https://github.com/whatwg/loader/pull/65.
for (let entry of System.loader.registry) {
...
})
Excellent. Your work is appreciated :smile:
Thanks @caridy !
https://whatwg.github.io/loader/#registry-prototype-@@iterator, while GetRegistryEntry
defines what will be accesible thru the iteration.
Note: since registry is not an iterator, it implements @@iterator
, you might get into racing conditions.
In this comment @dherman you mentioned that to share registries between loaders you could simply copy over the entries. I agree that this is a good natural way to share. However to do that you would need to be able to iterate over the entries. What do you think about having the Loader implement
@@iterator
so that this can be done?