• barraclough@apple.com's avatar
    StringRecursionChecker should not work in terms of EncodedJSValue · 4782ba83
    barraclough@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=69188
    
    Reviewed by Oliver Hunt.
    
    0 is not the empty value on 32_64.
    Code that casts literals to EncodedJSValues may be unsafe if we change our internal representation.
    
    * runtime/ArrayPrototype.cpp:
    (JSC::arrayProtoFuncToString):
    (JSC::arrayProtoFuncToLocaleString):
    (JSC::arrayProtoFuncJoin):
    * runtime/ErrorPrototype.cpp:
    (JSC::errorProtoFuncToString):
    * runtime/RegExpPrototype.cpp:
    (JSC::regExpProtoFuncToString):
    * runtime/StringRecursionChecker.cpp:
    (JSC::StringRecursionChecker::throwStackOverflowError):
    (JSC::StringRecursionChecker::emptyString):
    * runtime/StringRecursionChecker.h:
    (JSC::StringRecursionChecker::performCheck):
    (JSC::StringRecursionChecker::earlyReturnValue):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    4782ba83
ErrorPrototype.cpp 3.46 KB