Fix types in local var table for destructured variables

This commit is contained in:
Denis Zharkov
2016-09-20 10:36:57 +03:00
parent 0792571256
commit 42e85b07c9
3 changed files with 7 additions and 7 deletions
@@ -504,7 +504,7 @@ public class FunctionCodegen {
if (destructuringVariables == null) continue;
for (VariableDescriptor entry : destructuringVariables) {
Type type = typeMapper.mapType(parameter.getType());
Type type = typeMapper.mapType(entry.getType());
mv.visitLocalVariable(entry.getName().asString(), type.getDescriptor(), null, methodBegin, methodEnd, shift);
shift += type.getSize();
}