Skip to content
Snippets Groups Projects
Commit c41faf1a authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Add missing Symbol features flags

parent be420f34
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 2 deletions
...@@ -5,6 +5,7 @@ es6id: 19.4 ...@@ -5,6 +5,7 @@ es6id: 19.4
description: > description: >
Symbol ToObject auto-boxing Symbol ToObject auto-boxing
flags: [noStrict] flags: [noStrict]
features: [Symbol]
---*/ ---*/
var sym = Symbol('66'); var sym = Symbol('66');
......
...@@ -5,6 +5,7 @@ es6id: 19.4 ...@@ -5,6 +5,7 @@ es6id: 19.4
description: > description: >
Symbol ToObject auto-boxing Symbol ToObject auto-boxing
flags: [onlyStrict] flags: [onlyStrict]
features: [Symbol]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
es6id: 19.4.3.1 es6id: 19.4.3.1
description: > description: >
Symbol constructor Symbol constructor
features: [Symbol]
---*/ ---*/
assert.sameValue( assert.sameValue(
Object.getPrototypeOf(Symbol('66')).constructor, Object.getPrototypeOf(Symbol('66')).constructor,
......
...@@ -10,6 +10,7 @@ info: | ...@@ -10,6 +10,7 @@ info: |
2. Else, let descString be ? ToString(description). 2. Else, let descString be ? ToString(description).
3. Return a new unique Symbol value whose [[Description]] value is 3. Return a new unique Symbol value whose [[Description]] value is
descString. descString.
features: [Symbol]
---*/ ---*/
var s = Symbol('1'); var s = Symbol('1');
......
...@@ -10,6 +10,7 @@ info: | ...@@ -10,6 +10,7 @@ info: |
2. Else, let descString be ? ToString(description). 2. Else, let descString be ? ToString(description).
3. Return a new unique Symbol value whose [[Description]] value is 3. Return a new unique Symbol value whose [[Description]] value is
descString. descString.
features: [Symbol]
---*/ ---*/
var calls, val; var calls, val;
......
...@@ -15,6 +15,7 @@ info: > ...@@ -15,6 +15,7 @@ info: >
5. Append the Record { [[Key]]: stringKey, [[Symbol]]: newSymbol } to the 5. Append the Record { [[Key]]: stringKey, [[Symbol]]: newSymbol } to the
GlobalSymbolRegistry List. GlobalSymbolRegistry List.
6. Return newSymbol. 6. Return newSymbol.
features: [Symbol]
---*/ ---*/
var canonical = Symbol.for('s'); var canonical = Symbol.for('s');
......
...@@ -6,6 +6,7 @@ es6id: 19.4.2.1 ...@@ -6,6 +6,7 @@ es6id: 19.4.2.1
description: Error resulting from string coercion of first argument description: Error resulting from string coercion of first argument
info: > info: >
1. Let stringKey be ? ToString(key). 1. Let stringKey be ? ToString(key).
features: [Symbol]
---*/ ---*/
var subject = { var subject = {
......
...@@ -6,6 +6,7 @@ es6id: 19.4.1 ...@@ -6,6 +6,7 @@ es6id: 19.4.1
description: The Symbol constructor may not be invoked with `new` description: The Symbol constructor may not be invoked with `new`
info: | info: |
1. If NewTarget is not undefined, throw a TypeError exception. 1. If NewTarget is not undefined, throw a TypeError exception.
features: [Symbol]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
......
...@@ -6,6 +6,7 @@ es6id: 19.4.2.5 ...@@ -6,6 +6,7 @@ es6id: 19.4.2.5
description: Called with a non-symbol argument description: Called with a non-symbol argument
info: > info: >
1. If Type(sym) is not Symbol, throw a TypeError exception. 1. If Type(sym) is not Symbol, throw a TypeError exception.
features: [Symbol]
---*/ ---*/
assert.sameValue(typeof Symbol.keyFor, 'function'); assert.sameValue(typeof Symbol.keyFor, 'function');
......
...@@ -12,6 +12,7 @@ info: > ...@@ -12,6 +12,7 @@ info: >
3. Assert: GlobalSymbolRegistry does not currently contain an entry for 3. Assert: GlobalSymbolRegistry does not currently contain an entry for
sym. sym.
4. Return undefined. 4. Return undefined.
features: [Symbol]
---*/ ---*/
var constructed = Symbol('Symbol.iterator'); var constructed = Symbol('Symbol.iterator');
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
es6id: 19.4.3 es6id: 19.4.3
description: > description: >
Symbol prototype Symbol prototype
features: [Symbol]
---*/ ---*/
assert.sameValue( assert.sameValue(
Object.getPrototypeOf(Symbol('66')), Object.getPrototypeOf(Symbol('66')),
......
...@@ -5,6 +5,7 @@ es6id: 19.4 ...@@ -5,6 +5,7 @@ es6id: 19.4
description: > description: >
Symbol property get and set, non-strict Symbol property get and set, non-strict
flags: [noStrict] flags: [noStrict]
features: [Symbol]
---*/ ---*/
var sym = Symbol('66'); var sym = Symbol('66');
......
...@@ -5,6 +5,7 @@ es6id: 19.4 ...@@ -5,6 +5,7 @@ es6id: 19.4
description: > description: >
Symbol property get and set, strict Symbol property get and set, strict
flags: [onlyStrict] flags: [onlyStrict]
features: [Symbol]
---*/ ---*/
var sym = Symbol("66"); var sym = Symbol("66");
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
es6id: 19.4.3.2 es6id: 19.4.3.2
description: > description: >
toString operations on Symbols toString operations on Symbols
features: [Symbol]
---*/ ---*/
assert.sameValue( assert.sameValue(
String(Symbol('66')), String(Symbol('66')),
......
...@@ -18,6 +18,7 @@ info: | ...@@ -18,6 +18,7 @@ info: |
3. If desc is undefined, let desc be the empty string. 3. If desc is undefined, let desc be the empty string.
4. Assert: Type(desc) is String. 4. Assert: Type(desc) is String.
5. Return the result of concatenating the strings "Symbol(", desc, and ")". 5. Return the result of concatenating the strings "Symbol(", desc, and ")".
features: [Symbol]
---*/ ---*/
assert.sameValue(Symbol().toString(), 'Symbol()', 'implicit value'); assert.sameValue(Symbol().toString(), 'Symbol()', 'implicit value');
......
...@@ -10,6 +10,7 @@ info: | ...@@ -10,6 +10,7 @@ info: |
3. If Type(s) is not Object, throw a TypeError exception. 3. If Type(s) is not Object, throw a TypeError exception.
4. If s does not have a [[SymbolData]] internal slot, throw a TypeError exception. 4. If s does not have a [[SymbolData]] internal slot, throw a TypeError exception.
5. Return the value of s's [[SymbolData]] internal slot. 5. Return the value of s's [[SymbolData]] internal slot.
features: [Symbol]
---*/ ---*/
var valueOf = Symbol.prototype.valueOf; var valueOf = Symbol.prototype.valueOf;
......
...@@ -7,6 +7,7 @@ description: Called on a Symbol value ...@@ -7,6 +7,7 @@ description: Called on a Symbol value
info: | info: |
1. Let s be the this value. 1. Let s be the this value.
2. If Type(s) is Symbol, return s. 2. If Type(s) is Symbol, return s.
features: [Symbol]
---*/ ---*/
var valueOf = Symbol.prototype.valueOf; var valueOf = Symbol.prototype.valueOf;
......
...@@ -10,6 +10,7 @@ info: | ...@@ -10,6 +10,7 @@ info: |
2. Else, let descString be ? ToString(description). 2. Else, let descString be ? ToString(description).
3. Return a new unique Symbol value whose [[Description]] value is 3. Return a new unique Symbol value whose [[Description]] value is
descString. descString.
features: [Symbol]
---*/ ---*/
assert.notSameValue(Symbol(''), Symbol(''), 'empty string'); assert.notSameValue(Symbol(''), Symbol(''), 'empty string');
......
...@@ -16,7 +16,7 @@ info: > ...@@ -16,7 +16,7 @@ info: >
7. Let offset be ? ToInteger(byteOffset). 7. Let offset be ? ToInteger(byteOffset).
... ...
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [SharedArrayBuffer] features: [Symbol, SharedArrayBuffer]
---*/ ---*/
var byteOffset = Symbol("1"); var byteOffset = Symbol("1");
......
...@@ -17,7 +17,7 @@ info: > ...@@ -17,7 +17,7 @@ info: >
a. Let newLength be ? ToLength(length). a. Let newLength be ? ToLength(length).
... ...
includes: [testTypedArray.js] includes: [testTypedArray.js]
features: [SharedArrayBuffer] features: [Symbol, SharedArrayBuffer]
---*/ ---*/
var buffer = new SharedArrayBuffer(8); var buffer = new SharedArrayBuffer(8);
......
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