Skip to content
  • oliver@apple.com's avatar
    2010-12-20 Oliver Hunt <oliver@apple.com> · 70ed3e19
    oliver@apple.com authored
            Reviewed by Geoffrey Garen.
    
            |delete name| in strict mode code should be an early error
            https://bugs.webkit.org/show_bug.cgi?id=50431
    
            Disallow the |delete IDENTIFIER| production in strict mode, and removed
            a bunch of now unnecessary code.
    
            * parser/JSParser.cpp:
            (JSC::JSParser::Scope::collectFreeVariables):
            (JSC::jsParse):
            (JSC::JSParser::parseProgram):
            (JSC::JSParser::parseUnaryExpression):
            * parser/JSParser.h:
            * parser/Parser.cpp:
            (JSC::Parser::parse):
            * parser/Parser.h:
            (JSC::Parser::parse):
    2010-12-20  Oliver Hunt  <oliver@apple.com>
    
            Reviewed by Geoffrey Garen.
    
            |delete name| in strict mode code should be an early error
            https://bugs.webkit.org/show_bug.cgi?id=50431
    
            Add a test to ensure that |delete IDENTIFIER| is disallowed, even if
            IDENTIFIER resolves to a deletable property.
    
            * fast/js/basic-strict-mode-expected.txt:
            * fast/js/script-tests/basic-strict-mode.js:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    70ed3e19