Permalink
Browse files

Make `String.fromCodePoint.length` equal `1` as per the latest draft

  • Loading branch information...
mathiasbynens committed Jul 15, 2014
1 parent 396674f commit 64774a2a3b542ce77ff3ca36bec029f1cbc7eac0
Showing with 2 additions and 2 deletions.
  1. +1 −1 fromcodepoint.js
  2. +1 −1 tests/tests.js
@@ -12,7 +12,7 @@ if (!String.fromCodePoint) {
}());
var stringFromCharCode = String.fromCharCode;
var floor = Math.floor;
var fromCodePoint = function() {
var fromCodePoint = function(_) {
var MAX_SIZE = 0x4000;
var codeUnits = [];
var highSurrogate;
@@ -4,7 +4,7 @@ var assertThrows = assert['throws'];

require('../fromcodepoint.js');

assertEquals(String.fromCodePoint.length, 0);
assertEquals(String.fromCodePoint.length, 1);
assertEquals(String.propertyIsEnumerable('fromCodePoint'), false);

assertEquals(String.fromCodePoint(''), '\0');

0 comments on commit 64774a2

Please sign in to comment.