From f7fff7d35e76ef842187fc557d94ce1f42ede741 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 6 Mar 2015 23:13:03 +1100 Subject: [PATCH] add alternate to list of STATEMENT_OR_BLOCK_KEYS - fixes #955 --- src/babel/types/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel/types/index.js b/src/babel/types/index.js index 76afc3f6f4..cfa4dea0e5 100644 --- a/src/babel/types/index.js +++ b/src/babel/types/index.js @@ -34,7 +34,7 @@ function registerType(type, skipAliasCheck) { }; } -t.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body"]; +t.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"]; t.NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String"]; t.FOR_INIT_KEYS = ["left", "init"];