Commit 39ffc4de authored by oliver@apple.com's avatar oliver@apple.com

Fix http/tests/misc/DOMContentLoaded-event.html

Reviewed by Maciej Stachowiak

The native call performance improvement removed a few places where we
unintentionally performed a toThisObject conversion.  This patch updates
the bindings codegen to not rely on this bug.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1b429e11
2009-05-05 Oliver Hunt <oliver@apple.com>
Reviewed by Maciej Stachowiak.
Expose toThisObject for the DOM Window
* JavaScriptCore.exp:
2009-05-05 Oliver Hunt <oliver@apple.com>
Reviewed by NOBODY (Make windows go again until i work out the
......@@ -103,6 +103,7 @@ __ZN3JSC10throwErrorEPNS_9ExecStateENS_9ErrorTypeERKNS_7UStringE
__ZN3JSC11JSByteArray15createStructureENS_7JSValueE
__ZN3JSC11JSByteArrayC1EPNS_9ExecStateEN3WTF10PassRefPtrINS_9StructureEEEPNS3_9ByteArrayEPKNS_9ClassInfoE
__ZN3JSC11JSImmediate12nonInlineNaNEv
__ZN3JSC11JSImmediate12toThisObjectENS_7JSValueEPNS_9ExecStateE
__ZN3JSC11JSImmediate8toObjectENS_7JSValueEPNS_9ExecStateE
__ZN3JSC11JSImmediate8toStringENS_7JSValueE
__ZN3JSC11JSImmediate9prototypeENS_7JSValueEPNS_9ExecStateE
......
2009-05-05 Oliver Hunt <oliver@apple.com>
Reviewed by Maciej Stachowiak.
Fix http/tests/misc/DOMContentLoaded-event.html
The native call performance improvement removed a few places where we
unintentionally performed a toThisObject conversion. This patch updates
the bindings codegen to not rely on this bug.
* bindings/scripts/CodeGeneratorJS.pm:
2009-05-05 Holger Hans Peter Freyther <zecke@selfish.org>
Reviewed by Xan Lopez and Gustavo Noronha.
......@@ -1332,7 +1332,7 @@ sub GenerateImplementation
$implKJSInclude{"Error.h"} = 1;
if ($interfaceName eq "DOMWindow") {
push(@implContent, " $className* castedThisObj = toJSDOMWindow(thisValue);\n");
push(@implContent, " $className* castedThisObj = toJSDOMWindow(thisValue.toThisObject(exec));\n");
push(@implContent, " if (!castedThisObj)\n");
push(@implContent, " return throwError(exec, TypeError);\n");
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment