| 1 |
// Copyright (C) 2015 André Bargull. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es6id: 26.2.2.1.1 |
| 6 |
description: The `length` property of Proxy Revocation functions |
| 7 |
info: | |
| 8 |
The length property of a Proxy revocation function is 0. |
| 9 |
|
| 10 |
17 ECMAScript Standard Built-in Objects: |
| 11 |
Unless otherwise specified, the length property of a built-in Function |
| 12 |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, |
| 13 |
[[Configurable]]: true }. |
| 14 |
includes: [propertyHelper.js] |
| 15 |
---*/ |
| 16 |
|
| 17 |
var revocationFunction = Proxy.revocable({}, {}).revoke; |
| 18 |
|
| 19 |
assert.sameValue(revocationFunction.length, 0); |
| 20 |
|
| 21 |
verifyNotEnumerable(revocationFunction, "length"); |
| 22 |
verifyNotWritable(revocationFunction, "length"); |
| 23 |
verifyConfigurable(revocationFunction, "length"); |