diff -r 000000000000 -r 4f2f89ce4247 WebCore/generated/JSDOMCoreException.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebCore/generated/JSDOMCoreException.cpp Fri Sep 17 09:02:29 2010 +0300 @@ -0,0 +1,386 @@ +/* + This file is part of the WebKit open source project. + This file has been generated by generate-bindings.pl. DO NOT MODIFY! + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "config.h" +#include "JSDOMCoreException.h" + +#include "DOMCoreException.h" +#include "KURL.h" +#include +#include +#include +#include + +using namespace JSC; + +namespace WebCore { + +ASSERT_CLASS_FITS_IN_CELL(JSDOMCoreException); + +/* Hash table */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSDOMCoreExceptionTableValues[5] = +{ + { "code", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionCode), (intptr_t)0 THUNK_GENERATOR(0) }, + { "name", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionName), (intptr_t)0 THUNK_GENERATOR(0) }, + { "message", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionMessage), (intptr_t)0 THUNK_GENERATOR(0) }, + { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSDOMCoreExceptionTable = { 10, 7, JSDOMCoreExceptionTableValues, 0 }; +/* Hash table for constructor */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSDOMCoreExceptionConstructorTableValues[23] = +{ + { "INDEX_SIZE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINDEX_SIZE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "DOMSTRING_SIZE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionDOMSTRING_SIZE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "HIERARCHY_REQUEST_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionHIERARCHY_REQUEST_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "WRONG_DOCUMENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionWRONG_DOCUMENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_CHARACTER_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_CHARACTER_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NO_DATA_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNO_DATA_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NO_MODIFICATION_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNO_MODIFICATION_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NOT_FOUND_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNOT_FOUND_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NOT_SUPPORTED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNOT_SUPPORTED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INUSE_ATTRIBUTE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINUSE_ATTRIBUTE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_STATE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_STATE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "SYNTAX_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionSYNTAX_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_MODIFICATION_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_MODIFICATION_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NAMESPACE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNAMESPACE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_ACCESS_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_ACCESS_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "VALIDATION_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionVALIDATION_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "TYPE_MISMATCH_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionTYPE_MISMATCH_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "SECURITY_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionSECURITY_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NETWORK_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNETWORK_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "ABORT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionABORT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "URL_MISMATCH_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionURL_MISMATCH_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "QUOTA_EXCEEDED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionQUOTA_EXCEEDED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSDOMCoreExceptionConstructorTable = { 67, 63, JSDOMCoreExceptionConstructorTableValues, 0 }; +class JSDOMCoreExceptionConstructor : public DOMConstructorObject { +public: + JSDOMCoreExceptionConstructor(JSC::ExecState*, JSDOMGlobalObject*); + + virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); + virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); + virtual const JSC::ClassInfo* classInfo() const { return &s_info; } + static const JSC::ClassInfo s_info; + static PassRefPtr createStructure(JSC::JSValue prototype) + { + return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); + } +protected: + static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; +}; + +const ClassInfo JSDOMCoreExceptionConstructor::s_info = { "DOMExceptionConstructor", 0, &JSDOMCoreExceptionConstructorTable, 0 }; + +JSDOMCoreExceptionConstructor::JSDOMCoreExceptionConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) + : DOMConstructorObject(JSDOMCoreExceptionConstructor::createStructure(globalObject->objectPrototype()), globalObject) +{ + putDirect(exec->propertyNames().prototype, JSDOMCoreExceptionPrototype::self(exec, globalObject), DontDelete | ReadOnly); +} + +bool JSDOMCoreExceptionConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, &JSDOMCoreExceptionConstructorTable, this, propertyName, slot); +} + +bool JSDOMCoreExceptionConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, &JSDOMCoreExceptionConstructorTable, this, propertyName, descriptor); +} + +/* Hash table for prototype */ +#if ENABLE(JIT) +#define THUNK_GENERATOR(generator) , generator +#else +#define THUNK_GENERATOR(generator) +#endif + +static const HashTableValue JSDOMCoreExceptionPrototypeTableValues[24] = +{ + { "INDEX_SIZE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINDEX_SIZE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "DOMSTRING_SIZE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionDOMSTRING_SIZE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "HIERARCHY_REQUEST_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionHIERARCHY_REQUEST_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "WRONG_DOCUMENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionWRONG_DOCUMENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_CHARACTER_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_CHARACTER_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NO_DATA_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNO_DATA_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NO_MODIFICATION_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNO_MODIFICATION_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NOT_FOUND_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNOT_FOUND_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NOT_SUPPORTED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNOT_SUPPORTED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INUSE_ATTRIBUTE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINUSE_ATTRIBUTE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_STATE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_STATE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "SYNTAX_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionSYNTAX_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_MODIFICATION_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_MODIFICATION_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NAMESPACE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNAMESPACE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "INVALID_ACCESS_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionINVALID_ACCESS_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "VALIDATION_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionVALIDATION_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "TYPE_MISMATCH_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionTYPE_MISMATCH_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "SECURITY_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionSECURITY_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "NETWORK_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionNETWORK_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "ABORT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionABORT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "URL_MISMATCH_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionURL_MISMATCH_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "QUOTA_EXCEEDED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast(jsDOMCoreExceptionQUOTA_EXCEEDED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, + { "toString", DontDelete | DontEnum | Function, (intptr_t)static_cast(jsDOMCoreExceptionPrototypeFunctionToString), (intptr_t)0 THUNK_GENERATOR(0) }, + { 0, 0, 0, 0 THUNK_GENERATOR(0) } +}; + +#undef THUNK_GENERATOR +static JSC_CONST_HASHTABLE HashTable JSDOMCoreExceptionPrototypeTable = { 68, 63, JSDOMCoreExceptionPrototypeTableValues, 0 }; +static const HashTable* getJSDOMCoreExceptionPrototypeTable(ExecState* exec) +{ + return getHashTableForGlobalData(exec->globalData(), &JSDOMCoreExceptionPrototypeTable); +} +const ClassInfo JSDOMCoreExceptionPrototype::s_info = { "DOMExceptionPrototype", 0, 0, getJSDOMCoreExceptionPrototypeTable }; + +JSObject* JSDOMCoreExceptionPrototype::self(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMPrototype(exec, globalObject); +} + +bool JSDOMCoreExceptionPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticPropertySlot(exec, getJSDOMCoreExceptionPrototypeTable(exec), this, propertyName, slot); +} + +bool JSDOMCoreExceptionPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticPropertyDescriptor(exec, getJSDOMCoreExceptionPrototypeTable(exec), this, propertyName, descriptor); +} + +static const HashTable* getJSDOMCoreExceptionTable(ExecState* exec) +{ + return getHashTableForGlobalData(exec->globalData(), &JSDOMCoreExceptionTable); +} +const ClassInfo JSDOMCoreException::s_info = { "DOMException", 0, 0, getJSDOMCoreExceptionTable }; + +JSDOMCoreException::JSDOMCoreException(NonNullPassRefPtr structure, JSDOMGlobalObject* globalObject, PassRefPtr impl) + : DOMObjectWithGlobalPointer(structure, globalObject) + , m_impl(impl) +{ +} + +JSDOMCoreException::~JSDOMCoreException() +{ + forgetDOMObject(this, impl()); +} + +JSObject* JSDOMCoreException::createPrototype(ExecState* exec, JSGlobalObject* globalObject) +{ + return new (exec) JSDOMCoreExceptionPrototype(globalObject, JSDOMCoreExceptionPrototype::createStructure(globalObject->objectPrototype())); +} + +bool JSDOMCoreException::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) +{ + return getStaticValueSlot(exec, getJSDOMCoreExceptionTable(exec), this, propertyName, slot); +} + +bool JSDOMCoreException::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) +{ + return getStaticValueDescriptor(exec, getJSDOMCoreExceptionTable(exec), this, propertyName, descriptor); +} + +JSValue jsDOMCoreExceptionCode(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSDOMCoreException* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + DOMCoreException* imp = static_cast(castedThis->impl()); + JSValue result = jsNumber(exec, imp->code()); + return result; +} + +JSValue jsDOMCoreExceptionName(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSDOMCoreException* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + DOMCoreException* imp = static_cast(castedThis->impl()); + JSValue result = jsString(exec, imp->name()); + return result; +} + +JSValue jsDOMCoreExceptionMessage(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSDOMCoreException* castedThis = static_cast(asObject(slotBase)); + UNUSED_PARAM(exec); + DOMCoreException* imp = static_cast(castedThis->impl()); + JSValue result = jsString(exec, imp->message()); + return result; +} + +JSValue jsDOMCoreExceptionConstructor(ExecState* exec, JSValue slotBase, const Identifier&) +{ + JSDOMCoreException* domObject = static_cast(asObject(slotBase)); + return JSDOMCoreException::getConstructor(exec, domObject->globalObject()); +} +JSValue JSDOMCoreException::getConstructor(ExecState* exec, JSGlobalObject* globalObject) +{ + return getDOMConstructor(exec, static_cast(globalObject)); +} + +EncodedJSValue JSC_HOST_CALL jsDOMCoreExceptionPrototypeFunctionToString(ExecState* exec) +{ + JSValue thisValue = exec->hostThisValue(); + if (!thisValue.inherits(&JSDOMCoreException::s_info)) + return throwVMTypeError(exec); + JSDOMCoreException* castedThis = static_cast(asObject(thisValue)); + DOMCoreException* imp = static_cast(castedThis->impl()); + + + JSC::JSValue result = jsString(exec, imp->toString()); + return JSValue::encode(result); +} + +// Constant getters + +JSValue jsDOMCoreExceptionINDEX_SIZE_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(1)); +} + +JSValue jsDOMCoreExceptionDOMSTRING_SIZE_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(2)); +} + +JSValue jsDOMCoreExceptionHIERARCHY_REQUEST_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(3)); +} + +JSValue jsDOMCoreExceptionWRONG_DOCUMENT_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(4)); +} + +JSValue jsDOMCoreExceptionINVALID_CHARACTER_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(5)); +} + +JSValue jsDOMCoreExceptionNO_DATA_ALLOWED_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(6)); +} + +JSValue jsDOMCoreExceptionNO_MODIFICATION_ALLOWED_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(7)); +} + +JSValue jsDOMCoreExceptionNOT_FOUND_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(8)); +} + +JSValue jsDOMCoreExceptionNOT_SUPPORTED_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(9)); +} + +JSValue jsDOMCoreExceptionINUSE_ATTRIBUTE_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(10)); +} + +JSValue jsDOMCoreExceptionINVALID_STATE_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(11)); +} + +JSValue jsDOMCoreExceptionSYNTAX_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(12)); +} + +JSValue jsDOMCoreExceptionINVALID_MODIFICATION_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(13)); +} + +JSValue jsDOMCoreExceptionNAMESPACE_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(14)); +} + +JSValue jsDOMCoreExceptionINVALID_ACCESS_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(15)); +} + +JSValue jsDOMCoreExceptionVALIDATION_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(16)); +} + +JSValue jsDOMCoreExceptionTYPE_MISMATCH_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(17)); +} + +JSValue jsDOMCoreExceptionSECURITY_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(18)); +} + +JSValue jsDOMCoreExceptionNETWORK_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(19)); +} + +JSValue jsDOMCoreExceptionABORT_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(20)); +} + +JSValue jsDOMCoreExceptionURL_MISMATCH_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(21)); +} + +JSValue jsDOMCoreExceptionQUOTA_EXCEEDED_ERR(ExecState* exec, JSValue, const Identifier&) +{ + return jsNumber(exec, static_cast(22)); +} + +JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, DOMCoreException* object) +{ + return getDOMObjectWrapper(exec, globalObject, object); +} +DOMCoreException* toDOMCoreException(JSC::JSValue value) +{ + return value.inherits(&JSDOMCoreException::s_info) ? static_cast(asObject(value))->impl() : 0; +} + +}