diff --git a/packages/behavior/context/traversal-compiler.js b/packages/behavior/context/traversal-compiler.js index 5b5f68a..8b4d6cc 100644 --- a/packages/behavior/context/traversal-compiler.js +++ b/packages/behavior/context/traversal-compiler.js @@ -95,7 +95,9 @@ export class TraversalCompiler { let valueSymbol; if (traversal.value) { valueSymbol = this.allocateItem(traversal.value); - currentSymbol.dependencies.push(valueSymbol); + if ('traversal' === traversal.value.constructor.type()) { + currentSymbol.dependencies.push(valueSymbol); + } } // Allocate steps. for (const i in rest) {