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 11 deletions
...@@ -12,7 +12,7 @@ info: | ...@@ -12,7 +12,7 @@ info: |
PropertyDefinition[Yield]: PropertyDefinition[Yield]:
(...) (...)
...AssignmentExpression[In, ?Yield] ...AssignmentExpression[In, ?Yield]
features: [object-spread] features: [object-spread, Symbol]
flags: [noStrict, async] flags: [noStrict, async]
---*/ ---*/
......
...@@ -6,7 +6,7 @@ desc: > ...@@ -6,7 +6,7 @@ desc: >
RestBindingInitialization creates a new object if lhs is a Symbol RestBindingInitialization creates a new object if lhs is a Symbol
template: default template: default
esid: pending esid: pending
features: [object-rest] features: [object-rest, Symbol]
---*/ ---*/
//- setup //- setup
......
...@@ -7,6 +7,7 @@ desc: > ...@@ -7,6 +7,7 @@ desc: >
iterable values and throws for Symbol values. iterable values and throws for Symbol values.
template: error template: error
es6id: 12.14.5.2 es6id: 12.14.5.2
features: [Symbol]
---*/ ---*/
//- setup //- setup
......
...@@ -6,7 +6,7 @@ desc: > ...@@ -6,7 +6,7 @@ desc: >
RestBindingInitialization creates a new object if lhs is a Symbol RestBindingInitialization creates a new object if lhs is a Symbol
template: default template: default
esid: pending esid: pending
features: [object-rest] features: [Symbol, object-rest]
---*/ ---*/
//- setup //- setup
......
...@@ -12,7 +12,7 @@ info: | ...@@ -12,7 +12,7 @@ info: |
PropertyDefinition[Yield]: PropertyDefinition[Yield]:
(...) (...)
...AssignmentExpression[In, ?Yield] ...AssignmentExpression[In, ?Yield]
features: [object-spread] features: [Symbol, object-spread]
flags: [noStrict] flags: [noStrict]
---*/ ---*/
......
...@@ -15,7 +15,7 @@ info: | ...@@ -15,7 +15,7 @@ info: |
3. ReturnIfAbrupt(fromValue). 3. ReturnIfAbrupt(fromValue).
4. Let excludedNames be a new empty List. 4. Let excludedNames be a new empty List.
5. Return CopyDataProperties(object, fromValue, excludedNames). 5. Return CopyDataProperties(object, fromValue, excludedNames).
features: [object-spread] features: [Symbol, object-spread]
---*/ ---*/
//- setup //- setup
......
...@@ -14,7 +14,7 @@ info: | ...@@ -14,7 +14,7 @@ info: |
3. ReturnIfAbrupt(fromValue). 3. ReturnIfAbrupt(fromValue).
4. Let excludedNames be a new empty List. 4. Let excludedNames be a new empty List.
5. Return CopyDataProperties(object, fromValue, excludedNames). 5. Return CopyDataProperties(object, fromValue, excludedNames).
features: [object-spread] features: [Symbol, object-spread]
---*/ ---*/
//- setup //- setup
......
...@@ -14,7 +14,7 @@ info: | ...@@ -14,7 +14,7 @@ info: |
3. ReturnIfAbrupt(fromValue). 3. ReturnIfAbrupt(fromValue).
4. Let excludedNames be a new empty List. 4. Let excludedNames be a new empty List.
5. Return CopyDataProperties(object, fromValue, excludedNames). 5. Return CopyDataProperties(object, fromValue, excludedNames).
features: [object-spread] features: [Symbol, object-spread]
---*/ ---*/
//- setup //- setup
......
...@@ -12,6 +12,7 @@ info: > ...@@ -12,6 +12,7 @@ info: >
... ...
1. If _comparefn_ is not *undefined* and IsCallable(_comparefn_) is *false*, throw a *TypeError* exception. 1. If _comparefn_ is not *undefined* and IsCallable(_comparefn_) is *false*, throw a *TypeError* exception.
... ...
features: [Symbol]
---*/ ---*/
var sample = [1, 2, 3]; var sample = [1, 2, 3];
......
...@@ -21,6 +21,7 @@ info: > ...@@ -21,6 +21,7 @@ info: >
4. If C is undefined, return defaultConstructor. 4. If C is undefined, return defaultConstructor.
5. If Type(C) is not Object, throw a TypeError exception. 5. If Type(C) is not Object, throw a TypeError exception.
... ...
features: [Symbol]
---*/ ---*/
var arrayBuffer = new ArrayBuffer(8); var arrayBuffer = new ArrayBuffer(8);
......
...@@ -5,6 +5,7 @@ esid: sec-toboolean ...@@ -5,6 +5,7 @@ esid: sec-toboolean
es6id: 7.1.2 es6id: 7.1.2
description: > description: >
Boolean coercion operations on Symbols Boolean coercion operations on Symbols
features: [Symbol]
---*/ ---*/
var sym = Symbol(); var sym = Symbol();
......
...@@ -19,7 +19,7 @@ info: | ...@@ -19,7 +19,7 @@ info: |
... ...
4. Let numberIndex be ? ToNumber(requestIndex). 4. Let numberIndex be ? ToNumber(requestIndex).
... ...
features: [SharedArrayBuffer] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
var buffer = new SharedArrayBuffer(1); var buffer = new SharedArrayBuffer(1);
......
...@@ -27,7 +27,7 @@ info: | ...@@ -27,7 +27,7 @@ info: |
... ...
8. If isLittleEndian is false, reverse the order of the elements of rawValue. 8. If isLittleEndian is false, reverse the order of the elements of rawValue.
... ...
features: [SharedArrayBuffer] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
var buffer = new SharedArrayBuffer(4); var buffer = new SharedArrayBuffer(4);
......
...@@ -16,7 +16,7 @@ info: | ...@@ -16,7 +16,7 @@ info: |
11. Else, 11. Else,
a. Let viewByteLength be ? ToLength(byteLength). a. Let viewByteLength be ? ToLength(byteLength).
... ...
features: [SharedArrayBuffer] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
var buffer = new SharedArrayBuffer(8); var buffer = new SharedArrayBuffer(8);
......
...@@ -13,7 +13,7 @@ info: | ...@@ -13,7 +13,7 @@ info: |
... ...
4. Let numberOffset be ? ToNumber(byteOffset). 4. Let numberOffset be ? ToNumber(byteOffset).
... ...
features: [SharedArrayBuffer] features: [SharedArrayBuffer, Symbol]
---*/ ---*/
var s = Symbol("1"); var s = Symbol("1");
......
...@@ -11,6 +11,7 @@ info: > ...@@ -11,6 +11,7 @@ info: >
14. If Type(targetName) is not String, let targetName be the empty string. 14. If Type(targetName) is not String, let targetName be the empty string.
15. Perform SetFunctionName(F, targetName, "bound"). 15. Perform SetFunctionName(F, targetName, "bound").
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Symbol]
---*/ ---*/
var target; var target;
......
...@@ -14,6 +14,7 @@ info: > ...@@ -14,6 +14,7 @@ info: >
... ...
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Symbol]
---*/ ---*/
var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size'); var descriptor = Object.getOwnPropertyDescriptor(Map.prototype, 'size');
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
description: Number,Boolean,Symbol cannot have own enumerable properties, description: Number,Boolean,Symbol cannot have own enumerable properties,
So cannot be Assigned.Here result should be original object. So cannot be Assigned.Here result should be original object.
es6id: 19.1.2.1.5.c es6id: 19.1.2.1.5.c
features: [Symbol]
---*/ ---*/
var target = new Object(); var target = new Object();
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
description: Test the first argument(target) of Object.Assign(target,...sources), description: Test the first argument(target) of Object.Assign(target,...sources),
if target is Symbol,the return value should be a new Symbol object whose [[SymbolData]] value is target. if target is Symbol,the return value should be a new Symbol object whose [[SymbolData]] value is target.
es6id: 19.1.2.1.1 es6id: 19.1.2.1.1
features: [Symbol]
---*/ ---*/
var target = Symbol('foo'); var target = Symbol('foo');
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
es6id: 19.1.2.4 es6id: 19.1.2.4
description: > description: >
Symbol used as property for configurable data property definition Symbol used as property for configurable data property definition
features: [Symbol]
---*/ ---*/
var sym = Symbol(); var sym = Symbol();
var obj = {}; var obj = {};
......
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