Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Oct 20, 2023
1 parent d014c46 commit 9a32059
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/jsm/nodes/transpiler/TSLEncoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ class TSLEncoder {
for ( const statement of body ) {

code += this.emitExtraLine( statement );
code += this.tab + this.emitExpression( statement ) + ';\n';
code += this.tab + this.emitExpression( statement )

if ( code.slice( - 1 ) !== '}' ) code += ';';

code += '\n';

this.setLastStatement( statement );

Expand Down

0 comments on commit 9a32059

Please sign in to comment.