mirror of https://github.com/tc39/test262.git
16 lines
343 B
JavaScript
16 lines
343 B
JavaScript
|
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
|
||
|
// See LICENSE for details.
|
||
|
|
||
|
/*---
|
||
|
info: >
|
||
|
Promise.all with 0-element array
|
||
|
author: Sam Mikes
|
||
|
description: Promise.all([]) produces a promise
|
||
|
---*/
|
||
|
|
||
|
var p = Promise.all([]);
|
||
|
|
||
|
if (!(p instanceof Promise)) {
|
||
|
$ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
|
||
|
}
|