2015-07-17 17:34:33 +02:00
|
|
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
2015-03-07 00:45:06 +01:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
es6id: 9.4.4.6 S7
|
|
|
|
description: >
|
|
|
|
Unmapped arguments exotic objects should implement the Array iterator
|
|
|
|
protocol.
|
|
|
|
includes: [propertyHelper.js]
|
|
|
|
flags: [noStrict]
|
2015-05-26 17:05:12 +02:00
|
|
|
features: [Symbol.iterator]
|
2015-03-07 00:45:06 +01:00
|
|
|
---*/
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
'use strict';
|
|
|
|
var descriptor = Object.getOwnPropertyDescriptor(arguments, Symbol.iterator);
|
|
|
|
|
|
|
|
assert.sameValue(arguments[Symbol.iterator], [][Symbol.iterator]);
|
|
|
|
|
|
|
|
verifyNotEnumerable(Array.prototype, Symbol.iterator);
|
|
|
|
verifyWritable(Array.prototype, Symbol.iterator);
|
|
|
|
verifyConfigurable(Array.prototype, Symbol.iterator);
|
|
|
|
}());
|