useful assertion in js backend

This commit is contained in:
Stepan Koltsov
2012-04-09 20:45:31 +04:00
parent 03e78e8cc3
commit 19d7539a45
@@ -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();