Changeset 240686 in webkit
- Timestamp:
- Jan 29, 2019 3:10:46 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r240684 r240686 1 2019-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 1 12 2019-01-29 Mark Lam <mark.lam@apple.com> 2 13 -
trunk/Source/JavaScriptCore/parser/Parser.h
r240228 r240686 1231 1231 while (true) { 1232 1232 // 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.1234 1233 if (m_scopeStack[i].hasLexicallyDeclaredVariable(*ident) && !m_scopeStack[i].isSimpleCatchParameterScope()) 1235 1234 return DeclarationResult::InvalidDuplicateDeclaration;
Note: See TracChangeset
for help on using the changeset viewer.