blob: 723ff6aac63fc2075cd5ecc101f0a782d40d0b0b [file] [log] [blame]
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
// See LICENSE for details.
/*---
info: |
Promise.prototype.then expects a constructor conforming to Promise as 'this'
es6id: S25.4.5.3_A2.1_T1
author: Sam Mikes
description: Promise.prototype.then throw if 'this' is non-Object
---*/
var p = new Promise(function() {});
assert.throws(TypeError, function() {
p.then.call(3, function() {}, function() {});
});