mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
14 lines
612 B
JavaScript
14 lines
612 B
JavaScript
import { DESCRIPTORS } from '../helpers/constants.js';
|
|
|
|
QUnit.test('Symbol.asyncIterator', assert => {
|
|
assert.true('asyncIterator' in Symbol, 'Symbol.asyncIterator available');
|
|
assert.nonEnumerable(Symbol, 'asyncIterator');
|
|
assert.true(Object(Symbol.asyncIterator) instanceof Symbol, 'Symbol.asyncIterator is symbol');
|
|
if (DESCRIPTORS) {
|
|
const descriptor = Object.getOwnPropertyDescriptor(Symbol, 'asyncIterator');
|
|
assert.false(descriptor.enumerable, 'non-enumerable');
|
|
assert.false(descriptor.writable, 'non-writable');
|
|
assert.false(descriptor.configurable, 'non-configurable');
|
|
}
|
|
});
|