EncodedJSValue jsCSSCharsetRuleConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName) { JSCSSCharsetRule* domObject = jsDynamicCast<JSCSSCharsetRule*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(exec); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSCSSCharsetRule::getConstructor(exec->vm(), domObject->globalObject())); }
JSValue jsCSSCharsetRuleConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSCSSCharsetRule* domObject = static_cast<JSCSSCharsetRule*>(asObject(slotBase)); return JSCSSCharsetRule::getConstructor(exec, domObject->globalObject()); }