Directly evaluating Number.MIN_VALUE should return the value 5e-324.
Operating on Number.MIN_VALUE should return the correct result.
Actual behavior
Directly evaluating Number.MIN_VALUE instantly kills / exits the REPL process. No stacktrace or output is printed. This only occurs when evaluated directly, ie. console.log(Number.MIN_VALUE) prints correctly without exiting.
The automatic evaluation that prints as a comment on the same line before pressing enter still displays correctly (> Number.MIN_VALUE // 5e-324).
Performing addition, subtraction, and division operations on Number.MIN_VALUE returns incorrect results. Performing multiplication on Number.MIN_VALUE causes the REPL process to exit as well.
Concatenating a string with Number.MIN_VALUEdoes return the correct result without exiting.
This behavior only occurs with Number.MIN_VALUE, evaluating and operating on Number.MAX_VALUE returns correctly.
Expected behavior
Directly evaluating
Number.MIN_VALUE
should return the value5e-324
. Operating onNumber.MIN_VALUE
should return the correct result.Actual behavior
Directly evaluating
Number.MIN_VALUE
instantly kills / exits the REPL process. No stacktrace or output is printed. This only occurs when evaluated directly, ie.console.log(Number.MIN_VALUE)
prints correctly without exiting.The automatic evaluation that prints as a comment on the same line before pressing enter still displays correctly (
> Number.MIN_VALUE // 5e-324
).Performing addition, subtraction, and division operations on
Number.MIN_VALUE
returns incorrect results. Performing multiplication onNumber.MIN_VALUE
causes the REPL process to exit as well.Concatenating a string with
Number.MIN_VALUE
does return the correct result without exiting.This behavior only occurs with
Number.MIN_VALUE
, evaluating and operating onNumber.MAX_VALUE
returns correctly.Steps to reproduce
Exit on evaluation:
Incorrect arithmetic results and exiting on multiplication:
Correct evaluation when concatenating with a string: