Skip to content

Commit

Permalink
use a regular for-loop intead of for-of
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Jan 29, 2019
1 parent 3624a14 commit 86db24c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/legacy/class.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ const excludeOnBehaviors = Object.assign({
function copyProperties(source, target, excludeProps) {
const noAccessors = source._noAccessors;
const propertyNames = Object.getOwnPropertyNames(source);
for (let p of propertyNames) {
for (let i = 0; i < propertyNames.length; i++) {
let p = propertyNames[i];
if (p in excludeProps) {
continue;
}
Expand Down

0 comments on commit 86db24c

Please sign in to comment.