Set report.embeddedPolyfills if you wont to embed twice. *: Never embed.
[]
forceEmbedPolyfills
Set report.requiredPolyfills if you want to embed for other script file.
[]
resultObject
Set resultObject = {} if you want to use it for later tasks.
null
Embedding polyfills is simply done by looking at the Identifier name. This may result in unnecessary embedding. For Example, Embed Array.prototype.indexOf polyfill for "str".indexOf(). In this case, use skipEmbedPolyfills : ["Array.prototype.indexOf"].
Result Object
Property
Description
Example
requiredPolyfills
Contains forceEmbedPolyfills and skipEmbedPolyfills.
[]
embeddedPolyfills
[]
Reference : Corresponding starting versions of built-in objects and built-in methods