Add missing Symbol.toStringTag feature flags

This commit is contained in:
Leo Balter 2017-09-07 18:36:26 -04:00 committed by Rick Waldron
parent 1bdddabf97
commit ca1871bafd
6 changed files with 12 additions and 8 deletions

View File

@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%-@@tostringtag
description: > description: >
The @@toStringTag attribute should be defined directly on the prototype. The @@toStringTag attribute should be defined directly on the prototype.
es6id: 22.1.5.2.2 es6id: 22.1.5.2.2
features: [Symbol.iterator] features: [Symbol.iterator, Symbol.toStringTag]
---*/ ---*/
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]()); var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());

View File

@ -7,6 +7,7 @@ esid: sec-async-function-prototype-properties-toStringTag
description: > description: >
%AsyncFunctionPrototype% has a Symbol.toStringTag property of "AsyncFunction" %AsyncFunctionPrototype% has a Symbol.toStringTag property of "AsyncFunction"
includes: [propertyHelper.js] includes: [propertyHelper.js]
features: [Symbol.toStringTag]
---*/ ---*/
var AsyncFunction = async function foo() { }.constructor; var AsyncFunction = async function foo() { }.constructor;

View File

@ -14,7 +14,7 @@ info: |
a. Set the [[Call]] internal method of P as specified in 9.5.12. a. Set the [[Call]] internal method of P as specified in 9.5.12.
[...] [...]
features: [Proxy] features: [Proxy, Symbol.toStringTag]
---*/ ---*/
var functionProxy = new Proxy(function() {}, {}); var functionProxy = new Proxy(function() {}, {});

View File

@ -2,12 +2,13 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
description: > description: >
`Object.prototype.getOwnPropertyDescriptor` should reflect the value and `Object.prototype.getOwnPropertyDescriptor` should reflect the value and
writability of the @@toStringTag attribute. writability of the @@toStringTag attribute.
includes: [propertyHelper.js] includes: [propertyHelper.js]
es6id: 23.2.3.12 es6id: 23.2.3.12
---*/ features: [Symbol.toStringTag]
---*/
var SetProto = Object.getPrototypeOf(new Set()); var SetProto = Object.getPrototypeOf(new Set());

View File

@ -11,6 +11,7 @@ info: >
5. Assert: name is a String value. 5. Assert: name is a String value.
6. Return name. 6. Return name.
includes: [testTypedArray.js, detachArrayBuffer.js] includes: [testTypedArray.js, detachArrayBuffer.js]
features: [Symbol.toStringTag]
---*/ ---*/
testWithTypedArrayConstructors(function(TA) { testWithTypedArrayConstructors(function(TA) {

View File

@ -20,6 +20,7 @@ info: >
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }. [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js] includes: [propertyHelper.js, testTypedArray.js]
features: [Symbol.toStringTag]
---*/ ---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag); var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag);