diff --git a/js/js.translator/src/org/jetbrains/k2js/translate/expression/FunctionTranslator.java b/js/js.translator/src/org/jetbrains/k2js/translate/expression/FunctionTranslator.java index 07da21232a2..9076fb0c937 100644 --- a/js/js.translator/src/org/jetbrains/k2js/translate/expression/FunctionTranslator.java +++ b/js/js.translator/src/org/jetbrains/k2js/translate/expression/FunctionTranslator.java @@ -85,6 +85,7 @@ public final class FunctionTranslator extends AbstractTranslator { this.descriptor = getFunctionDescriptor(context.bindingContext(), functionDeclaration); this.functionDeclaration = functionDeclaration; this.functionObject = context().getFunctionObject(descriptor); + assert this.functionObject.getParameters().isEmpty(); this.functionBody = functionObject.getBody(); //NOTE: it's important we compute the context before we start the computation this.functionBodyContext = getFunctionBodyContext();