Note that BigDecimal is not implemented in ScalaJS, so should never be used in shared code.
Note further that this will, surprisingly to me, not generate a compile-time error when compiling js. It will generate weird and incorrect run-time results in js that will be different from your JVM output executing identical code.
Note that BigDecimal is not implemented in ScalaJS, so should never be used in shared code.
Note further that this will, surprisingly to me, not generate a compile-time error when compiling js. It will generate weird and incorrect run-time results in js that will be different from your JVM output executing identical code.