Skip to content
Merged
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
8 changes: 6 additions & 2 deletions src/blocks/scratch3_procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,19 @@ class Scratch3ProcedureBlocks {
argumentReporterStringNumber (args, util) {
const value = util.getParam(args.VALUE);
if (value === null) {
return '';
// When the parameter is not found in the most recent procedure
// call, the default is always 0.
return 0;
}
return value;
}

argumentReporterBoolean (args, util) {
const value = util.getParam(args.VALUE);
if (value === null) {
return false;
// When the parameter is not found in the most recent procedure
// call, the default is always 0.
return 0;
}
return value;
}
Expand Down
1 change: 1 addition & 0 deletions src/engine/thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ class Thread {
if (frame.params.hasOwnProperty(paramName)) {
return frame.params[paramName];
}
return null;

This comment was marked as abuse.

This comment was marked as abuse.

}
return null;
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.