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