Skip to content

Commit

Permalink
only bind rings fetched from a list to the list as environment if the…
Browse files Browse the repository at this point in the history
…y are accessed by a non-numerical index (OOP 2.0)
  • Loading branch information
jmoenig committed Oct 11, 2024
1 parent 04ef335 commit 8e51d29
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
8 changes: 8 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
<script src="src/symbols.js?version=2024-09-13"></script>
<script src="src/widgets.js?version=2024-07-24"></script>
<script src="src/blocks.js?version=2024-10-11"></script>
<script src="src/threads.js?version=2024-10-11"></script>
<script src="src/threads.js?version=2024-10-12"></script>
<script src="src/objects.js?version=2024-10-11"></script>
<script src="src/scenes.js?version=2024-05-28"></script>
<script src="src/gui.js?version=2024-10-11"></script>
<script src="src/gui.js?version=2024-10-12"></script>
<script src="src/paint.js?version=2023-05-24"></script>
<script src="src/lists.js?version=2024-09-16"></script>
<script src="src/byob.js?version=2024-10-10"></script>
Expand Down
4 changes: 2 additions & 2 deletions src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 8e51d29

Please sign in to comment.