add comment before using util.initParams

Co-Authored-By: mzgoddard <mzgoddard@gmail.com>
This commit is contained in:
Karishma Chadha 2019-01-15 11:24:47 -05:00 committed by GitHub
parent 20ff75b776
commit fefb032f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,9 @@ class Scratch3ProcedureBlocks {
const [paramNames, paramIds, paramDefaults] = paramNamesIdsAndDefaults;
// Initialize params for the current stackFrame to {}, even if the procedure does
// not take any arguments. This is so that `getParam` down the line does not look
// at earlier stack frames for the values of a given parameter (#1729)
util.initParams();
for (let i = 0; i < paramIds.length; i++) {
if (args.hasOwnProperty(paramIds[i])) {