summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js')
-rw-r--r--test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js b/test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js
index b16d6f9cc..410c3244d 100644
--- a/test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js
+++ b/test/built-ins/TypedArrays/from/BigInt/mapfn-this-without-thisarg-non-strict.js
@@ -20,17 +20,16 @@ flags: [noStrict]
features: [BigInt, TypedArray]
---*/
-var source = [42, 43];
var global = this;
testWithBigIntTypedArrayConstructors(function(TA) {
var results = [];
var mapfn = function(x) {
results.push(this);
- return convertToBigInt(x);
+ return x;
};
- TA.from(convertToBigInt(source), mapfn);
+ TA.from([42n, 43n], mapfn);
assert.sameValue(results.length, 2);
assert.sameValue(results[0], global);