From ed551698c6e37c412c320e646f4ada4f31e9721f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20M=C3=B6nig?= Date: Mon, 23 Dec 2024 15:09:18 +0100 Subject: [PATCH] prepared v10.3.5 patch --- HISTORY.md | 8 ++++++++ snap.html | 4 ++-- src/gui.js | 4 ++-- src/threads.js | 10 +++++++++- sw.js | 2 +- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index f69b6f557..6c82bcfd9 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,14 @@ ## in development: +## 10.3.5: +* **Notable Fixes:** + * disabled some theoretical albeit unsupported programmatical variadic slot settings + +### 2024-12-23 +* threads: added some guards against assholes +* prepared v10.3.5 patch + ## 10.3.4: * **Notable Changes:** * added "compress ... by ..." reporter to the Pixels library diff --git a/snap.html b/snap.html index 3ee2624f7..537bed6d5 100755 --- a/snap.html +++ b/snap.html @@ -17,10 +17,10 @@ - + - + diff --git a/src/gui.js b/src/gui.js index 325c76e61..6954d80ad 100644 --- a/src/gui.js +++ b/src/gui.js @@ -87,11 +87,11 @@ HatBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2024-December-18'; +modules.gui = '2024-December-23'; // Declarations -var SnapVersion = '10.3.4'; +var SnapVersion = '10.3.5'; var IDE_Morph; var ProjectDialogMorph; diff --git a/src/threads.js b/src/threads.js index 6814b8577..c0f7ff948 100644 --- a/src/threads.js +++ b/src/threads.js @@ -66,7 +66,7 @@ CustomHatBlockMorph*/ /*jshint esversion: 11, bitwise: false, evil: true*/ -modules.threads = '2024-December-05'; +modules.threads = '2024-December-23'; var ThreadManager; var Process; @@ -8594,6 +8594,14 @@ Process.prototype.slotSpec = function (num) { if (spec === 'upvar' && id > 100) { return null; } + if (num > 100 && [ + 'loop', 'scriptVars', 'receive', 'send', 'elseif' + ].includes(spec) && num > 100) + { + // guard against unimaginative metaprogramming fetishist assholes + // badmouthing Snap! "bugs" in the forums + return null; + } return prefix + '%' + spec; }; diff --git a/sw.js b/sw.js index c54bc8869..76fc82c83 100644 --- a/sw.js +++ b/sw.js @@ -1,6 +1,6 @@ /*global self, caches*/ /*jshint esversion: 6*/ -var snapVersion = '10.3.4', +var snapVersion = '10.3.5', cacheName = `snap-pwa-${snapVersion}`, filesToCache = [ 'snap.html',