From 1c372188de930d7e4134eec503174a595c3d1b23 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Wed, 3 Mar 2021 09:58:05 -0800 Subject: [PATCH] Fix tests --- core/keyboard_nav/ast_node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/keyboard_nav/ast_node.js b/core/keyboard_nav/ast_node.js index e7d61750c..f1102143e 100644 --- a/core/keyboard_nav/ast_node.js +++ b/core/keyboard_nav/ast_node.js @@ -145,10 +145,10 @@ Blockly.ASTNode.createFieldNode = function(field) { * @return {Blockly.ASTNode} An AST node pointing to a connection. */ Blockly.ASTNode.createConnectionNode = function(connection) { - var type = connection.type; if (!connection) { return null; } + var type = connection.type; if (type == Blockly.connectionTypes.INPUT_VALUE) { return Blockly.ASTNode.createInputNode(connection.getParentInput()); } else if (type == Blockly.connectionTypes.NEXT_STATEMENT &&