mirror of https://github.com/tc39/test262.git
Add missing Symbol.toStringTag feature flags
This commit is contained in:
parent
1bdddabf97
commit
ca1871bafd
|
@ -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]());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() {}, {});
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue