blob: 855595e76b617ab60757c29da87f21f3d2c59927 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
// See LICENSE for details.
/*---
info: |
Promise throws TypeError when 'this' is constructed but unsettled promise
es6id: S25.4.3.1_A2.2_T1
author: Sam Mikes
description: Promise.call(new Promise()) throws TypeError
---*/
var p = new Promise(function() {});
assert.throws(TypeError, function() {
Promise.call(p, function() {});
});
|