Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/assign/assign-length.js

raw
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
3
4 /*---
5 description: The length property of the assign method should be 2
6 es6id: 19.1.2.1
7 info: |
8 The length property of the assign method is 2.
9
10 ES6 Section 17:
11
12 Unless otherwise specified, the length property of a built-in Function
13 object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
14 [[Configurable]]: true }.
15 includes: [propertyHelper.js]
16 ---*/
17
18 assert.sameValue(
19 Object.assign.length, 2, "The length property of the assign method should be 2."
20 );
21
22 verifyNotEnumerable(Object.assign, 'length');
23 verifyNotWritable(Object.assign, 'length');
24 verifyConfigurable(Object.assign, 'length');