mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-24 10:11:34 +00:00
Add javascript Number consts. (#1965)
* Add javascript Number consts. * Add tests
This commit is contained in:
committed by
Alex Crichton
parent
450c477197
commit
bb066e68a5
22
crates/js-sys/tests/wasm/Number.js
Normal file
22
crates/js-sys/tests/wasm/Number.js
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
exports.const_epsilon = function() {
|
||||
return Number.EPSILON;
|
||||
};
|
||||
exports.const_max_safe_integer = function() {
|
||||
return Number.MAX_SAFE_INTEGER;
|
||||
};
|
||||
exports.const_max_value = function() {
|
||||
return Number.MAX_VALUE;
|
||||
};
|
||||
exports.const_min_safe_integer = function() {
|
||||
return Number.MIN_SAFE_INTEGER;
|
||||
};
|
||||
exports.const_min_value = function() {
|
||||
return Number.MIN_VALUE;
|
||||
};
|
||||
exports.const_negative_infinity = function() {
|
||||
return Number.NEGATIVE_INFINITY;
|
||||
};
|
||||
exports.const_positive_infinity = function() {
|
||||
return Number.POSITIVE_INFINITY;
|
||||
};
|
Reference in New Issue
Block a user