diff --git a/HISTORY.md b/HISTORY.md index cf070cb9a..eca780354 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,14 @@ ## in development: +## 10.1.1: +* **Notable Fixes:** + * only bind rings fetched from a list to the list as environment if they are accessed by a non-numerical index (OOP 2.0) + +### 2024-09-12 +* threads: only bind rings retrieved from a list to the list as environment if they are retrieved by a non-numerical index (OOP 2.0) +* prepared v10.1.1 patch + ## 10.1.0: * **New Features:** 1. OOP 2.0 diff --git a/snap.html b/snap.html index fcb84a267..555559b62 100755 --- a/snap.html +++ b/snap.html @@ -17,10 +17,10 @@ - + - + diff --git a/src/gui.js b/src/gui.js index aee164708..bdee60e58 100644 --- a/src/gui.js +++ b/src/gui.js @@ -87,11 +87,11 @@ BlockVisibilityDialogMorph, ThreadManager, isString, SnapExtensions, snapEquals // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2024-October-11'; +modules.gui = '2024-October-12'; // Declarations -var SnapVersion = '10.1.0'; +var SnapVersion = '10.1.1'; var IDE_Morph; var ProjectDialogMorph; diff --git a/src/threads.js b/src/threads.js index 4a060aa73..fd6b73183 100644 --- a/src/threads.js +++ b/src/threads.js @@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition, CommentMorph*/ /*jshint esversion: 11, bitwise: false, evil: true*/ -modules.threads = '2024-October-11'; +modules.threads = '2024-October-12'; var ThreadManager; var Process; @@ -2341,7 +2341,9 @@ Process.prototype.reportListItem = function (index, list) { return list.query(index); } value = list.lookup(index); - if (value instanceof Context) { + if (value instanceof Context && (parseFloat(index) !== +index)) { + // treat the ring as macro and bind it to the list as environment + // for OOP 2.0 value = this.reportContextFor(value, list); } return value; diff --git a/sw.js b/sw.js index b68016207..92ff3558c 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /*global self, caches*/ /*jshint esversion: 6*/ -var snapVersion = '10.1.0', +var snapVersion = '10.1.1', cacheName = `snap-pwa-${snapVersion}`, filesToCache = [ 'snap.html',