Commit d56ac44
committed
[Transforms] fix
* Fix 7913: emit prologue directives as a first statement in emitted AMD module
* Do not ensure that prologue-directive is added when using it when transforming function body
* Address PR: preserve prologue directives location and make sure it is the first statement in the result statements array
* Address PR: fix comment_this = this capture emitted before "use strict" directives in AMD module output (microsoft#7953)1 parent c21ff64 commit d56ac44
3 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1252 | 1252 | | |
1253 | 1253 | | |
1254 | 1254 | | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1255 | 1265 | | |
| 1266 | + | |
1256 | 1267 | | |
1257 | 1268 | | |
1258 | 1269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1211 | 1211 | | |
1212 | 1212 | | |
1213 | 1213 | | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
1214 | 1217 | | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
1215 | 1223 | | |
1216 | 1224 | | |
1217 | 1225 | | |
| |||
1221 | 1229 | | |
1222 | 1230 | | |
1223 | 1231 | | |
1224 | | - | |
1225 | 1232 | | |
1226 | 1233 | | |
1227 | | - | |
| 1234 | + | |
1228 | 1235 | | |
1229 | 1236 | | |
1230 | 1237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments