From e56c6e69803c983c424059788dc1f339f6267c3f Mon Sep 17 00:00:00 2001 From: Tim Mickel Date: Mon, 20 Jun 2016 14:31:48 -0400 Subject: [PATCH] Rename `primitiveReturnValue` -> `primitiveReportedValue` --- src/engine/execute.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/execute.js b/src/engine/execute.js index 007739b0b..2cee0a1c9 100644 --- a/src/engine/execute.js +++ b/src/engine/execute.js @@ -82,8 +82,8 @@ var execute = function (sequencer, thread) { console.log('with arguments: ', argValues); console.log('and stack frame: ', currentStackFrame); } - var primitiveReturnValue = null; - primitiveReturnValue = blockFunction(argValues, { + var primitiveReportedValue = null; + primitiveReportedValue = blockFunction(argValues, { yield: thread.yield.bind(thread), done: function() { sequencer.proceedThread(thread); @@ -104,9 +104,9 @@ var execute = function (sequencer, thread) { }); if (thread.status === Thread.STATUS_RUNNING) { if (DEBUG_BLOCK_CALLS) { - console.log('reporting value: ', primitiveReturnValue); + console.log('reporting value: ', primitiveReportedValue); } - thread.pushReportedValue(primitiveReturnValue); + thread.pushReportedValue(primitiveReportedValue); } if (DEBUG_BLOCK_CALLS) { console.log('ending stack frame: ', currentStackFrame);