refactor: misc cleanup (#10046)

This commit is contained in:
Victor Berchet
2016-07-13 11:01:32 -07:00
committed by GitHub
parent 4a965052f9
commit 42b0c1d8a2
21 changed files with 91 additions and 159 deletions

View File

@ -63,7 +63,7 @@ function createDynamicClass(
};
});
_classStmt.methods.forEach(function(method: o.ClassMethod) {
var paramNames = method.params.map(param => param.name);
const paramNames = method.params.map(param => param.name);
// Note: use `function` instead of arrow function to capture `this`
propertyDescriptors[method.name] = {
writable: false,