Skip to content
  • oliver@apple.com's avatar
    2011-01-19 Oliver Hunt <oliver@apple.com> · de018444
    oliver@apple.com authored
            Reviewed by Gavin Barraclough.
    
            [jsfunfuzz] Defining a function called __proto__ inside an eval triggers an assertion
            https://bugs.webkit.org/show_bug.cgi?id=52672
    
            Add tests to ensure that we disallow __proto__ as a function name.
    
            * fast/js/parser-syntax-check-expected.txt:
            * fast/js/script-tests/parser-syntax-check.js:
    2011-01-19  Oliver Hunt  <oliver@apple.com>
    
            Reviewed by Gavin Barraclough.
    
            [jsfunfuzz] Defining a function called __proto__ inside an eval triggers an assertion
            https://bugs.webkit.org/show_bug.cgi?id=52672
    
            Rather than coming up with a somewhat convoluted mechanism to ensure that
            developers can override the global objects prototype with a function named
            __proto__ and expect it to work, we just disallow it at the syntax level.
    
            * parser/JSParser.cpp:
            (JSC::JSParser::parseFunctionInfo):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76148 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    de018444