Skip to content

Commit

Permalink
Better naming of unused arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 3, 2015
1 parent c01bc8a commit 4bb89b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@
}());

defineProperties(String, {
fromCodePoint: function fromCodePoint(_) { // length = 1
fromCodePoint: function fromCodePoint(codePoints) {
var result = [];
var next;
for (var i = 0, length = arguments.length; i < length; i++) {
Expand All @@ -487,7 +487,7 @@
return result.join('');
},

raw: function raw(callSite) { // raw.length===1
raw: function raw(callSite) {
var cooked = ES.ToObject(callSite, 'bad callSite');
var rawValue = cooked.raw;
var rawString = ES.ToObject(rawValue, 'bad raw value');
Expand Down Expand Up @@ -521,7 +521,7 @@
// https://bugzilla.mozilla.org/show_bug.cgi?id=1062484
if (String.fromCodePoint.length !== 1) {
var originalFromCodePoint = Function.apply.bind(String.fromCodePoint);
defineProperty(String, 'fromCodePoint', function (_) { return originalFromCodePoint(this, arguments); }, true);
defineProperty(String, 'fromCodePoint', function fromCodePoint(codePoints) { return originalFromCodePoint(this, arguments); }, true);
}

var StringShims = {
Expand Down

0 comments on commit 4bb89b2

Please sign in to comment.