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-06-03 00:34:01 +00:00
|
|
|
// Flags: --harmony-collections --expose-natives-as=builtins
|
2014-04-22 18:14:46 +00:00
|
|
|
// Should not crash or raise an exception.
|
|
|
|
|
|
|
|
var s = new Set();
|
2014-06-03 00:34:01 +00:00
|
|
|
var setIterator = new builtins.SetIterator(s, 2);
|
2014-04-22 18:14:46 +00:00
|
|
|
|
|
|
|
var m = new Map();
|
2014-06-03 00:34:01 +00:00
|
|
|
var mapIterator = new builtins.MapIterator(m, 2);
|