java.lang.Object
org.htmlunit.javascript.polyfill.Polyfill
Support to use polyfills for js features not implemented so far
(idea from Colin Alworth).
- Author:
- Ronald Brill
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Polyfill
public Polyfill()
-
-
Method Details
-
getFetchPolyfill
- Returns:
- the build in fetch polyfill
- Throws:
IOException- in case of error
-
apply
public void apply(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.VarScope scope, org.htmlunit.corejs.javascript.Scriptable thisObject) Compile the script if needed and exec to setup the context.- Parameters:
context- the contextscope- the scope to execute relative tothisObject- the value "this" should be set to
-