blob: aee00099560e8289c1b713544538ae58ed126a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 21.1.5.2
description: >
The [[Prototype]] internal slot ofthe %StringIteratorPrototype% is the
%IteratorPrototype% intrinsic object (25.1.2).
features: [Symbol.iterator]
---*/
var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]());
var itrProto = Object.getPrototypeOf(
Object.getPrototypeOf([][Symbol.iterator]())
);
assert.sameValue(Object.getPrototypeOf(strItrProto), itrProto);
|