Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/block/src/events/func_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class FuncBase extends Blockly.Events.Abstract {
override isBlank: boolean = false;

/** The procCode of procedure. */
protected procCode?: string;
procCode?: string;

/**
* @param procedure The procedure model.
Expand Down
3 changes: 2 additions & 1 deletion packages/vm/src/engine/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ class Blocks {
if (
typeof (event as ClipCCBlock.Events.BlockBase).blockId !== 'string' &&
typeof (event as ClipCCBlock.Events.VarBase).varId !== 'string' &&
typeof (event as ClipCCBlock.Events.CommentBase).commentId !== 'string'
typeof (event as ClipCCBlock.Events.CommentBase).commentId !== 'string' &&
typeof (event as ClipCCBlock.FuncChange).procCode !== 'string'
) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vm/src/serialization/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const migrateMutation = (block, backward) => {
case 'return':
case 'generateshadows':
// Expect mutation[key] to be a string.
mutation[key] = (mutation[key] === 'true');
mutation[key] = typeof mutation[key] === 'string' ? (mutation[key] === 'true') : !!mutation[key];
break;
case 'argumentids':
case 'argumentnames':
Expand Down
Loading