Skip to content

Commit

Permalink
Don't display objects exported by class in analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienTainon committed Aug 16, 2024
1 parent 556c3a4 commit 68f91e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/stepper/python/analysis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ export const analyseSkulptScope = function(suspension: any): AnalysisScope {
continue;
}

// This is an object of a class exported by a module, we don't want to display it in analysis
if ('object' === typeof value && value.__variableName) {
continue;
}

if (typeof value === 'function') {
if (!value.prototype || !value.prototype.tp$name) {
continue;
Expand Down

0 comments on commit 68f91e3

Please sign in to comment.