Skip to content

Commit

Permalink
Name String.{raw,fromCodePoint} for better debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 20, 2014
1 parent 8743d8d commit 5cbfdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es6-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@
}());

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

raw: function (callSite) { // raw.length===1
raw: function raw(callSite) { // raw.length===1
var cooked = ES.ToObject(callSite, 'bad callSite');
var rawValue = cooked.raw;
var raw = ES.ToObject(rawValue, 'bad raw value');
Expand Down

0 comments on commit 5cbfdfd

Please sign in to comment.