tests/auto/qml/ecmascripttests/test262/test/built-ins/Promise/race/S25.4.4.3_A1.1_T1.js
raw| 1 | // Copyright 2014 Cubane Canada, Inc. All rights reserved. |
| 2 | // See LICENSE for details. |
| 3 | |
| 4 | /*--- |
| 5 | info: Promise.race is callable |
| 6 | es6id: S25.4.4.3_A1.1_T1 |
| 7 | author: Sam Mikes |
| 8 | description: Promise.race is callable |
| 9 | ---*/ |
| 10 | |
| 11 | if (typeof Promise.race !== "function") { |
| 12 | $ERROR("Expected Promise.race to be a function, actually " + typeof Promise.race); |
| 13 | } |