JavaScriptCore/ChangeLog

 12009-11-21 Laszlo Gombos <laszlo.1.gombos@nokia.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 [Symbian] Fix lastIndexOf() for Symbian
 6 https://bugs.webkit.org/show_bug.cgi?id=31773
 7
 8 Symbian soft floating point library has problems with operators
 9 comparing NaN to numbers. Without a workaround lastIndexOf()
 10 function does not work.
 11
 12 * runtime/StringPrototype.cpp:
 13 (JSC::stringProtoFuncLastIndexOf):Add an extra test
 14 to check for NaN for Symbian.
 15
1162009-11-19 Steve Block <steveblock@google.com>
217
318 Android port lacks configuration in Platform.h and config.h.
51287

JavaScriptCore/runtime/StringPrototype.cpp

@@JSValue JSC_HOST_CALL stringProtoFuncLas
469469 dpos = 0;
470470 else if (!(dpos <= len)) // true for NaN
471471 dpos = len;
 472#if PLATFORM(SYMBIAN)
 473 // Work around for broken NaN compare operator
 474 else if (isnan(dpos))
 475 dpos = len;
 476#endif
472477 return jsNumber(exec, s.rfind(u2, static_cast<int>(dpos)));
473478}
474479
51287