| Index: test/mjsunit/es6/array-of-3.js
|
| diff --git a/test/mjsunit/es6/array-of-3.js b/test/mjsunit/es6/array-of-3.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..23bd187989f8ffac46784c26031adaa0526f3f7f
|
| --- /dev/null
|
| +++ b/test/mjsunit/es6/array-of-3.js
|
| @@ -0,0 +1,15 @@
|
| +// 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.
|
| +
|
| +// Based on: https://hg.mozilla.org/mozilla-central/file/d0c3168c3c47/js/src/jit-test/tests/collections/Array-of-3.js
|
| +
|
| +// Flags: --harmony-arrays
|
| +
|
| +
|
| +// Array.of does not leave holes
|
| +
|
| +assertEquals(Array.of(undefined), [undefined]);
|
| +assertEquals(Array.of(undefined, undefined), [undefined, undefined]);
|
| +assertEquals(Array.of.apply(null, [,,undefined]), [undefined, undefined, undefined]);
|
| +assertEquals(Array.of.apply(null, Array(4)), [undefined, undefined, undefined, undefined]);
|
|
|