Changeset 240686 in webkit


Ignore:
Timestamp:
Jan 29, 2019 3:10:46 PM (5 years ago)
Author:
Ross Kirsling
Message:

Remove FIXME for Annex B.3.5's "for-of var" subcase.

Rubber-stamped by Yusuke Suzuki.

This subcase is removed from the spec in https://github.com/tc39/ecma262/pull/1393.

  • parser/Parser.h:

(JSC::Parser::declareHoistedVariable):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r240684 r240686  
     12019-01-29  Ross Kirsling  <ross.kirsling@sony.com>
     2
     3        Remove FIXME for Annex B.3.5's "for-of var" subcase.
     4
     5        Rubber-stamped by Yusuke Suzuki.
     6
     7        This subcase is removed from the spec in https://github.com/tc39/ecma262/pull/1393.
     8
     9        * parser/Parser.h:
     10        (JSC::Parser::declareHoistedVariable):
     11
    1122019-01-29  Mark Lam  <mark.lam@apple.com>
    213
  • trunk/Source/JavaScriptCore/parser/Parser.h

    r240228 r240686  
    12311231        while (true) {
    12321232            // Annex B.3.5 exempts `try {} catch (e) { var e; }` from being a syntax error.
    1233             // FIXME: This exemption should not apply if the var declaration is a for-of initializer.
    12341233            if (m_scopeStack[i].hasLexicallyDeclaredVariable(*ident) && !m_scopeStack[i].isSimpleCatchParameterScope())
    12351234                return DeclarationResult::InvalidDuplicateDeclaration;
Note: See TracChangeset for help on using the changeset viewer.