Rename primitiveReturnValue -> primitiveReportedValue

This commit is contained in:
Tim Mickel 2016-06-20 14:31:48 -04:00
parent e83cfa6049
commit e56c6e6980

View file

@ -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);