Skip to content

Commit

Permalink
add eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
DonutEspresso committed Jan 24, 2017
1 parent 8c03509 commit 769b66f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bind.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

// external modules
var assert = require('assert-plus');
const assert = require('assert-plus');


/**
Expand All @@ -22,9 +22,9 @@ function bind(fn, context, args) {

// working with arguments is a bit hazardous in terms of deopt.
// https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#3-managing-arguments
var partialArgs = new Array(arguments.length);
const partialArgs = new Array(arguments.length);

for (var i = 0; i < partialArgs.length; i++) {
for (let i = 0; i < partialArgs.length; i++) {
partialArgs[i] = arguments[i];
}

Expand Down

0 comments on commit 769b66f

Please sign in to comment.