Title: [121924] trunk/Source/_javascript_Core
Revision
121924
Author
oli...@apple.com
Date
2012-07-05 13:36:37 -0700 (Thu, 05 Jul 2012)

Log Message

JSObjectCallAsFunction should thisConvert the provided thisObject
https://bugs.webkit.org/show_bug.cgi?id=90628

Reviewed by Gavin Barraclough.

Perform this conversion on the provided this object.

* API/JSObjectRef.cpp:
(JSObjectCallAsFunction):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/API/JSObjectRef.cpp (121923 => 121924)


--- trunk/Source/_javascript_Core/API/JSObjectRef.cpp	2012-07-05 20:19:08 UTC (rev 121923)
+++ trunk/Source/_javascript_Core/API/JSObjectRef.cpp	2012-07-05 20:36:37 UTC (rev 121924)
@@ -428,6 +428,8 @@
     if (!jsThisObject)
         jsThisObject = exec->globalThisValue();
 
+    jsThisObject = jsThisObject->methodTable()->toThisObject(jsThisObject, exec);
+    
     MarkedArgumentBuffer argList;
     for (size_t i = 0; i < argumentCount; i++)
         argList.append(toJS(exec, arguments[i]));

Modified: trunk/Source/_javascript_Core/ChangeLog (121923 => 121924)


--- trunk/Source/_javascript_Core/ChangeLog	2012-07-05 20:19:08 UTC (rev 121923)
+++ trunk/Source/_javascript_Core/ChangeLog	2012-07-05 20:36:37 UTC (rev 121924)
@@ -1,3 +1,15 @@
+2012-07-05  Oliver Hunt  <oli...@apple.com>
+
+        JSObjectCallAsFunction should thisConvert the provided thisObject
+        https://bugs.webkit.org/show_bug.cgi?id=90628
+
+        Reviewed by Gavin Barraclough.
+
+        Perform this conversion on the provided this object.
+
+        * API/JSObjectRef.cpp:
+        (JSObjectCallAsFunction):
+
 2012-07-05  Zoltan Herczeg  <zherc...@webkit.org>
 
         [Qt] Unreviewed buildfix after r121886. Typo fix.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to