Debian Codegraph @

js/src/tests/test262/built-ins/Promise/race/S25.4.4.3_A2.1_T1.js

raw
1 // Copyright 2014 Cubane Canada, Inc. All rights reserved.
2 // See LICENSE for details.
3
4 /*---
5 info: Promise.race returns a new promise
6 es6id: S25.4.4.3_A2.1_T1
7 author: Sam Mikes
8 description: Promise.race returns a new promise
9 ---*/
10
11 var p = Promise.race([]);
12
13 assert(!!(p instanceof Promise), 'The value of !!(p instanceof Promise) is expected to be true');
14
15 reportCompare(0, 0);