// 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() {});
});

reportCompare(0, 0);
