mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-22 22:12:28 -05:00
Rename primitiveReturnValue
-> primitiveReportedValue
This commit is contained in:
parent
e83cfa6049
commit
e56c6e6980
1 changed files with 4 additions and 4 deletions
|
@ -82,8 +82,8 @@ var execute = function (sequencer, thread) {
|
||||||
console.log('with arguments: ', argValues);
|
console.log('with arguments: ', argValues);
|
||||||
console.log('and stack frame: ', currentStackFrame);
|
console.log('and stack frame: ', currentStackFrame);
|
||||||
}
|
}
|
||||||
var primitiveReturnValue = null;
|
var primitiveReportedValue = null;
|
||||||
primitiveReturnValue = blockFunction(argValues, {
|
primitiveReportedValue = blockFunction(argValues, {
|
||||||
yield: thread.yield.bind(thread),
|
yield: thread.yield.bind(thread),
|
||||||
done: function() {
|
done: function() {
|
||||||
sequencer.proceedThread(thread);
|
sequencer.proceedThread(thread);
|
||||||
|
@ -104,9 +104,9 @@ var execute = function (sequencer, thread) {
|
||||||
});
|
});
|
||||||
if (thread.status === Thread.STATUS_RUNNING) {
|
if (thread.status === Thread.STATUS_RUNNING) {
|
||||||
if (DEBUG_BLOCK_CALLS) {
|
if (DEBUG_BLOCK_CALLS) {
|
||||||
console.log('reporting value: ', primitiveReturnValue);
|
console.log('reporting value: ', primitiveReportedValue);
|
||||||
}
|
}
|
||||||
thread.pushReportedValue(primitiveReturnValue);
|
thread.pushReportedValue(primitiveReportedValue);
|
||||||
}
|
}
|
||||||
if (DEBUG_BLOCK_CALLS) {
|
if (DEBUG_BLOCK_CALLS) {
|
||||||
console.log('ending stack frame: ', currentStackFrame);
|
console.log('ending stack frame: ', currentStackFrame);
|
||||||
|
|
Loading…
Reference in a new issue