Alexander Rose 3 years ago
parent
commit
1aec37dd05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-script/language/parser.ts

+ 1 - 1
src/mol-script/language/parser.ts

@@ -118,7 +118,7 @@ namespace Language {
                 while (i < _i && nodes[i].kind === 'comment') { i++; }
                 if (i >= _i) throw new Error(`There must be a value foolowed a named arg ':${name}'.`);
                 if (nodes[i].kind === 'comment') throw new Error('Invalid expression');
-                args[name] = visitExpr(nodes[i]);
+                args[name] = visitExpr(nodes[i] as ASTNode.ExpressionWithoutComment);
                 if (isNaN(+name)) allNumeric = false;
             } else {
                 args[pos++] = visitExpr(n);