From c4e6e4875620c889f9b217a531be5686331d0882 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 19 Jun 2017 03:22:48 +0300 Subject: [PATCH] tweaking... Signed-off-by: Alex A. Naanou --- features.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/features.js b/features.js index 95c55cb..31a0760 100755 --- a/features.js +++ b/features.js @@ -1143,11 +1143,10 @@ var FeatureSetProto = { // ...we need to do this on the build stage to include correct // deps and suggesntions... var exclusive = {} - var _exclusive = {} - // NOTE: we do not need loop detection active here... - Object.keys(expand('exclusive', all, _exclusive)) + all + .filter(function(f){ return !!that[f].exclusive }) .forEach(function(k){ - (_exclusive[k] || []) + (that[k].exclusive || []) .forEach(function(e){ exclusive[e] = (exclusive[e] || []).concat([k]) }) }) @@ -1289,8 +1288,8 @@ var FeatureSetProto = { // // NOTE: this requires the list to be ordered from high to low // priority, i.e. the same order they should be loaded in... + // NOTE: dependency loops will throw this into and "infinite" loop... // - // XXX dependency loops will throw this into and infinite loop... // XXX need a better loop detection strategy... var loop_limit = list.length do {