diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Array/fromAsync/prop-desc.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Array/fromAsync/prop-desc.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Array/fromAsync/prop-desc.js b/js/src/tests/test262/built-ins/Array/fromAsync/prop-desc.js new file mode 100644 index 0000000000..129ee6eab7 --- /dev/null +++ b/js/src/tests/test262/built-ins/Array/fromAsync/prop-desc.js @@ -0,0 +1,24 @@ +// |reftest| shell-option(--enable-array-from-async) skip-if(!Array.fromAsync||!xulRuntime.shell) -- Array.fromAsync is not enabled unconditionally, requires shell-options +// Copyright (C) 2022 Igalia, S.L. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +esid: sec-array.fromasync +description: Type and property descriptor of Array.fromAsync +info: | + Every other data property described in clauses 19 through 28 and in Annex B.2 + has the attributes { [[Writable]]: *true*, [[Enumerable]]: *false*, + [[Configurable]]: *true* } unless otherwise specified. +includes: [propertyHelper.js] +features: [Array.fromAsync] +---*/ + +assert.sameValue(typeof Array.fromAsync, "function", "Array.fromAsync is callable"); + +verifyProperty(Array, 'fromAsync', { + writable: true, + enumerable: false, + configurable: true, +}); + +reportCompare(0, 0); |