2014-10-23 19:58:31 +02:00
|
|
|
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
|
|
|
|
// See LICENSE for details.
|
|
|
|
|
|
|
|
/*---
|
2015-02-10 22:01:39 +01:00
|
|
|
es6id: S25.4.4.3_A5.1_T1
|
2014-10-23 19:58:31 +02:00
|
|
|
author: Sam Mikes
|
|
|
|
description: Promise.race([]) never settles
|
2016-02-12 18:59:51 +01:00
|
|
|
flags: [async]
|
2014-10-23 19:58:31 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
var p = Promise.race([]);
|
|
|
|
|
|
|
|
p.then(function () {
|
|
|
|
$ERROR("Never settles.");
|
|
|
|
}, function () {
|
|
|
|
$ERROR("Never settles.");
|
|
|
|
}).then($DONE, $DONE);
|
|
|
|
|
|
|
|
// use three 'then's to allow above to settle
|
|
|
|
// if this is a buggy Promise.race implementation
|
|
|
|
Promise.resolve().then().then().then($DONE, $DONE);
|