mirror of https://github.com/tc39/test262.git
Fix non-callable [[ProxyTarget]] test
This commit is contained in:
parent
e8e3aaa77b
commit
91b867b660
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue