Add test for well-known Symbol, @@iterator

This commit is contained in:
Mike Pennisi 2015-07-16 11:38:33 -04:00
parent d62f3a82b9
commit e4a8900a25
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.4.2.4
description: >
`Symbol.iterator` property descriptor
info: >
This property has the attributes { [[Writable]]: false, [[Enumerable]]:
false, [[Configurable]]: false }.
includes: [propertyHelper.js]
features: [Symbol.iterator]
---*/
assert.sameValue(typeof Symbol.iterator, 'symbol');
verifyNotEnumerable(Symbol, 'iterator');
verifyNotWritable(Symbol, 'iterator');
verifyNotConfigurable(Symbol, 'iterator');