Skip to content

Commit 592c097

Browse files
committed
Add an example of using assert.throws
1 parent d0d2f7a commit 592c097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/suite/es6/ch25/25.4/25.4.3/25.4.3.1/S25.4.3.1_A2.2_T1.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ info: >
66
Promise throws TypeError when 'this' is constructed but unsettled promise
77
author: Sam Mikes
88
description: Promise.call(new Promise()) throws TypeError
9-
negative: TypeError
109
---*/
1110

1211
var p = new Promise(function() {});
1312

14-
Promise.call(p, function () {});
13+
assert.throws(function () {
14+
Promise.call(p, function () {});
15+
});

0 commit comments

Comments
 (0)