blob: 803b516b1329db1b819935ee01c8cb6c4fc6d143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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: >
`Object.prototype.toString` should honor the value of the @@toStringTag
attribute.
es6id: 22.1.5.2.2
features: [Symbol.iterator]
---*/
var iter = [][Symbol.iterator]();
assert.sameValue("[object Array Iterator]", Object.prototype.toString.call(iter));
reportCompare(0, 0);
|