Fix array spread with sideeffects (#41523)

* Fix array spread with sideeffects

* Minor cleanup, ensure multiple emit helpers for outfile tests
This commit is contained in:
Ron Buckton
2021-01-05 17:24:21 -08:00
committed by GitHub
parent 7a5aadca69
commit 44ec8ddaee
55 changed files with 5253 additions and 4282 deletions
+2 -1
View File
@@ -615,7 +615,8 @@ const { b, ...rest } = { a: 10, b: 30, yy: 30 };
const content = fs.readFileSync(path, "utf8");
fs.writeFileSync(path, `${content}
function ${project}${file}Spread(...b: number[]) { }
${project}${file}Spread(...[10, 20, 30]);`);
const ${project}${file}_ar = [20, 30];
${project}${file}Spread(10, ...${project}${file}_ar);`);
replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false,
"downlevelIteration": true,`);