| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: > |
| 6 |
Functions declared as methods have a `length` property that describes the |
| 7 |
number of formal parameters. |
| 8 |
es6id: 14.3.8 |
| 9 |
includes: [propertyHelper.js] |
| 10 |
---*/ |
| 11 |
|
| 12 |
var method = { method(a, b, c) {} }.method; |
| 13 |
|
| 14 |
assert.sameValue(method.length, 3); |
| 15 |
verifyNotEnumerable(method, 'length'); |
| 16 |
verifyNotWritable(method, 'length'); |
| 17 |
verifyConfigurable(method, 'length'); |