Fix non-callable [[ProxyTarget]] test

This commit is contained in:
Alexey Shvayka 2020-03-28 16:41:43 +02:00 committed by Rick Waldron
parent e8e3aaa77b
commit 91b867b660
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// Copyright (C) 2015 the V8 project authors. All rights reserved. // Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
es6id: 9.5.15 esid: sec-proxycreate
description: > description: >
A Proxy exotic object is only callable if the given target is callable. A Proxy exotic object is only callable if the given target is callable.
info: | info: |
@ -22,5 +22,5 @@ features: [Proxy]
var p = new Proxy({}, {}); var p = new Proxy({}, {});
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
p.call(); p();
}); });