diff options
Diffstat (limited to 'WebCore/bridge/runtime_array.cpp')
-rw-r--r-- | WebCore/bridge/runtime_array.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/WebCore/bridge/runtime_array.cpp b/WebCore/bridge/runtime_array.cpp index fead83a..2849822 100644 --- a/WebCore/bridge/runtime_array.cpp +++ b/WebCore/bridge/runtime_array.cpp @@ -36,9 +36,11 @@ namespace JSC { const ClassInfo RuntimeArray::s_info = { "RuntimeArray", &JSArray::info, 0, 0 }; -RuntimeArray::RuntimeArray(ExecState* exec, Bindings::Array* a) - : JSObject(getDOMStructure<RuntimeArray>(exec)) - , _array(a) +RuntimeArray::RuntimeArray(ExecState* exec, Bindings::Array* array) + // FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object + // We need to pass in the right global object for "array". + : JSObject(deprecatedGetDOMStructure<RuntimeArray>(exec)) + , _array(array) { } |