Skip to content
Snippets Groups Projects
Unverified Commit 6c2503a8 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

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

parent 7dc92154
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 1 deletion
...@@ -137,6 +137,7 @@ Reflect.construct ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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 ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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: | ...@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment