blob: 6b0d88543e4b552ac1847dd9e40035d9a00be49c [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// Copyright 2015 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
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00005
6assertTrue(Array.isArray([]));
7assertFalse(Array.isArray({}));
8assertFalse(Array.isArray(null));
9
10assertTrue(Array.isArray(new Proxy([], {})));
11assertFalse(Array.isArray(new Proxy({}, {})));
12
13assertTrue(Array.isArray(new Proxy(new Proxy([], {}), {})));
14assertFalse(Array.isArray(new Proxy(new Proxy({}, {}), {})));