blob: 03bfe8978319a6235e196785ba9ec9b3e497b1f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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.resolve` invoked on a non-constructor value
es6id: 25.4.4.5
info: |
[...]
4. Let promiseCapability be NewPromiseCapability(C).
5. ReturnIfAbrupt(promiseCapability).
---*/
assert.throws(TypeError, function() {
Promise.resolve.call(eval);
});
reportCompare(0, 0);
|