mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-17 18:10:08 -04:00
add missing return value
add missing return value for `makeMessageContextForTarget`
This commit is contained in:
parent
d3585a3c51
commit
28dc1ea8e7
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue