Add tests for Reflect[Symbol.toStringTag] (#2710)

Ref https://github.com/tc39/ecma262/pull/2057

Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
This commit is contained in:
Jordan Harband 2020-07-20 13:23:56 -07:00 committed by GitHub
parent d3bfa94c16
commit 4203041cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,21 @@
// Copyright (C) 2020 Jordan Harband. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`Symbol.toStringTag` property descriptor
info: |
The initial value of the @@toStringTag property is the String value
"Reflect".
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [Symbol.toStringTag, Reflect]
---*/
verifyProperty(Reflect, Symbol.toStringTag, {
value: 'Reflect',
enumerable: false,
writable: false,
configurable: true,
});