@@ -78,8 +78,10 @@ public void writableWithinFunction() throws Exception {
7878 + "test1('hello', 'world');\n "
7979 + "output" ;
8080
81- runScript (script , "2-hi-undefined-you" , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , true );
82- runScript (script , "2-hi-undefined-you" , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , false );
81+ // we do a hard coded replacement
82+ // runScript(script, "2-hi-undefined-you", Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, true);
83+ // runScript(script, "2-hi-undefined-you", Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, false);
84+ Utils .assertWithAllModes_ES6 ("2-hi-undefined-you" , script );
8385 }
8486
8587 /**
@@ -102,8 +104,10 @@ public void readonlyWhenAccessThroughFunction() throws Exception {
102104 + "test();\n "
103105 + "output" ;
104106
105- runScript (script , "2-world-undefined-undefined" , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , true );
106- runScript (script , "2-hi-undefined-you" , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , false );
107+ // we do a hard coded replacement
108+ // runScript(script, "2-world-undefined-undefined", Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, true);
109+ // runScript(script, "2-hi-undefined-you", Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, false);
110+ Utils .assertWithAllModes_ES6 ("2-world-undefined-undefined" , script );
107111 }
108112
109113 /**
@@ -116,8 +120,10 @@ public void equalsWithFnArguments() throws Exception {
116120 + "}\n "
117121 + "test1('hello', 'world')" ;
118122
119- runScript (script , false , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , true );
120- runScript (script , true , Context .FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW , false );
123+ // we do a hard coded replacement
124+ // runScript(script, false, Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, true);
125+ // runScript(script, true, Context.FEATURE_HTMLUNIT_FN_ARGUMENTS_IS_RO_VIEW, false);
126+ Utils .assertWithAllModes_ES6 (false , script );
121127 }
122128
123129 private static void runScript (final String script , final Object expectedResult ,
0 commit comments