test262/test/built-ins/Promise/all/S25.4.4.1_A2.1_T1.js

13 lines
345 B
JavaScript

// 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([]);
assert(!!(p instanceof Promise), 'The value of !!(p instanceof Promise) is expected to be true');