@@ -180,16 +180,16 @@ public static Location jsConstructor(final Context cx, final Scriptable scope,
180180 public void initialize (final Scriptable scope , final Window window , final Page page ) {
181181 final int attributes = ScriptableObject .PERMANENT | ScriptableObject .READONLY ;
182182
183- FunctionObject functionObject = new FunctionObject (METHOD_ASSIGN .getName (), METHOD_ASSIGN , this );
183+ FunctionObject functionObject = new FunctionObject (METHOD_ASSIGN .getName (), METHOD_ASSIGN , scope );
184184 defineProperty (METHOD_ASSIGN .getName (), functionObject , attributes );
185185
186- functionObject = new FunctionObject (METHOD_RELOAD .getName (), METHOD_RELOAD , this );
186+ functionObject = new FunctionObject (METHOD_RELOAD .getName (), METHOD_RELOAD , scope );
187187 defineProperty (METHOD_RELOAD .getName (), functionObject , attributes );
188188
189- functionObject = new FunctionObject (METHOD_REPLACE .getName (), METHOD_REPLACE , this );
189+ functionObject = new FunctionObject (METHOD_REPLACE .getName (), METHOD_REPLACE , scope );
190190 defineProperty (METHOD_REPLACE .getName (), functionObject , attributes );
191191
192- functionObject = new FunctionObject (METHOD_TO_STRING .getName (), METHOD_TO_STRING , this );
192+ functionObject = new FunctionObject (METHOD_TO_STRING .getName (), METHOD_TO_STRING , scope );
193193 defineProperty ("toString" , functionObject , attributes );
194194
195195 defineProperty (scope , "hash" , null , GETTER_HASH , SETTER_HASH , attributes );
0 commit comments