Adds String.fromCodePoint to the features list (#1606)

This commit is contained in:
Leo Balter 2018-06-21 16:03:08 -04:00 committed by GitHub
parent 7dc92154af
commit 6c2503a810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 11 additions and 1 deletions

View File

@ -137,6 +137,7 @@ Reflect.construct
Reflect.set
Reflect.setPrototypeOf
Set
String.fromCodePoint
String.prototype.endsWith
String.prototype.includes
super

View File

@ -15,7 +15,7 @@ info: |
a. Let next be codePoints[nextIndex].
b. Let nextCP be ToNumber(next).
c. ReturnIfAbrupt(nextCP).
features: [Symbol]
features: [Symbol, String.fromCodePoint]
---*/
assert.throws(TypeError, function() {

View File

@ -18,6 +18,7 @@ info: |
d. If SameValue(nextCP, ToInteger(nextCP)) is false, throw a RangeError
exception.
...
features: [String.fromCodePoint]
---*/
assert.throws(RangeError, function() {

View File

@ -15,6 +15,7 @@ info: |
a. Let next be codePoints[nextIndex].
b. Let nextCP be ToNumber(next).
c. ReturnIfAbrupt(nextCP).
features: [String.fromCodePoint]
---*/
var obj = {};

View File

@ -17,6 +17,7 @@ info: |
6. Return the String value whose elements are, in order, the elements in the
List elements. If length is 0, the empty string is returned.
features: [String.fromCodePoint]
---*/
assert.sameValue(String.fromCodePoint(), '');

View File

@ -9,6 +9,7 @@ info: |
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.fromCodePoint]
---*/
verifyNotEnumerable(String, 'fromCodePoint');

View File

@ -5,6 +5,7 @@ es6id: 21.1.2.2
description: >
The length property of the String.fromCodePoint constructor is 1.
includes: [propertyHelper.js]
features: [String.fromCodePoint]
---*/
assert.sameValue(

View File

@ -9,6 +9,7 @@ info: |
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
features: [String.fromCodePoint]
---*/
assert.sameValue(

View File

@ -19,6 +19,7 @@ info: |
exception.
e. If nextCP < 0 or nextCP > 0x10FFFF, throw a RangeError exception.
...
features: [String.fromCodePoint]
---*/
assert.throws(RangeError, function() {

View File

@ -17,6 +17,7 @@ info: |
g. Let nextIndex be nextIndex + 1.
6. Return the String value whose elements are, in order, the elements in the
List elements. If length is 0, the empty string is returned.
features: [String.fromCodePoint]
---*/
assert.sameValue(String.fromCodePoint(0), '\x00');

View File

@ -17,6 +17,7 @@ info: |
List elements. If length is 0, the empty string is returned.
Ref: 7.1.3 ToNumber ( argument )
features: [String.fromCodePoint]
---*/
assert.sameValue(String.fromCodePoint(null), '\x00');