Mike Pennisi 3dc6d92970 Add tests for module namespace objects
Assert correct behavior of the own properties of module namespace
objects and the essential internal methods of module namespace exotic
objects.
2016-04-01 13:15:16 -04:00

25 lines
763 B
JavaScript

// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-@@iterator
es6id: 26.3.2
description: Property descriptor
info: >
ES6 Section 17
Every other data property described in clauses 18 through 26 and in Annex
B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
flags: [module]
includes: [propertyHelper.js]
features: [Symbol.iterator]
---*/
import * as ns from './list-iter-next-prop-desc.js';
var iter = ns[Symbol.iterator]();
assert.sameValue(typeof iter.next, 'function');
verifyNotEnumerable(iter, 'next');
verifyWritable(iter, 'next');
verifyConfigurable(iter, 'next');