blob: e8dfc87992c9106547ac1a56ab08f6f28768775b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// |reftest| async
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
// See LICENSE for details.
/*---
es6id: S25.4.4.3_A5.1_T1
author: Sam Mikes
description: Promise.race([]) never settles
flags: [async]
---*/
var p = Promise.race([]);
p.then(function() {
throw new Test262Error("Never settles.");
}, function() {
throw new Test262Error("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);
|