Index: test/mjsunit/es6/array-iterator.js |
diff --git a/test/mjsunit/es6/array-iterator.js b/test/mjsunit/es6/array-iterator.js |
index 96122cd9999941155e457a6b664c917389512c13..767991eafed33f913e2725da6baa46a7939450b1 100644 |
--- a/test/mjsunit/es6/array-iterator.js |
+++ b/test/mjsunit/es6/array-iterator.js |
@@ -25,7 +25,7 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --allow-natives-syntax |
+// Flags: --allow-natives-syntax --harmony-tostring |
var NONE = 0; |
@@ -158,6 +158,15 @@ function TestArrayIteratorPrototype() { |
Object.getOwnPropertyNames(ArrayIteratorPrototype)); |
assertHasOwnProperty(ArrayIteratorPrototype, 'next', DONT_ENUM); |
assertHasOwnProperty(ArrayIteratorPrototype, Symbol.iterator, DONT_ENUM); |
+ |
+ assertEquals("[object Array Iterator]", |
+ Object.prototype.toString.call(iterator)); |
+ assertEquals("Array Iterator", ArrayIteratorPrototype[Symbol.toStringTag]); |
+ var desc = Object.getOwnPropertyDescriptor( |
+ ArrayIteratorPrototype, Symbol.toStringTag); |
+ assertTrue(desc.configurable); |
+ assertFalse(desc.writable); |
+ assertEquals("Array Iterator", desc.value); |
} |
TestArrayIteratorPrototype(); |