diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-09-23 20:24:08 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-23 20:24:32 -0300 |
commit | 8bcae16b391762f6b533654ec06c3bf0c8770d35 (patch) | |
tree | a165a898f6cd4213c786e3c52e25901e5b16b224 /src | |
parent | 7f7c50e7976bebc937c302638cade5e1fd543ff4 (diff) |
data, test: WIP tests for compositeFrom
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/composite.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js index da2848f8..c0f0ab0b 100644 --- a/src/data/things/composite.js +++ b/src/data/things/composite.js @@ -752,6 +752,9 @@ export function templateCompositeFrom(description) { templateCompositeFrom.symbol = Symbol(); +export const continuationSymbol = Symbol.for('compositeFrom: continuation symbol'); +export const noTransformSymbol = Symbol.for('compositeFrom: no-transform symbol'); + export function compositeFrom(description) { const {annotation} = description; @@ -1070,9 +1073,6 @@ export function compositeFrom(description) { return {continuation, continuationStorage}; } - const continuationSymbol = Symbol.for('compositeFrom: continuation symbol'); - const noTransformSymbol = Symbol.for('compositeFrom: no-transform symbol'); - function _computeOrTransform(initialValue, continuationIfApplicable, initialDependencies) { const expectingTransform = initialValue !== noTransformSymbol; |