1 // Copyright (C) 2015 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
6 description: The `length` property of Promise Resolve functions
8 The length property of a promise resolve function is 1.
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]
18 new Promise(function(resolve, reject) {
19 resolveFunction = resolve;
22 assert.sameValue(resolveFunction.length, 1);
24 verifyNotEnumerable(resolveFunction, "length");
25 verifyNotWritable(resolveFunction, "length");
26 verifyConfigurable(resolveFunction, "length");