mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Add basic coverage for Symbol.asyncIterator
This commit is contained in:
parent
e49c676fd5
commit
3166523832
15
test/built-ins/Symbol/asyncIterator/cross-realm.js
Normal file
15
test/built-ins/Symbol/asyncIterator/cross-realm.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-symbol.asynciterator
|
||||||
|
description: Value shared by all realms
|
||||||
|
info: |
|
||||||
|
Unless otherwise specified, well-known symbols values are shared by all
|
||||||
|
realms.
|
||||||
|
features: [cross-realm, Symbol.asyncIterator]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
var OSymbol = $262.createRealm().global.Symbol;
|
||||||
|
|
||||||
|
assert.sameValue(Symbol.asyncIterator, OSymbol.asyncIterator);
|
21
test/built-ins/Symbol/asyncIterator/prop-desc.js
Normal file
21
test/built-ins/Symbol/asyncIterator/prop-desc.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-symbol.asynciterator
|
||||||
|
description: >
|
||||||
|
`Symbol.asyncIterator` property descriptor
|
||||||
|
info: |
|
||||||
|
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
|
||||||
|
false, [[Configurable]]: false }.
|
||||||
|
includes: [propertyHelper.js]
|
||||||
|
features: [Symbol.asyncIterator]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.sameValue(typeof Symbol.asyncIterator, 'symbol');
|
||||||
|
|
||||||
|
verifyProperty(Symbol, 'asyncIterator', {
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
configurable: false,
|
||||||
|
});
|
Loading…
x
Reference in New Issue
Block a user