File tree Expand file tree Collapse file tree
src/main/java/org/htmlunit/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -154,8 +154,8 @@ public Scriptable getParentScope() {
154154 * {@inheritDoc}
155155 */
156156 @ Override
157- public void setParentScope (final Scriptable parent ) {
158- wrapped_ .setParentScope (parent );
157+ public void setParentScope (final Scriptable scope ) {
158+ wrapped_ .setParentScope (scope );
159159 }
160160
161161 /**
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ public Locale maximize() {
308308 .build ();
309309
310310 final Locale l = new Locale (locale );
311- l .setParentScope (getWindow (this ));
311+ l .setParentScope (getTopLevelScope (this ));
312312 l .setPrototype (this .getPrototype ());
313313 return l ;
314314 }
@@ -325,7 +325,7 @@ public Locale minimize() {
325325 .build ();
326326
327327 final Locale l = new Locale (locale );
328- l .setParentScope (getWindow (this ));
328+ l .setParentScope (getTopLevelScope (this ));
329329 l .setPrototype (this .getPrototype ());
330330 return l ;
331331 }
You can’t perform that action at this time.
0 commit comments