Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Proxy / revocable / revocation-function-length.js
blob2460658438b807794f7c29e964b6790e9a57d02e
1 // Copyright (C) 2015 AndrĂ© Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
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.
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 features: [Proxy]
16 ---*/
18 var revocationFunction = Proxy.revocable({}, {}).revoke;
20 verifyProperty(revocationFunction, "length", {
21   value: 0,
22   writable: false,
23   enumerable: false,
24   configurable: true
25 });
27 reportCompare(0, 0);