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.set
Reflect.setPrototypeOf Reflect.setPrototypeOf
Set Set
String.fromCodePoint
String.prototype.endsWith String.prototype.endsWith
String.prototype.includes String.prototype.includes
super super

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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