Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / assign / assign-length.js
blobbcfe2e2eda38b69695cb0482b18b1e8eb7cebff3
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
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.
10     ES6 Section 17:
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 ---*/
18 assert.sameValue(
19   Object.assign.length, 2, "The length property of the assign method should be 2."
22 verifyNotEnumerable(Object.assign, 'length');
23 verifyNotWritable(Object.assign, 'length');
24 verifyConfigurable(Object.assign, 'length');
26 reportCompare(0, 0);