From kde-commits Wed Mar 21 05:25:24 2007 From: Harri Porten Date: Wed, 21 Mar 2007 05:25:24 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kjs Message-Id: <1174454724.092996.20455.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117445463221670 SVN commit 644867 by porten: remove non-sensical exceptions like done in trunk already. fixes a crash caused by invalid internal value. M +1 -2 date_object.cpp --- branches/KDE/3.5/kdelibs/kjs/date_object.cpp #644866:644867 @@ -372,8 +372,7 @@ Value DateProtoFuncImp::call(ExecState *exec, Object &thisObj, const List &args) { - if ((id == ToString || id == ValueOf || id == GetTime || id == SetTime) && - !thisObj.inherits(&DateInstanceImp::info)) { + if (!thisObj.inherits(&DateInstanceImp::info)) { // non-generic function called on non-date object // ToString and ValueOf are generic according to the spec, but the mozilla