Commit 1e5885e
committed
JS: Remove hoisting code from functions
'buildFunctionBody' no longer needs to handle hoisting, because hoisting now happens when visiting the block statement that is the body of the function.
Note that curly-brace functions contain a block statement as their body, not a list of statements.1 parent 427e329 commit 1e5885e
File tree
1 file changed
+1
-11
lines changed- javascript/extractor/src/com/semmle/js/extractor
1 file changed
+1
-11
lines changedLines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 589 | | |
598 | 590 | | |
599 | 591 | | |
| |||
1096 | 1088 | | |
1097 | 1089 | | |
1098 | 1090 | | |
1099 | | - | |
1100 | | - | |
1101 | 1091 | | |
1102 | 1092 | | |
1103 | 1093 | | |
| |||
1117 | 1107 | | |
1118 | 1108 | | |
1119 | 1109 | | |
1120 | | - | |
| 1110 | + | |
1121 | 1111 | | |
1122 | 1112 | | |
1123 | 1113 | | |
| |||
0 commit comments