Skip to content

Commit b096d17

Browse files
committed
Undo literal to string change. Add comment.
1 parent af36259 commit b096d17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/engine/Specs/Scene/MetadataComponentTypeSpec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,12 @@ describe("Scene/MetadataComponentType", function () {
391391
// Third result is (max + 1) / 2
392392
const expectedResults = [
393393
BigInt(0),
394-
BigInt("3689348814741910323"),
395-
BigInt("9223372036854775808"),
394+
// Note: The following value will become 3689348814741910528 at
395+
// runtime, because it is no proper big number literal. The test
396+
// is checking for exactly that.
397+
// eslint-disable-next-line no-loss-of-precision
398+
BigInt(3689348814741910323),
399+
BigInt(9223372036854775808),
396400
max,
397401
];
398402
for (let i = 0; i < values.length; ++i) {

0 commit comments

Comments
 (0)