blob: f7b167e3b887f0fff44756949817668b38349d00 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// Copyright 2014 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --expose-natives-as=builtins
6// Should not crash or raise an exception.
7
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00008var SetIterator = builtins.ImportNow("SetIterator");
Ben Murdochb8a8cc12014-11-26 15:28:44 +00009var s = new Set();
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000010var setIterator = new SetIterator(s, 2);
Ben Murdochb8a8cc12014-11-26 15:28:44 +000011
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000012var MapIterator = builtins.ImportNow("MapIterator");
Ben Murdochb8a8cc12014-11-26 15:28:44 +000013var m = new Map();
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000014var mapIterator = new MapIterator(m, 2);