summaryrefslogtreecommitdiff
path: root/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js
blob: e542fadf4eb774a2c2f2c5b1ef7bdb618e427bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2014 Cubane Canada, Inc.  All rights reserved.
// See LICENSE for details.

/*---
info: Promise.all([]) is a Promise
es6id: 25.4.4.1_A2.1_T1
author: Sam Mikes
description: Promise.all returns a Promise
---*/

var p = Promise.all([]);
if (!(p instanceof Promise)) {
  $ERROR('Expected p to be a Promise');
}