diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-31 16:05:53 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:02:55 -0300 |
commit | f3162203ef1f758d500e065804f9dbe478d0481d (patch) | |
tree | c569e0ea72277407e8c0b4df7249d2ca6bdd7464 /src | |
parent | 5a63b96cfd3d26e4b74ff4c6dfc793aef057f81b (diff) |
data: Thing.composite.from: fix missed step.expose assumptions
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/thing.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/thing.js b/src/data/things/thing.js index 751e168f..d4d7c850 100644 --- a/src/data/things/thing.js +++ b/src/data/things/thing.js @@ -993,7 +993,7 @@ export default class Thing extends CacheableObject { debug(() => color.bright(`begin composition - not transforming`)); } - stepLoop: for (let i = 0; i < steps.length; i++) { + for (let i = 0; i < steps.length; i++) { const step = steps[i]; const isBase = i === steps.length - 1; @@ -1021,8 +1021,8 @@ export default class Thing extends CacheableObject { const result = (callingTransformForThisStep - ? step.expose.transform(valueSoFar, filteredDependencies, continuation) - : step.expose.compute(filteredDependencies, continuation)); + ? expose.transform(valueSoFar, filteredDependencies, continuation) + : expose.compute(filteredDependencies, continuation)); if (result !== continuationSymbol) { debug(() => [`step #${i+1} - result: exit (inferred) ->`, result]); |