2015-06-22 23:16:17 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
`Promise.reject` invoked on a non-constructor value
|
|
|
|
es6id: 25.4.4.4
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2015-06-22 23:16:17 +02:00
|
|
|
[...]
|
|
|
|
3. Let promiseCapability be NewPromiseCapability(C).
|
|
|
|
4. ReturnIfAbrupt(promiseCapability).
|
|
|
|
---*/
|
|
|
|
|
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
Promise.reject.call(eval);
|
|
|
|
});
|