Open
Description
Expected Behavior
To trigger this Event block
{
opcode: 'whenArrived',
blockType: BlockType.EVENT,
text: 'When robot arrive [LOCATION]',
func: 'whenArrived',
arguments: {
LOCATION: {
type: ArgumentType.STRING,
defaultValue: "location",
menu: 'LOCATION',
}
},
isEdgeActivated: false,
}
I am calling this runtime.startHats("robot_whenArrived", { LOCATION: location }, target);
I expect that the menu can acceptReporters and startHats will still works with reporter block as arguments.
Actual Behavior
Only blocks with items selected from menu can be triggered by startHats
.
It cannot take reporters as arguments.
Steps to Reproduce
Using reporter as argument will make hatFields[matchField]
undefined in this check
scratch-vm/src/engine/runtime.js
Lines 1841 to 1851 in 91dadad
Metadata
Metadata
Assignees
Labels
No labels