google / google/closure-compiler

'rewrite_polyfills= false' is not working when language_out is present and below ECMASCRIPT_2017

Open
#4,080 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.