Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Promise/all/S25.4.4.1_A6.1_T1.js

raw
1 // Copyright 2014 Cubane Canada, Inc. All rights reserved.
2 // See LICENSE for details.
3
4 /*---
5 info: |
6 Promise.all with 0-element array
7 es6id: S25.4.4.1_A5.1_T1
8 author: Sam Mikes
9 description: Promise.all([]) produces a promise
10 ---*/
11
12 var p = Promise.all([]);
13
14 if (!(p instanceof Promise)) {
15 $ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
16 }