Skip to content

Commit ebe73ae

Browse files
timagixetshemsedinov
authored andcommitted
Update error message
1 parent 5c36d34 commit ebe73ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JavaScript/9-bigint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ console.log('BigInt(3n / 2n) =', BigInt(3n / 2n));
3333
// SyntaxError: Cannot convert 1.5 to a BigInt
3434

3535
// console.log('BigInt(1.5) =', BigInt(1.5));
36-
// RangeError: The number 1.5 is not a safe integer
37-
// and thus cannot be converted to a BigInt
36+
// RangeError: The number 1.5 cannot be converted
37+
// to a BigInt because it is not an integer
3838

3939
console.log('2n > 1n =', 2n > 1n);
4040
console.log('2n > 1 =', 2n > 1);

0 commit comments

Comments
 (0)