Debian Codegraph @

js/src/tests/test262/built-ins/Promise/all/S25.4.4.1_A2.3_T1.js

raw
1 // |reftest| async
2 // Copyright 2014 Cubane Canada, Inc. All rights reserved.
3 // See LICENSE for details.
4
5 /*---
6 info: Promise.all([]) returns a promise for a new empty array
7 es6id: 25.4.4.1_A2.3_T1
8 author: Sam Mikes
9 description: Promise.all([]) returns a promise for an array
10 flags: [async]
11 ---*/
12
13 var arg = [];
14
15 Promise.all(arg).then(function(result) {
16 assert(!!(result instanceof Array), 'The value of !!(result instanceof Array) is expected to be true');
17 }).then($DONE, $DONE);