2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-array.fromasync
7 description: If thisArg is an object, it's bound to mapfn as the this-value
9 6. If _mapping_ is *true*, then
10 a. Let _mappedValue_ be Call(_mapfn_, _thisArg_, « _nextValue_, 𝔽(_k_) »).
12 includes: [asyncHelpers.js]
13 features: [Array.fromAsync]
16 asyncTest(async () => {
17 const myThisValue = {};
19 await Array.fromAsync([1, 2, 3], async function () {
20 assert.sameValue(this, myThisValue, "thisArg should be bound as the this-value of mapfn");