Add a checkState() call for clarity and consistency.
At the point this is called, function parameters should be either NAME or REST nodes.
@@ -161,6 +161,7 @@ class FunctionArgumentInjector {
Node array = IR.arraylit();
argMap.put(fnParam.getOnlyChild().getString(), array);
} else {
+ checkState(fnParam.isName(), fnParam);
Node srcLocation = callNode;
argMap.put(fnParam.getString(), NodeUtil.newUndefinedNode(srcLocation));
}
