[webkit-changes] [WebKit/WebKit] 598cda: Fix `in` operator inside for statement destructuring

EWS noreply at github.com
Wed Nov 9 12:32:38 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 598cda65c4a2c2af24667bc86fdc1ed5cbafec23
      https://github.com/WebKit/WebKit/commit/598cda65c4a2c2af24667bc86fdc1ed5cbafec23
  Author: Yijia Huang <yijia_huang at apple.com>
  Date:   2022-11-09 (Wed, 09 Nov 2022)

  Changed paths:
    A JSTests/stress/destructing-in.js
    M Source/JavaScriptCore/parser/Parser.cpp

  Log Message:
  -----------
  Fix `in` operator inside for statement destructuring
https://bugs.webkit.org/show_bug.cgi?id=247436
rdar://102065296

Reviewed by Alexey Shvayka.

Destructing statement should allow `in` operator even in `for...in/of`.

* JSTests/stress/destructing-in.js: Added.
(shouldBe):
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseVariableDeclarationList):

Canonical link: https://commits.webkit.org/256497@main




More information about the webkit-changes mailing list