Debian Codegraph @

js/src/tests/test262/built-ins/Promise/all/S25.4.4.1_A2.3_T3.js

raw
1 // |reftest| async
2 // Copyright 2014 Cubane Canada, Inc. All rights reserved.
3 // See LICENSE for details.
4
5 /*---
6 info: Promise.all([]) is resolved with Promise for a new empty array
7 es6id: 25.4.4.1_A2.3_T3
8 author: Sam Mikes
9 description: Promise.all([]) is resolved with a Promise for a new array
10 flags: [async]
11 ---*/
12
13 var arg = [];
14
15 Promise.all(arg).then(function(result) {
16 assert.notSameValue(result, arg, 'The value of result is expected to not equal the value of `arg`');
17 }).then($DONE, $DONE);