Skip to content

Commit

Permalink
Add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed Aug 28, 2024
1 parent dc5316d commit dbe0220
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/stepper/python/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,9 @@ const variablesBeginWithIgnore = [

/**
* Filter the variable names by removing those used internally by Skulpt.
*
* @param {Array} variableNames The names.
*
* @returns {Array}
*/
const filterInternalVariables = (variableNames: string[], excludedVariableNames: string[]): string[] => {
console.log('filter internal variables', {variableNames, excludedVariableNames})
return variableNames.filter((name) => {
if (-1 !== excludedVariableNames.indexOf(name)) {
return false;
Expand Down
2 changes: 2 additions & 0 deletions frontend/stepper/python/python_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ mod.${className} = Sk.misceval.buildClass(mod, newClass${className}, "${classNam
this.definedConstants.push(name);
}

console.log('defined constants', blocks);

modContents += "\nreturn mod;\n};";
Sk.builtinFiles["files"]["src/lib/" + generatorName + ".js"] = modContents;
this.availableModules.push(generatorName);
Expand Down

0 comments on commit dbe0220

Please sign in to comment.