« get me outta code hell

data, test: WIP tests for compositeFrom - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
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
commit8bcae16b391762f6b533654ec06c3bf0c8770d35 (patch)
treea165a898f6cd4213c786e3c52e25901e5b16b224 /src/data/things
parent7f7c50e7976bebc937c302638cade5e1fd543ff4 (diff)
data, test: WIP tests for compositeFrom
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/composite.js6
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;