aca17974f6
- condense repeated elements - print map BUG= Review-Url: https://codereview.chromium.org/2626023002 Cr-Commit-Position: refs/heads/master@{#42330}
30 lines
832 B
JavaScript
30 lines
832 B
JavaScript
// Copyright 2017 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.
|
|
|
|
// Flags: --allow-natives-syntax
|
|
|
|
var largeArray = [];
|
|
largeArray[0xFFFF00] = 123;
|
|
|
|
var objects = [
|
|
this,
|
|
true, false, null, undefined,
|
|
1, -1, 1.1, -2.2, -0, 0,
|
|
Infinity, -Infinity, NaN,
|
|
"aasdfasdfasdfasdf", "a"+"b",
|
|
{}, {1:1}, {a:1}, {1:1, 2:2}, Object.create(null),
|
|
[], [{}, {}], [1, 1, 1], [1.1, 1.1, 1.1, 1.1, 2], largeArray,
|
|
new Proxy({},{}),
|
|
new Date(), new String(" a"),
|
|
new Uint8Array(12),
|
|
/asdf/, new RegExp(),
|
|
Object.create, Object, Array,
|
|
Symbol.iterator,
|
|
[][Symbol.iterator](),
|
|
new Map(), new Set(),
|
|
(new Map()).entries(), (new Set()).entries()
|
|
|
|
];
|
|
for (var o of objects) %DebugPrint(o);
|