From 3bf8dd44cc817b6f5d785bc72d18d5b52dc29ad5 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 30 Apr 2019 20:45:54 -0500 Subject: [PATCH] fix: only traversal needs to be dependent of firstSymbol --- packages/behavior/context/traversal-compiler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {