@@ -476,7 +476,7 @@ public static void configureRhino(final WebClient webClient, final BrowserVersio
476476 * @throws IOException in case of problems
477477 */
478478 public static void applyPolyfills (final WebClient webClient , final BrowserVersion browserVersion ,
479- final Context context , final Scriptable scope , final HtmlUnitScriptable scriptable ) throws IOException {
479+ final Context context , final VarScope scope , final HtmlUnitScriptable scriptable ) throws IOException {
480480
481481 if (webClient .getOptions ().isFetchPolyfillEnabled ()) {
482482 Polyfill .getFetchPolyfill ().apply (context , scope , scriptable );
@@ -738,7 +738,7 @@ public void shutdown() {
738738 * {@inheritDoc}
739739 */
740740 @ Override
741- public Script compile (final HtmlPage owningPage , final Scriptable scope , final String sourceCode ,
741+ public Script compile (final HtmlPage owningPage , final VarScope scope , final String sourceCode ,
742742 final String sourceName , final int startLine ) {
743743 WebAssert .notNull ("sourceCode" , sourceCode );
744744
@@ -773,7 +773,7 @@ public final <T> T callSecured(final ContextAction<T> action, final HtmlPage pag
773773 */
774774 @ Override
775775 public Object execute (final HtmlPage page ,
776- final Scriptable scope ,
776+ final VarScope scope ,
777777 final String sourceCode ,
778778 final String sourceName ,
779779 final int startLine ) {
@@ -789,7 +789,7 @@ public Object execute(final HtmlPage page,
789789 * {@inheritDoc}
790790 */
791791 @ Override
792- public Object execute (final HtmlPage page , final Scriptable scope , final Script script ) {
792+ public Object execute (final HtmlPage page , final VarScope scope , final Script script ) {
793793 if (shutdownPending_ || webClient_ == null ) {
794794 // shutdown was already called
795795 return null ;
@@ -826,7 +826,7 @@ public Object callFunction(
826826 final Object [] args ,
827827 final DomNode node ) {
828828
829- final Scriptable scope = getScope (page , node );
829+ final VarScope scope = getScope (page , node );
830830
831831 return callFunction (page , javaScriptFunction , scope , thisObject , args );
832832 }
@@ -841,7 +841,7 @@ public Object callFunction(
841841 * @return the function result
842842 */
843843 public Object callFunction (final HtmlPage page , final Function function ,
844- final Scriptable scope , final Scriptable thisObject , final Object [] args ) {
844+ final VarScope scope , final Scriptable thisObject , final Object [] args ) {
845845 if (shutdownPending_ || webClient_ == null ) {
846846 // shutdown was already called
847847 return null ;
0 commit comments