Add basic coverage for Symbol.asyncIterator

This commit is contained in:
Leo Balter 2018-09-13 14:30:25 -04:00 committed by Rick Waldron
parent e49c676fd5
commit 3166523832
2 changed files with 36 additions and 0 deletions

View 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);

View 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,
});