|
1 /* |
|
2 This file is part of the WebKit open source project. |
|
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
|
4 |
|
5 This library is free software; you can redistribute it and/or |
|
6 modify it under the terms of the GNU Library General Public |
|
7 License as published by the Free Software Foundation; either |
|
8 version 2 of the License, or (at your option) any later version. |
|
9 |
|
10 This library is distributed in the hope that it will be useful, |
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 Library General Public License for more details. |
|
14 |
|
15 You should have received a copy of the GNU Library General Public License |
|
16 along with this library; see the file COPYING.LIB. If not, write to |
|
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
18 Boston, MA 02110-1301, USA. |
|
19 */ |
|
20 |
|
21 #include "config.h" |
|
22 |
|
23 #if ENABLE(INDEXED_DATABASE) |
|
24 |
|
25 #include "JSIDBDatabaseException.h" |
|
26 |
|
27 #include "IDBDatabaseException.h" |
|
28 #include "KURL.h" |
|
29 #include <runtime/JSNumberCell.h> |
|
30 #include <runtime/JSString.h> |
|
31 #include <wtf/GetPtr.h> |
|
32 |
|
33 using namespace JSC; |
|
34 |
|
35 namespace WebCore { |
|
36 |
|
37 ASSERT_CLASS_FITS_IN_CELL(JSIDBDatabaseException); |
|
38 |
|
39 /* Hash table */ |
|
40 #if ENABLE(JIT) |
|
41 #define THUNK_GENERATOR(generator) , generator |
|
42 #else |
|
43 #define THUNK_GENERATOR(generator) |
|
44 #endif |
|
45 |
|
46 static const HashTableValue JSIDBDatabaseExceptionTableValues[4] = |
|
47 { |
|
48 { "code", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionCode), (intptr_t)setJSIDBDatabaseExceptionCode THUNK_GENERATOR(0) }, |
|
49 { "message", DontDelete, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionMessage), (intptr_t)setJSIDBDatabaseExceptionMessage THUNK_GENERATOR(0) }, |
|
50 { "constructor", DontEnum | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionConstructor), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
51 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
52 }; |
|
53 |
|
54 #undef THUNK_GENERATOR |
|
55 static JSC_CONST_HASHTABLE HashTable JSIDBDatabaseExceptionTable = { 9, 7, JSIDBDatabaseExceptionTableValues, 0 }; |
|
56 /* Hash table for constructor */ |
|
57 #if ENABLE(JIT) |
|
58 #define THUNK_GENERATOR(generator) , generator |
|
59 #else |
|
60 #define THUNK_GENERATOR(generator) |
|
61 #endif |
|
62 |
|
63 static const HashTableValue JSIDBDatabaseExceptionConstructorTableValues[12] = |
|
64 { |
|
65 { "UNKNOWN_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionUNKNOWN_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
66 { "NON_TRANSIENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNON_TRANSIENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
67 { "NOT_FOUND_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNOT_FOUND_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
68 { "CONSTRAINT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionCONSTRAINT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
69 { "DATA_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionDATA_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
70 { "NOT_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNOT_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
71 { "SERIAL_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionSERIAL_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
72 { "RECOVERABLE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionRECOVERABLE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
73 { "TRANSIENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionTRANSIENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
74 { "TIMEOUT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionTIMEOUT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
75 { "DEADLOCK_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionDEADLOCK_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
76 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
77 }; |
|
78 |
|
79 #undef THUNK_GENERATOR |
|
80 static JSC_CONST_HASHTABLE HashTable JSIDBDatabaseExceptionConstructorTable = { 34, 31, JSIDBDatabaseExceptionConstructorTableValues, 0 }; |
|
81 |
|
82 COMPILE_ASSERT(0 == IDBDatabaseException::UNKNOWN_ERR, IDBDatabaseExceptionEnumUNKNOWN_ERRIsWrongUseDontCheckEnums); |
|
83 COMPILE_ASSERT(1 == IDBDatabaseException::NON_TRANSIENT_ERR, IDBDatabaseExceptionEnumNON_TRANSIENT_ERRIsWrongUseDontCheckEnums); |
|
84 COMPILE_ASSERT(2 == IDBDatabaseException::NOT_FOUND_ERR, IDBDatabaseExceptionEnumNOT_FOUND_ERRIsWrongUseDontCheckEnums); |
|
85 COMPILE_ASSERT(3 == IDBDatabaseException::CONSTRAINT_ERR, IDBDatabaseExceptionEnumCONSTRAINT_ERRIsWrongUseDontCheckEnums); |
|
86 COMPILE_ASSERT(4 == IDBDatabaseException::DATA_ERR, IDBDatabaseExceptionEnumDATA_ERRIsWrongUseDontCheckEnums); |
|
87 COMPILE_ASSERT(5 == IDBDatabaseException::NOT_ALLOWED_ERR, IDBDatabaseExceptionEnumNOT_ALLOWED_ERRIsWrongUseDontCheckEnums); |
|
88 COMPILE_ASSERT(11 == IDBDatabaseException::SERIAL_ERR, IDBDatabaseExceptionEnumSERIAL_ERRIsWrongUseDontCheckEnums); |
|
89 COMPILE_ASSERT(21 == IDBDatabaseException::RECOVERABLE_ERR, IDBDatabaseExceptionEnumRECOVERABLE_ERRIsWrongUseDontCheckEnums); |
|
90 COMPILE_ASSERT(31 == IDBDatabaseException::TRANSIENT_ERR, IDBDatabaseExceptionEnumTRANSIENT_ERRIsWrongUseDontCheckEnums); |
|
91 COMPILE_ASSERT(32 == IDBDatabaseException::TIMEOUT_ERR, IDBDatabaseExceptionEnumTIMEOUT_ERRIsWrongUseDontCheckEnums); |
|
92 COMPILE_ASSERT(33 == IDBDatabaseException::DEADLOCK_ERR, IDBDatabaseExceptionEnumDEADLOCK_ERRIsWrongUseDontCheckEnums); |
|
93 |
|
94 class JSIDBDatabaseExceptionConstructor : public DOMConstructorObject { |
|
95 public: |
|
96 JSIDBDatabaseExceptionConstructor(JSC::ExecState*, JSDOMGlobalObject*); |
|
97 |
|
98 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&); |
|
99 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&); |
|
100 virtual const JSC::ClassInfo* classInfo() const { return &s_info; } |
|
101 static const JSC::ClassInfo s_info; |
|
102 static PassRefPtr<JSC::Structure> createStructure(JSC::JSValue prototype) |
|
103 { |
|
104 return JSC::Structure::create(prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount); |
|
105 } |
|
106 protected: |
|
107 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | JSC::ImplementsHasInstance | DOMConstructorObject::StructureFlags; |
|
108 }; |
|
109 |
|
110 const ClassInfo JSIDBDatabaseExceptionConstructor::s_info = { "IDBDatabaseExceptionConstructor", 0, &JSIDBDatabaseExceptionConstructorTable, 0 }; |
|
111 |
|
112 JSIDBDatabaseExceptionConstructor::JSIDBDatabaseExceptionConstructor(ExecState* exec, JSDOMGlobalObject* globalObject) |
|
113 : DOMConstructorObject(JSIDBDatabaseExceptionConstructor::createStructure(globalObject->objectPrototype()), globalObject) |
|
114 { |
|
115 putDirect(exec->propertyNames().prototype, JSIDBDatabaseExceptionPrototype::self(exec, globalObject), DontDelete | ReadOnly); |
|
116 } |
|
117 |
|
118 bool JSIDBDatabaseExceptionConstructor::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
119 { |
|
120 return getStaticValueSlot<JSIDBDatabaseExceptionConstructor, DOMObject>(exec, &JSIDBDatabaseExceptionConstructorTable, this, propertyName, slot); |
|
121 } |
|
122 |
|
123 bool JSIDBDatabaseExceptionConstructor::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
124 { |
|
125 return getStaticValueDescriptor<JSIDBDatabaseExceptionConstructor, DOMObject>(exec, &JSIDBDatabaseExceptionConstructorTable, this, propertyName, descriptor); |
|
126 } |
|
127 |
|
128 /* Hash table for prototype */ |
|
129 #if ENABLE(JIT) |
|
130 #define THUNK_GENERATOR(generator) , generator |
|
131 #else |
|
132 #define THUNK_GENERATOR(generator) |
|
133 #endif |
|
134 |
|
135 static const HashTableValue JSIDBDatabaseExceptionPrototypeTableValues[12] = |
|
136 { |
|
137 { "UNKNOWN_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionUNKNOWN_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
138 { "NON_TRANSIENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNON_TRANSIENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
139 { "NOT_FOUND_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNOT_FOUND_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
140 { "CONSTRAINT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionCONSTRAINT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
141 { "DATA_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionDATA_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
142 { "NOT_ALLOWED_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionNOT_ALLOWED_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
143 { "SERIAL_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionSERIAL_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
144 { "RECOVERABLE_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionRECOVERABLE_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
145 { "TRANSIENT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionTRANSIENT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
146 { "TIMEOUT_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionTIMEOUT_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
147 { "DEADLOCK_ERR", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsIDBDatabaseExceptionDEADLOCK_ERR), (intptr_t)0 THUNK_GENERATOR(0) }, |
|
148 { 0, 0, 0, 0 THUNK_GENERATOR(0) } |
|
149 }; |
|
150 |
|
151 #undef THUNK_GENERATOR |
|
152 static JSC_CONST_HASHTABLE HashTable JSIDBDatabaseExceptionPrototypeTable = { 34, 31, JSIDBDatabaseExceptionPrototypeTableValues, 0 }; |
|
153 const ClassInfo JSIDBDatabaseExceptionPrototype::s_info = { "IDBDatabaseExceptionPrototype", 0, &JSIDBDatabaseExceptionPrototypeTable, 0 }; |
|
154 |
|
155 JSObject* JSIDBDatabaseExceptionPrototype::self(ExecState* exec, JSGlobalObject* globalObject) |
|
156 { |
|
157 return getDOMPrototype<JSIDBDatabaseException>(exec, globalObject); |
|
158 } |
|
159 |
|
160 bool JSIDBDatabaseExceptionPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
161 { |
|
162 return getStaticValueSlot<JSIDBDatabaseExceptionPrototype, JSObject>(exec, &JSIDBDatabaseExceptionPrototypeTable, this, propertyName, slot); |
|
163 } |
|
164 |
|
165 bool JSIDBDatabaseExceptionPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
166 { |
|
167 return getStaticValueDescriptor<JSIDBDatabaseExceptionPrototype, JSObject>(exec, &JSIDBDatabaseExceptionPrototypeTable, this, propertyName, descriptor); |
|
168 } |
|
169 |
|
170 const ClassInfo JSIDBDatabaseException::s_info = { "IDBDatabaseException", 0, &JSIDBDatabaseExceptionTable, 0 }; |
|
171 |
|
172 JSIDBDatabaseException::JSIDBDatabaseException(NonNullPassRefPtr<Structure> structure, JSDOMGlobalObject* globalObject, PassRefPtr<IDBDatabaseException> impl) |
|
173 : DOMObjectWithGlobalPointer(structure, globalObject) |
|
174 , m_impl(impl) |
|
175 { |
|
176 } |
|
177 |
|
178 JSIDBDatabaseException::~JSIDBDatabaseException() |
|
179 { |
|
180 forgetDOMObject(this, impl()); |
|
181 } |
|
182 |
|
183 JSObject* JSIDBDatabaseException::createPrototype(ExecState* exec, JSGlobalObject* globalObject) |
|
184 { |
|
185 return new (exec) JSIDBDatabaseExceptionPrototype(globalObject, JSIDBDatabaseExceptionPrototype::createStructure(globalObject->objectPrototype())); |
|
186 } |
|
187 |
|
188 bool JSIDBDatabaseException::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot) |
|
189 { |
|
190 return getStaticValueSlot<JSIDBDatabaseException, Base>(exec, &JSIDBDatabaseExceptionTable, this, propertyName, slot); |
|
191 } |
|
192 |
|
193 bool JSIDBDatabaseException::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor) |
|
194 { |
|
195 return getStaticValueDescriptor<JSIDBDatabaseException, Base>(exec, &JSIDBDatabaseExceptionTable, this, propertyName, descriptor); |
|
196 } |
|
197 |
|
198 JSValue jsIDBDatabaseExceptionCode(ExecState* exec, JSValue slotBase, const Identifier&) |
|
199 { |
|
200 JSIDBDatabaseException* castedThis = static_cast<JSIDBDatabaseException*>(asObject(slotBase)); |
|
201 UNUSED_PARAM(exec); |
|
202 IDBDatabaseException* imp = static_cast<IDBDatabaseException*>(castedThis->impl()); |
|
203 JSValue result = jsNumber(exec, imp->code()); |
|
204 return result; |
|
205 } |
|
206 |
|
207 JSValue jsIDBDatabaseExceptionMessage(ExecState* exec, JSValue slotBase, const Identifier&) |
|
208 { |
|
209 JSIDBDatabaseException* castedThis = static_cast<JSIDBDatabaseException*>(asObject(slotBase)); |
|
210 UNUSED_PARAM(exec); |
|
211 IDBDatabaseException* imp = static_cast<IDBDatabaseException*>(castedThis->impl()); |
|
212 JSValue result = jsString(exec, imp->message()); |
|
213 return result; |
|
214 } |
|
215 |
|
216 JSValue jsIDBDatabaseExceptionConstructor(ExecState* exec, JSValue slotBase, const Identifier&) |
|
217 { |
|
218 JSIDBDatabaseException* domObject = static_cast<JSIDBDatabaseException*>(asObject(slotBase)); |
|
219 return JSIDBDatabaseException::getConstructor(exec, domObject->globalObject()); |
|
220 } |
|
221 void JSIDBDatabaseException::put(ExecState* exec, const Identifier& propertyName, JSValue value, PutPropertySlot& slot) |
|
222 { |
|
223 lookupPut<JSIDBDatabaseException, Base>(exec, propertyName, value, &JSIDBDatabaseExceptionTable, this, slot); |
|
224 } |
|
225 |
|
226 void setJSIDBDatabaseExceptionCode(ExecState* exec, JSObject* thisObject, JSValue value) |
|
227 { |
|
228 JSIDBDatabaseException* castedThis = static_cast<JSIDBDatabaseException*>(thisObject); |
|
229 IDBDatabaseException* imp = static_cast<IDBDatabaseException*>(castedThis->impl()); |
|
230 imp->setCode(value.toInt32(exec)); |
|
231 } |
|
232 |
|
233 void setJSIDBDatabaseExceptionMessage(ExecState* exec, JSObject* thisObject, JSValue value) |
|
234 { |
|
235 JSIDBDatabaseException* castedThis = static_cast<JSIDBDatabaseException*>(thisObject); |
|
236 IDBDatabaseException* imp = static_cast<IDBDatabaseException*>(castedThis->impl()); |
|
237 imp->setMessage(ustringToString(value.toString(exec))); |
|
238 } |
|
239 |
|
240 JSValue JSIDBDatabaseException::getConstructor(ExecState* exec, JSGlobalObject* globalObject) |
|
241 { |
|
242 return getDOMConstructor<JSIDBDatabaseExceptionConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject)); |
|
243 } |
|
244 |
|
245 // Constant getters |
|
246 |
|
247 JSValue jsIDBDatabaseExceptionUNKNOWN_ERR(ExecState* exec, JSValue, const Identifier&) |
|
248 { |
|
249 return jsNumber(exec, static_cast<int>(0)); |
|
250 } |
|
251 |
|
252 JSValue jsIDBDatabaseExceptionNON_TRANSIENT_ERR(ExecState* exec, JSValue, const Identifier&) |
|
253 { |
|
254 return jsNumber(exec, static_cast<int>(1)); |
|
255 } |
|
256 |
|
257 JSValue jsIDBDatabaseExceptionNOT_FOUND_ERR(ExecState* exec, JSValue, const Identifier&) |
|
258 { |
|
259 return jsNumber(exec, static_cast<int>(2)); |
|
260 } |
|
261 |
|
262 JSValue jsIDBDatabaseExceptionCONSTRAINT_ERR(ExecState* exec, JSValue, const Identifier&) |
|
263 { |
|
264 return jsNumber(exec, static_cast<int>(3)); |
|
265 } |
|
266 |
|
267 JSValue jsIDBDatabaseExceptionDATA_ERR(ExecState* exec, JSValue, const Identifier&) |
|
268 { |
|
269 return jsNumber(exec, static_cast<int>(4)); |
|
270 } |
|
271 |
|
272 JSValue jsIDBDatabaseExceptionNOT_ALLOWED_ERR(ExecState* exec, JSValue, const Identifier&) |
|
273 { |
|
274 return jsNumber(exec, static_cast<int>(5)); |
|
275 } |
|
276 |
|
277 JSValue jsIDBDatabaseExceptionSERIAL_ERR(ExecState* exec, JSValue, const Identifier&) |
|
278 { |
|
279 return jsNumber(exec, static_cast<int>(11)); |
|
280 } |
|
281 |
|
282 JSValue jsIDBDatabaseExceptionRECOVERABLE_ERR(ExecState* exec, JSValue, const Identifier&) |
|
283 { |
|
284 return jsNumber(exec, static_cast<int>(21)); |
|
285 } |
|
286 |
|
287 JSValue jsIDBDatabaseExceptionTRANSIENT_ERR(ExecState* exec, JSValue, const Identifier&) |
|
288 { |
|
289 return jsNumber(exec, static_cast<int>(31)); |
|
290 } |
|
291 |
|
292 JSValue jsIDBDatabaseExceptionTIMEOUT_ERR(ExecState* exec, JSValue, const Identifier&) |
|
293 { |
|
294 return jsNumber(exec, static_cast<int>(32)); |
|
295 } |
|
296 |
|
297 JSValue jsIDBDatabaseExceptionDEADLOCK_ERR(ExecState* exec, JSValue, const Identifier&) |
|
298 { |
|
299 return jsNumber(exec, static_cast<int>(33)); |
|
300 } |
|
301 |
|
302 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, IDBDatabaseException* object) |
|
303 { |
|
304 return getDOMObjectWrapper<JSIDBDatabaseException>(exec, globalObject, object); |
|
305 } |
|
306 IDBDatabaseException* toIDBDatabaseException(JSC::JSValue value) |
|
307 { |
|
308 return value.inherits(&JSIDBDatabaseException::s_info) ? static_cast<JSIDBDatabaseException*>(asObject(value))->impl() : 0; |
|
309 } |
|
310 |
|
311 } |
|
312 |
|
313 #endif // ENABLE(INDEXED_DATABASE) |