mirror of https://github.com/tc39/test262.git
Add basic coverage for Symbol.asyncIterator
This commit is contained in:
parent
e49c676fd5
commit
3166523832
|
@ -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);
|
|
@ -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…
Reference in New Issue