Class Polyfill

java.lang.Object
org.htmlunit.javascript.polyfill.Polyfill

public class Polyfill extends Object
Support to use polyfills for js features not implemented so far (idea from Colin Alworth).
Author:
Ronald Brill
  • Constructor Details

    • Polyfill

      public Polyfill()
  • Method Details

    • getFetchPolyfill

      public static Polyfill getFetchPolyfill() throws IOException
      Throws:
      IOException
    • apply

      public void apply(org.htmlunit.corejs.javascript.Context context, org.htmlunit.corejs.javascript.Scriptable scriptable)
      Compile the script if needed and exec to setup the context.
      Parameters:
      context - the context
      scriptable - the scriptable