mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 07:25:15 +02:00
Add test for Realm's @@toStringTag
This commit is contained in:
parent
c778494922
commit
b4ff2c76bc
22
test/built-ins/Realm/prototype/Symbol.toStringTag.js
vendored
Normal file
22
test/built-ins/Realm/prototype/Symbol.toStringTag.js
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// Copyright (C) 2021 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-realm.prototype-@@tostringtag
|
||||||
|
description: >
|
||||||
|
`Symbol.toStringTag` property descriptor
|
||||||
|
info: |
|
||||||
|
The initial value of the @@toStringTag property is the String value
|
||||||
|
"Realm".
|
||||||
|
|
||||||
|
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||||
|
false, [[Configurable]]: true }.
|
||||||
|
includes: [propertyHelper.js]
|
||||||
|
features: [callable-boundary-realms, Symbol.toStringTag]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
verifyProperty(Realm.prototype, Symbol.toStringTag, {
|
||||||
|
value: 'Realm',
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
configurable: true
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user