Esempio n. 1
0
EncodedJSValue jsattributeConstructor(ExecState* exec, EncodedJSValue thisValue, EncodedJSValue, PropertyName)
{
    JSattribute* domObject = jsDynamicCast<JSattribute*>(JSValue::decode(thisValue));
    if (!domObject)
        return throwVMTypeError(exec);
    if (!domObject)
        return throwVMTypeError(exec);
    return JSValue::encode(JSattribute::getConstructor(exec->vm(), domObject->globalObject()));
}
Esempio n. 2
0
EncodedJSValue jsattributeConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName)
{
    JSattribute* domObject = jsDynamicCast<JSattribute*>(JSValue::decode(slotBase));
    return JSValue::encode(JSattribute::getConstructor(exec->vm(), domObject->globalObject()));
}