[API] Ensure uniqueness of impls when rebundling

Avoids redundant argument names in generated JS files.
This commit is contained in:
Victor Woeltjen 2016-01-07 15:06:30 -08:00
parent 5bbbdd4e50
commit 29acbfdb9c

View File

@ -16,7 +16,12 @@ function indent(str, depth) {
function findImpls(bundleContents) {
return _(bundleContents.extensions || {})
.map().flatten().pluck('implementation').filter().value();
.map()
.flatten()
.pluck('implementation')
.filter()
.uniq()
.value();
}
function toIdentifier(impl) {