Skip to content

Commit 7a2273a

Browse files
authored
Fix typos (#4552)
Ref #4550
1 parent e33d93f commit 7a2273a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/built-ins/TypedArray/prototype/copyWithin/coerced-target-start-end-shrink.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ for (let ctor of ctors) {
2424
return 2;
2525
};
2626
assert.throws(TypeError, () => {
27-
fixedLength.copyWithin({ valueOf: evil }, 0, 1, ctor.name + " evil target.");
28-
});
27+
fixedLength.copyWithin({ valueOf: evil }, 0, 1);
28+
}, ctor.name + " evil target.");
2929
rab.resize(4 * ctor.BYTES_PER_ELEMENT);
3030
assert.throws(TypeError, () => {
31-
fixedLength.copyWithin(0, { valueOf: evil }, 3, ctor.name + " evil start.");
32-
});
31+
fixedLength.copyWithin(0, { valueOf: evil }, 3);
32+
}, ctor.name + " evil start.");
3333
rab.resize(4 * ctor.BYTES_PER_ELEMENT);
3434
assert.throws(TypeError, () => {
35-
fixedLength.copyWithin(0, 1, { valueOf: evil }, ctor.name + " evil end.");
36-
});
35+
fixedLength.copyWithin(0, 1, { valueOf: evil });
36+
}, ctor.name + " evil end.");
3737
}
3838

3939
for (let ctor of ctors) {

0 commit comments

Comments
 (0)