kopia lustrzana https://github.com/backface/turtlestitch
fixed #3085 (I hope ^^)
rodzic
a8a349196e
commit
4c15b1215c
|
@ -62,6 +62,9 @@
|
|||
* German
|
||||
* Greek, thank you, HM100!
|
||||
|
||||
### 2022-07-31
|
||||
* threads: fixed #3085 (I hope ^^)
|
||||
|
||||
### 2022-07-30
|
||||
* Greek translation update, thank you, HM100!!
|
||||
* blocks: include custom block definition in the "scripts pic" of the block editor
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<script src="src/symbols.js?version=2021-03-03"></script>
|
||||
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||
<script src="src/blocks.js?version=2022-07-30"></script>
|
||||
<script src="src/threads.js?version=2022-07-19"></script>
|
||||
<script src="src/threads.js?version=2022-07-31"></script>
|
||||
<script src="src/objects.js?version=2022-07-19"></script>
|
||||
<script src="src/scenes.js?version=2022-03-03"></script>
|
||||
<script src="src/gui.js?version=2022-07-22"></script>
|
||||
|
|
|
@ -65,7 +65,7 @@ StagePickerMorph, CustomBlockDefinition*/
|
|||
|
||||
/*jshint esversion: 11, bitwise: false, evil: true*/
|
||||
|
||||
modules.threads = '2022-July-19';
|
||||
modules.threads = '2022-July-31';
|
||||
|
||||
var ThreadManager;
|
||||
var Process;
|
||||
|
@ -1646,7 +1646,8 @@ Process.prototype.evaluateCustomBlock = function () {
|
|||
exit,
|
||||
i,
|
||||
value,
|
||||
outer;
|
||||
outer,
|
||||
self;
|
||||
|
||||
if (!context) {return null; }
|
||||
this.procedureCount += 1;
|
||||
|
@ -1677,6 +1678,9 @@ Process.prototype.evaluateCustomBlock = function () {
|
|||
runnable.isCustomBlock = true;
|
||||
this.context.parentContext = runnable;
|
||||
|
||||
// capture the runtime environment in "this script"
|
||||
self = copy(runnable);
|
||||
|
||||
// passing parameters if any were passed
|
||||
if (parms.length > 0) {
|
||||
|
||||
|
@ -1733,7 +1737,7 @@ Process.prototype.evaluateCustomBlock = function () {
|
|||
this.readyToYield = true;
|
||||
}
|
||||
}
|
||||
outer.variables.addVar(Symbol.for('self'), method.body || new Context());
|
||||
outer.variables.addVar(Symbol.for('self'), self);
|
||||
runnable.expression = runnable.expression.blockSequence();
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue