JSValue* JSRangeException::getValueProperty(ExecState* exec, int token) const { switch (token) { case CodeAttrNum: { RangeException* imp = static_cast<RangeException*>(impl()); return jsNumber(exec, imp->code()); } case NameAttrNum: { RangeException* imp = static_cast<RangeException*>(impl()); return jsString(exec, imp->name()); } case MessageAttrNum: { RangeException* imp = static_cast<RangeException*>(impl()); return jsString(exec, imp->message()); } case ConstructorAttrNum: return getConstructor(exec); } return 0; }