google / google/closure-compiler
'rewrite_polyfills= false' is not working when language_out is present and below ECMASCRIPT_2017
Open
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
`rewrite_polyfills= false` still inject polyfills when language_out is below ECMASCRIPT_2017 for async function
# step to reproduce
1. echo 'export async function test(){console.log('test');}'> my_program.js
2. npx google-closure-compiler --js=my_program.js --js_output_file=out.js --rewrite_polyfills=false --language_out=ECMASCRIPT_2015
async's polyfill is injected into the output.
Should polyfills not be injected under any circumstances when `rewrite_polyfills= false` ?
Contributor guide
Assessment
This issue has not been assessed yet.