blob: 764bccf8b0f9b9ecaee3824e30d4214d2fcf4cdb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright (C) 2018 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-function.prototype.tostring
description: >
toString of Proxy for non-callable target throws
info: |
...
Throw a TypeError exception.
features: [Proxy]
---*/
assert.throws(TypeError, function() {
Function.prototype.toString.call(new Proxy({}, {}));
});
reportCompare(0, 0);
|