Skip to content

Commit

Permalink
Merge pull request #402 from ilyanew/rename-variable
Browse files Browse the repository at this point in the history
Update es6.typed.array-buffer.js
  • Loading branch information
zloirock authored May 14, 2018
2 parents 167408c + 99cd4e0 commit 1fa9e74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/es6.typed.array-buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ $export($export.P + $export.U + $export.F * require('./_fails')(function () {
if ($slice !== undefined && end === undefined) return $slice.call(anObject(this), start); // FF fix
var len = anObject(this).byteLength;
var first = toAbsoluteIndex(start, len);
var final = toAbsoluteIndex(end === undefined ? len : end, len);
var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first));
var fin = toAbsoluteIndex(end === undefined ? len : end, len);
var result = new (speciesConstructor(this, $ArrayBuffer))(toLength(fin - first));
var viewS = new $DataView(this);
var viewT = new $DataView(result);
var index = 0;
while (first < final) {
while (first < fin) {
viewT.setUint8(index++, viewS.getUint8(first++));
} return result;
}
Expand Down

0 comments on commit 1fa9e74

Please sign in to comment.