Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve consistency of JS_NewFloat64 API (#319)
* Improve consistency of JS_NewFloat64 API - `JS_NewFloat64()` always creates a `JS_TAG_FLOAT64` value - internal `js_float64()` always creates a `JS_TAG_FLOAT64` value - add `js_int64` internal function for consistency - rename `float_is_int32` as `double_is_int32` - handle `INT32_MIN` in `double_is_int32`, use (somewhat) faster alternative - add `js_number(d)` to create a `JS_TAG_FLOAT64` or a `JS_TAG_INT` value if possible - add `JS_NewNumber()` API for the same purpose - use non testing constructor for infinities in `js_atof2` - always store internal time value as a float64 - merge `JS_NewBigInt64_1` into `JS_NewBigInt64` - use comparisons instead of `(int32_t)` casts (implementation defined behavior)
- Loading branch information