9bb78e3279
This reverts commit 3411e7c3e8
.
Reason for revert: Breaks test expecations - https://ci.chromium.org/p/chromium/builders/luci.chromium.try/linux_chromium_rel_ng/260731
Original change's description:
> [parser] Create arrow function scopes while parsing the head
>
> This simplifies NextArrowFunctionInfo, allows us to Scope::Snapshot::Reparent
> directly rather than moving it, and allows us to skip reparenting in the simple
> parameter arrow function cases.
>
> This CL additionally fixes arrow function name inferring.
>
> Change-Id: Ie3e5ea778f3d7b84b2a10d4f4ff73931cfc9384a
> Reviewed-on: https://chromium-review.googlesource.com/c/1386147
> Reviewed-by: Igor Sheludko <ishell@chromium.org>
> Commit-Queue: Toon Verwaest <verwaest@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#58405}
TBR=ishell@chromium.org,verwaest@chromium.org
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I8f31b96f844f0673364bf435fa6c809e40d62fa3
Reviewed-on: https://chromium-review.googlesource.com/c/1388541
Reviewed-by: Maya Lekova <mslekova@chromium.org>
Commit-Queue: Maya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58446}
153 lines
3.1 KiB
Plaintext
153 lines
3.1 KiB
Plaintext
Tests different combinations of async stacks in chains.
|
|
Regular
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
runWithNone (utils.js:27:2)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
Regular - Regular
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
-- outer async --
|
|
runWithRegular (utils.js:2:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
Regular - EmptyName
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
Regular - EmptyStack
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
|
|
Regular - EmptyNameEmptyStack
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
|
|
Regular - External
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
runWithRegular (utils.js:2:12)
|
|
inner (test.js:2:28)
|
|
runWithRegular (utils.js:21:4)
|
|
<external stack>
|
|
|
|
EmptyName
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
runWithNone (utils.js:27:2)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyName - Regular
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
-- outer async --
|
|
runWithRegular (utils.js:2:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyName - EmptyName
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyName - EmptyStack
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
|
|
EmptyName - EmptyNameEmptyStack
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
|
|
EmptyName - External
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
inner (test.js:2:28)
|
|
runWithRegular (utils.js:21:4)
|
|
<external stack>
|
|
|
|
EmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyStack - Regular
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
-- outer async --
|
|
runWithRegular (utils.js:2:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyStack - EmptyName
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyStack - EmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyStack - EmptyNameEmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyStack - External
|
|
userFunction (test.js:1:36)
|
|
-- inner async --
|
|
<external stack>
|
|
|
|
EmptyNameEmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyNameEmptyStack - Regular
|
|
userFunction (test.js:1:36)
|
|
-- outer async --
|
|
runWithRegular (utils.js:2:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyNameEmptyStack - EmptyName
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
runWithEmptyName (utils.js:6:12)
|
|
(anonymous) (test.js:3:10)
|
|
|
|
EmptyNameEmptyStack - EmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyNameEmptyStack - EmptyNameEmptyStack
|
|
userFunction (test.js:1:36)
|
|
|
|
EmptyNameEmptyStack - External
|
|
userFunction (test.js:1:36)
|
|
-- <empty> --
|
|
<external stack>
|
|
|
|
External
|
|
userFunction (test.js:1:36)
|
|
runWithRegular (utils.js:21:4)
|
|
<external stack>
|
|
|