Skip to content

Commit 084ca44

Browse files
committed
4.6.1
* change logix back to not allow deletion of other instance states (other then 0_userdata.0)
1 parent 2779ba2 commit 084ca44

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ And then call "npm run build".
3333
- ...
3434

3535
## Changelog
36-
### 4.6.0 (2020-04-24)
36+
### 4.6.1 (2020-05-1x)
3737
* (bluefox) Updated blockly to 3.20200402.1
38-
* (bluefox) Added to blockly the switch/case block. Warning do not use it in production, because license request from author still pending.
38+
* (bluefox) Added to blockly the switch/case block.
3939
* (Mic-M) fix log crash
4040
* (Apollon77) Add new Sentry key and exclude user script exceptions
41+
* (Garfonso) Several fixes and optimizations for Mirroring functionality
42+
* (Apollon77) add support for 0_userdata.0 to createState and deleteState
4143

4244
### 4.5.1 (2020-04-17)
4345
* (Apollon77) Nodejs 10 is new minimum Version!

lib/sandbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ function sandBox(script, name, verbose, debug, context) {
19181918
sandbox.verbose && sandbox.log('deleteState(id=' + id + ')', 'debug');
19191919

19201920
let found = false;
1921-
if ((id.match(/^javascript\.\d+\./) || id.startsWith('0_userdata.0.')) && objects[id]) {
1921+
if (id.startsWith('0_userdata.0.') && objects[id]) {
19221922
found = true;
19231923
delete objects[id];
19241924
if (states[id]) delete states[id];

0 commit comments

Comments
 (0)