From e73c5d0802357bec12bb27f39a6445f3efb76506 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 22 Oct 2021 15:50:54 +0200 Subject: [PATCH] bignum library: fixed IS IDENTICAL --- HISTORY.md | 1 + libraries/bignums.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 44c1baa3..a400e404 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -50,6 +50,7 @@ * blocks: tweaked blocks layout for hidden expansion slots * blocks, objects, store, threads: made SEND blocks expandable for receivers and renamed them back to BROADCAST * threads: deep copy atomic lists sent from one scene to another +* bignum library: fixed IS IDENTICAL ### 2021-10-21 * threads, objects: make "when I receive 'any message'" hat scripts threadsafe (uninterruptable by other messages) diff --git a/libraries/bignums.js b/libraries/bignums.js index 8e4ef91f..427d56b5 100644 --- a/libraries/bignums.js +++ b/libraries/bignums.js @@ -266,7 +266,7 @@ function loadBlocks (useBigNums) { reportIsIdentical: function (a, b) { x = parseNumber(a); y = parseNumber(b); - if (Number.isNaN(x) || Number.isNaN(y)) return originalPrims.reportIsIdentical(a, b); + if (Number.isNaN(x) || Number.isNaN(y)) return originalPrims.reportIsIdentical.call(this, a, b); return fn['='](x, y); }, reportMonadic: function (fname, n) {