String.prototype methods should CheckObjectCoercible (test this is not null or undefi...
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jul 2010 03:43:58 +0000 (03:43 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 9 Jul 2010 03:43:58 +0000 (03:43 +0000)
commit401210344029c10e3d1a6e44d3e99bef8feb7378
tree4413a4193f730b66193e3f34903967b36d71aa22
parentfc96e333e683d19a0b10831a2d24b8578b27cd8e
String.prototype methods should CheckObjectCoercible (test this is not null or undefined).

Reviewed by Sam Weinig.

JavaScriptCore:

* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncCharAt):
(JSC::stringProtoFuncCharCodeAt):
(JSC::stringProtoFuncConcat):
(JSC::stringProtoFuncIndexOf):
(JSC::stringProtoFuncLastIndexOf):
(JSC::stringProtoFuncMatch):
(JSC::stringProtoFuncSearch):
(JSC::stringProtoFuncSlice):
(JSC::stringProtoFuncSplit):
(JSC::stringProtoFuncSubstr):
(JSC::stringProtoFuncSubstring):
(JSC::stringProtoFuncToLowerCase):
(JSC::stringProtoFuncToUpperCase):
(JSC::stringProtoFuncLocaleCompare):
(JSC::trimString):

LayoutTests:

* ietestcenter/Javascript/15.5.4.20-1-1-expected.txt:
* ietestcenter/Javascript/15.5.4.20-1-2-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@62885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/runtime/StringPrototype.cpp
LayoutTests/ChangeLog
LayoutTests/ietestcenter/Javascript/15.5.4.20-1-1-expected.txt
LayoutTests/ietestcenter/Javascript/15.5.4.20-1-2-expected.txt