2014-10-23 19:58:31 +02:00
|
|
|
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
|
|
|
|
// See LICENSE for details.
|
|
|
|
|
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-10-23 19:58:31 +02:00
|
|
|
Promise.all with 0-element array
|
2015-02-10 22:01:39 +01:00
|
|
|
es6id: S25.4.4.1_A5.1_T1
|
2014-10-23 19:58:31 +02:00
|
|
|
author: Sam Mikes
|
|
|
|
description: Promise.all([]) produces a promise
|
|
|
|
---*/
|
|
|
|
|
|
|
|
var p = Promise.all([]);
|
|
|
|
|
|
|
|
if (!(p instanceof Promise)) {
|
2018-02-15 21:11:21 +01:00
|
|
|
$ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
|
2014-10-23 19:58:31 +02:00
|
|
|
}
|