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: >
The @@toStringTag attribute should be defined directly on the prototype.
es6id: 22.1.5.2.2
features: [Symbol.iterator]
features: [Symbol.iterator, Symbol.toStringTag]
---*/
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());

View File

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

View File

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

View File

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

View File

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