blob: 3f803bd6516343a3e04db8185780d9529f3b665b [file] [log] [blame]
// 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({}, {}));
});