summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/ArrayIteratorPrototype/Symbol.toStringTag/value-direct.js
blob: d8f08c9e068ec674616270bf642513a4094da3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-%arrayiteratorprototype%-@@tostringtag
description: >
  The @@toStringTag attribute should be defined directly on the prototype.
es6id: 22.1.5.2.2
features: [Symbol.iterator, Symbol.toStringTag]
---*/

var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());

assert.sameValue("Array Iterator", ArrayIteratorProto[Symbol.toStringTag]);

reportCompare(0, 0);