diff --git a/packages/behavior/context/traversal-compiler.js b/packages/behavior/context/traversal-compiler.js index 8f0a10e..5b5f68a 100644 --- a/packages/behavior/context/traversal-compiler.js +++ b/packages/behavior/context/traversal-compiler.js @@ -41,16 +41,12 @@ export class TraversalCompiler { this.traversal = traversal; } - allocateLiteral(literal) { - return this.allocateSymbol(JSON.stringify(literal.value)); - } - allocateItem(item) { switch (item.constructor.type()) { case 'traversal': return this.allocateTraversal(item); case 'literal': - return new Symbol(item.value); + return new Symbol(JSON.stringify(item.value)); } }