resolve-function-length.js (785B)
1 // Copyright (C) 2015 André Bargull. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es6id: 25.4.1.3.2 6 description: The `length` property of Promise Resolve functions 7 info: | 8 The length property of a promise resolve function is 1. 9 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 ---*/ 16 17 var resolveFunction; 18 new Promise(function(resolve, reject) { 19 resolveFunction = resolve; 20 }); 21 22 verifyProperty(resolveFunction, "length", { 23 value: 1, 24 writable: false, 25 enumerable: false, 26 configurable: true 27 }); 28 29 reportCompare(0, 0);