509a1a405c
This allows code like this: var map = new Map(); map.set(1, 'One'); ... var iter = map.values(); var res; while (!(res = iter.next()).done) { print(res.value); } BUG=v8:1793 LOG=Y R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/259883002 Patch from Erik Arvidsson <arv@chromium.org>. git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21615 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
8 lines
289 B
JavaScript
8 lines
289 B
JavaScript
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
// AUTO-GENERATED BY tools/generate-runtime-tests.py, DO NOT MODIFY
|
|
// Flags: --allow-natives-syntax --harmony
|
|
var _holder = new Set().values();
|
|
var _set = new Set();
|
|
var arg2 = 2;
|
|
%SetIteratorInitialize(_holder, _set, arg2);
|