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.5_A2.1_T1
|
2014-10-23 19:58:31 +02:00
|
|
|
author: Sam Mikes
|
|
|
|
description: Promise.resolve passes through a promise w/ same Constructor
|
|
|
|
---*/
|
|
|
|
|
|
|
|
var p1 = Promise.resolve(1),
|
2018-02-15 21:11:21 +01:00
|
|
|
p2 = Promise.resolve(p1);
|
2014-10-23 19:58:31 +02:00
|
|
|
|
|
|
|
if (p1 !== p2) {
|
2018-02-15 21:11:21 +01:00
|
|
|
$ERROR("Expected p1 === Promise.resolve(p1) because they have same constructor");
|
2014-10-23 19:58:31 +02:00
|
|
|
}
|