Skip to content

Commit 057bc55

Browse files
authored
Inline temporary variables in jsifier.js. NFC (#18422)
1 parent 7a86519 commit 057bc55

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/jsifier.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,7 @@ function ${name}(${args}) {
481481
print(processMacros(preprocess(read(shellFile), shellFile)));
482482

483483
const preFile = MINIMAL_RUNTIME ? 'preamble_minimal.js' : 'preamble.js';
484-
const pre = processMacros(preprocess(read(preFile), preFile));
485-
print(pre);
484+
print(processMacros(preprocess(read(preFile), preFile)));
486485

487486
const generated = itemsDict.functionStub.concat(itemsDict.globalVariablePostSet);
488487
generated.forEach((item) => print(indentify(item.JS || '', 2)));
@@ -525,8 +524,7 @@ function ${name}(${args}) {
525524
}
526525

527526
const postFile = MINIMAL_RUNTIME ? 'postamble_minimal.js' : 'postamble.js';
528-
const post = processMacros(preprocess(read(postFile), postFile));
529-
print(post);
527+
print(processMacros(preprocess(read(postFile), postFile)));
530528

531529
print('\n//FORWARDED_DATA:' + JSON.stringify({
532530
librarySymbols: librarySymbols,

0 commit comments

Comments
 (0)