Skip to content

Commit

Permalink
Update transform_files.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Oct 31, 2022
1 parent 6587d19 commit a2f29c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/transform_files.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,14 @@ function transformClass(type, raw, options = {}) {
methodNameArg.value === 'initialize'
? 'super'
: `super.${methodNameArg.value}`
}(${args.map((arg) => printASTNode(value, arg)).join(', ')})`;
}(${args
.map((arg) => {
const out = printASTNode(value, arg);
out.replace(/[^\(|\)]/gm, '').length % 2 === 1
? out.splice(0, -1)
: out;
})
.join(', ')})`;
superTransforms.push({
node,
methodName: methodNameArg.value,
Expand Down

0 comments on commit a2f29c0

Please sign in to comment.