diff --git a/src/engine/runtime.js b/src/engine/runtime.js index 61f67feea..33c2803d8 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -800,6 +800,7 @@ class Runtime extends EventEmitter { * Create a context ("args") object for use with `formatMessage` on messages which might be target-specific. * @param {Target} [target] - the target to use as context. If a target is not provided, default to the current * editing target or the stage. + * @returns {object} - the context object. */ makeMessageContextForTarget (target) { const context = {}; @@ -807,6 +808,7 @@ class Runtime extends EventEmitter { if (target) { context.targetType = (target.isStage ? TargetType.STAGE : TargetType.SPRITE); } + return context; } /**