diff --git a/CHANGES.current b/CHANGES.current index 5611a764c..b4450c943 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/ Version 4.1.0 (in progress) =========================== +2021-02-26: murillo128, wsfulton + #1269 [Javascript] Fix handling of large positive unsigned long and + unsigned long long values. + 2021-02-24: tomleavy, yegorich, tungntpham #1746 [Javascript] Add support for Node v12. SWIG support is now for Node v6 and later only. diff --git a/Examples/test-suite/javascript/integers_runme.js b/Examples/test-suite/javascript/integers_runme.js new file mode 100644 index 000000000..0356176ad --- /dev/null +++ b/Examples/test-suite/javascript/integers_runme.js @@ -0,0 +1,18 @@ +var integers = require("integers"); + +var val = 3902408827 +ret = integers.signed_long_identity(val) +if (ret != val) + throw "Incorrect value: " + ret + +ret = integers.unsigned_long_identity(val) +if (ret != val) + throw "Incorrect value: " + ret + +ret = integers.signed_long_long_identity(val) +if (ret != val) + throw "Incorrect value: " + ret + +ret = integers.unsigned_long_long_identity(val) +if (ret != val) + throw "Incorrect value: " + ret