diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-02-22 06:02:07 +0000 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-02-22 06:02:07 +0000 |
commit | aba4dcc3679a8cde6895c29efc67c20457f66fb2 (patch) | |
tree | 13195b96f8109cd213525e37f44607eef50eff62 | |
parent | 914153c100b60633326681f7d97d0eeedf918b82 (diff) | |
parent | a81be96706588c69ebad5c310ddb050b73831ae6 (diff) | |
download | gjs-aba4dcc3679a8cde6895c29efc67c20457f66fb2.tar.gz |
Merge branch '462-bigint-tests-32bit' into 'master'
tests: Fix BigInt tests on 32-bit
Closes #462
See merge request GNOME/gjs!728
-rw-r--r-- | installed-tests/js/testGIMarshalling.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js index 02c03f0f..1f13b311 100644 --- a/installed-tests/js/testGIMarshalling.js +++ b/installed-tests/js/testGIMarshalling.js @@ -141,10 +141,6 @@ const BigIntLimits = { max: 2n ** 63n - 1n, umax: 2n ** 64n - 1n, }, - long: {}, - ssize: { - utype: 'size', - }, }; Object.assign(Limits.short, Limits.int16); @@ -152,13 +148,13 @@ Object.assign(Limits.int, Limits.int32); // Platform dependent sizes; expand definitions as needed if (GLib.SIZEOF_LONG === 8) { Object.assign(Limits.long, Limits.int64); - Object.assign(BigIntLimits.long, BigIntLimits.int64); + BigIntLimits.long = Object.assign({}, BigIntLimits.int64); } else { Object.assign(Limits.long, Limits.int32); } if (GLib.SIZEOF_SSIZE_T === 8) { Object.assign(Limits.ssize, Limits.int64); - Object.assign(BigIntLimits.ssize, BigIntLimits.int64); + BigIntLimits.ssize = Object.assign({utype: 'size'}, BigIntLimits.int64); } else { Object.assign(Limits.ssize, Limits.int32); } |