Quantcast

[HtmlUnit] SVN: [14141] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlPage.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14141] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlPage.java

asashour-2
Revision: 14141
          http://sourceforge.net/p/htmlunit/code/14141
Author:   asashour
Date:     2017-04-20 11:37:57 +0000 (Thu, 20 Apr 2017)
Log Message:
-----------
hu3: fix bound properties

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java 2017-04-20 11:16:36 UTC (rev 14140)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java 2017-04-20 11:37:57 UTC (rev 14141)
@@ -2616,7 +2616,7 @@
             if (globalChanged) {
                 com.gargoylesoftware.js.nashorn.internal.runtime.Context.setGlobal(global);
             }
-
+            thisObject.addBoundProperties(global);
             final Object result = ScriptRuntime.apply(functionToCall, thisObject, args);
             getWebClient().getJavaScriptEngine().processPostponedActions();
             return new ScriptResult(result, getWebClient().getCurrentWindow().getEnclosedPage());


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...