mirror of
https://github.com/tc39/test262.git
synced 2025-07-19 20:14:56 +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.setPrototypeOf
|
||||
Set
|
||||
String.fromCodePoint
|
||||
String.prototype.endsWith
|
||||
String.prototype.includes
|
||||
super
|
||||
|
@ -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() {
|
||||
|
@ -18,6 +18,7 @@ info: |
|
||||
d. If SameValue(nextCP, ToInteger(nextCP)) is false, throw a RangeError
|
||||
exception.
|
||||
...
|
||||
features: [String.fromCodePoint]
|
||||
---*/
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
|
@ -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 = {};
|
||||
|
@ -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(), '');
|
||||
|
@ -9,6 +9,7 @@ info: |
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.fromCodePoint]
|
||||
---*/
|
||||
|
||||
verifyNotEnumerable(String, 'fromCodePoint');
|
||||
|
@ -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(
|
||||
|
@ -9,6 +9,7 @@ info: |
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [String.fromCodePoint]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
|
@ -19,6 +19,7 @@ info: |
|
||||
exception.
|
||||
e. If nextCP < 0 or nextCP > 0x10FFFF, throw a RangeError exception.
|
||||
...
|
||||
features: [String.fromCodePoint]
|
||||
---*/
|
||||
|
||||
assert.throws(RangeError, function() {
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user