void JSRangeExceptionOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context) { JSRangeException* jsRangeException = jsCast<JSRangeException*>(handle.get().asCell()); DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context); uncacheWrapper(world, &jsRangeException->impl(), jsRangeException); jsRangeException->releaseImpl(); }
EncodedJSValue jsRangeExceptionConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName) { JSRangeException* domObject = jsDynamicCast<JSRangeException*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(exec); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSRangeException::getConstructor(exec->vm(), domObject->globalObject())); }
JSValue* jsRangeExceptionPrototypeFunctionToString(ExecState* exec, JSObject*, JSValue* thisValue, const ArgList& args) { if (!thisValue->isObject(&JSRangeException::s_info)) return throwError(exec, TypeError); JSRangeException* castedThisObj = static_cast<JSRangeException*>(thisValue); RangeException* imp = static_cast<RangeException*>(castedThisObj->impl()); JSC::JSValue* result = jsString(exec, imp->toString()); return result; }
EncodedJSValue jsRangeExceptionMessage(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue thisValue, PropertyName) { JSRangeException* castedThis = jsDynamicCast<JSRangeException*>(JSValue::decode(thisValue)); UNUSED_PARAM(slotBase); if (!castedThis) return throwVMTypeError(exec); UNUSED_PARAM(exec); RangeException& impl = castedThis->impl(); JSValue result = jsStringWithCache(exec, impl.message()); return JSValue::encode(result); }
JSValue JSC_HOST_CALL jsRangeExceptionPrototypeFunctionToString(ExecState* exec, JSObject*, JSValue thisValue, const ArgList& args) { UNUSED_PARAM(args); if (!thisValue.inherits(&JSRangeException::s_info)) return throwError(exec, TypeError); JSRangeException* castedThisObj = static_cast<JSRangeException*>(asObject(thisValue)); RangeException* imp = static_cast<RangeException*>(castedThisObj->impl()); JSC::JSValue result = jsString(exec, imp->toString()); return result; }
EncodedJSValue JSC_HOST_CALL jsRangeExceptionPrototypeFunctionToString(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); JSRangeException* castedThis = jsDynamicCast<JSRangeException*>(thisValue); if (!castedThis) return throwVMTypeError(exec); ASSERT_GC_OBJECT_INHERITS(castedThis, JSRangeException::info()); RangeException& impl = castedThis->impl(); JSC::JSValue result = jsStringWithCache(exec, impl.toString()); return JSValue::encode(result); }