blob: 0f9fdc3948ff91e7413b37ae3603b0da5e52e641 [file] [log] [blame]
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
// See LICENSE for details.
/*---
info: |
Promise.reject
es6id: S25.4.4.4_A3.1_T1
author: Sam Mikes
description: Promise.reject throws TypeError for bad 'this'
---*/
function ZeroArgConstructor() {}
assert.throws(TypeError, function() {
Promise.reject.call(ZeroArgConstructor, 4);
});