2014-04-22 18:14:46 +00:00
|
|
|
// Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
2014-08-05 19:37:32 +00:00
|
|
|
// Flags: --expose-natives-as=builtins
|
2014-04-22 18:14:46 +00:00
|
|
|
// Should not crash or raise an exception.
|
|
|
|
|
2015-10-16 11:27:14 +00:00
|
|
|
var SetIterator = builtins.ImportNow("SetIterator");
|
2014-04-22 18:14:46 +00:00
|
|
|
var s = new Set();
|
2015-10-16 11:27:14 +00:00
|
|
|
var setIterator = new SetIterator(s, 2);
|
2014-04-22 18:14:46 +00:00
|
|
|
|
2015-10-16 11:27:14 +00:00
|
|
|
var MapIterator = builtins.ImportNow("MapIterator");
|
2014-04-22 18:14:46 +00:00
|
|
|
var m = new Map();
|
2015-10-16 11:27:14 +00:00
|
|
|
var mapIterator = new MapIterator(m, 2);
|