@@ -239,15 +239,15 @@ private void init(final WebWindow webWindow, final Page page, final Context cont
239239
240240 configureConstantsPropertiesAndFunctions (windowConfig , window );
241241
242- final HtmlUnitScriptable windowPrototype = configureClass (windowConfig , window , browserVersion );
242+ final HtmlUnitScriptable windowPrototype = configureClass (windowConfig , window );
243243 window .setPrototype (windowPrototype );
244244 prototypes .put (windowConfig .getHostClass (), windowPrototype );
245245 prototypesPerJSName .put (windowConfig .getClassName (), windowPrototype );
246246
247247 // setup the prototypes
248248 for (final ClassConfiguration config : jsConfig_ .getAll ()) {
249249 if (windowConfig != config ) {
250- final HtmlUnitScriptable prototype = configureClass (config , window , browserVersion );
250+ final HtmlUnitScriptable prototype = configureClass (config , window );
251251 if (config .isJsObject ()) {
252252 // Place object with prototype property in Window scope
253253 final HtmlUnitScriptable obj = config .getHostClass ().getDeclaredConstructor ().newInstance ();
@@ -520,7 +520,6 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
520520 * Configures the specified class for access via JavaScript.
521521 * @param config the configuration settings for the class to be configured
522522 * @param window the scope within which to configure the class
523- * @param browserVersion the browser version
524523 * @throws InstantiationException if the new class cannot be instantiated
525524 * @throws IllegalAccessException if we don't have access to create the new instance
526525 * @return the created prototype
@@ -529,8 +528,7 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
529528 * @throws InvocationTargetException
530529 * @throws IllegalArgumentException
531530 */
532- public static HtmlUnitScriptable configureClass (final ClassConfiguration config , final Scriptable window ,
533- final BrowserVersion browserVersion )
531+ public static HtmlUnitScriptable configureClass (final ClassConfiguration config , final Scriptable window )
534532 throws InstantiationException , IllegalAccessException , IllegalArgumentException , InvocationTargetException , NoSuchMethodException , SecurityException {
535533
536534 final HtmlUnitScriptable prototype = config .getHostClass ().getDeclaredConstructor ().newInstance ();
0 commit comments