Skip to content

Commit

Permalink
Merge pull request #19459 from DefinitelyMaybe/src/polyfills
Browse files Browse the repository at this point in the history
ES6 (let&const): src/polyfills
  • Loading branch information
mrdoob authored May 26, 2020
2 parents cd97872 + f73739c commit a84b7df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ if ( Object.assign === undefined ) {

}

var output = Object( target );
const output = Object( target );

for ( var index = 1; index < arguments.length; index ++ ) {
for ( let index = 1; index < arguments.length; index ++ ) {

var source = arguments[ index ];
const source = arguments[ index ];

if ( source !== undefined && source !== null ) {

for ( var nextKey in source ) {
for ( const nextKey in source ) {

if ( Object.prototype.hasOwnProperty.call( source, nextKey ) ) {

Expand Down

0 comments on commit a84b7df

Please sign in to comment.