mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 21:14:45 +02:00
Adds String.fromCodePoint to the features list (#1606)
This commit is contained in:
parent
7dc92154af
commit
6c2503a810
@ -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
|
||||||
|
@ -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() {
|
||||||
|
@ -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() {
|
||||||
|
@ -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 = {};
|
||||||
|
@ -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(), '');
|
||||||
|
@ -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');
|
||||||
|
@ -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(
|
||||||
|
@ -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(
|
||||||
|
@ -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() {
|
||||||
|
@ -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');
|
||||||
|
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user