3411e7c3e8
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}
134 lines
3.0 KiB
Plaintext
134 lines
3.0 KiB
Plaintext
Checks that async chains for promises are correct.
|
|
|
|
Running test: testPromise
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promise (test.js:19:14)
|
|
(anonymous) (testPromise.js:0:0)
|
|
|
|
|
|
Running test: testPromiseResolvedBySetTimeout
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseResolvedBySetTimeout (test.js:27:14)
|
|
(anonymous) (testPromiseResolvedBySetTimeout.js:0:0)
|
|
|
|
|
|
Running test: testPromiseAll
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseAll (test.js:37:35)
|
|
(anonymous) (testPromiseAll.js:0:0)
|
|
|
|
|
|
Running test: testPromiseAllReverseOrder
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseAllReverseOrder (test.js:48:35)
|
|
(anonymous) (testPromiseAllReverseOrder.js:0:0)
|
|
|
|
|
|
Running test: testPromiseRace
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseRace (test.js:59:36)
|
|
(anonymous) (testPromiseRace.js:0:0)
|
|
|
|
|
|
Running test: testTwoChainedCallbacks
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
twoChainedCallbacks (test.js:68:14)
|
|
(anonymous) (testTwoChainedCallbacks.js:0:0)
|
|
|
|
foo2 (test.js:13:2)
|
|
-- Promise.then --
|
|
twoChainedCallbacks (test.js:68:25)
|
|
(anonymous) (testTwoChainedCallbacks.js:0:0)
|
|
|
|
|
|
Running test: testPromiseResolve
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
promiseResolve (test.js:74:27)
|
|
(anonymous) (testPromiseResolve.js:0:0)
|
|
|
|
foo2 (test.js:13:2)
|
|
-- Promise.then --
|
|
promiseResolve (test.js:74:38)
|
|
(anonymous) (testPromiseResolve.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedInSetTimeout
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedInSetTimeout (test.js:86:40)
|
|
(anonymous) (testThenableJobResolvedInSetTimeout.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedInSetTimeoutWithStack
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedInSetTimeoutWithStack (test.js:104:40)
|
|
(anonymous) (testThenableJobResolvedInSetTimeoutWithStack.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedByPromise
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedByPromise (test.js:118:40)
|
|
(anonymous) (testThenableJobResolvedByPromise.js:0:0)
|
|
|
|
|
|
Running test: testThenableJobResolvedByPromiseWithStack
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
thenableJobResolvedByPromiseWithStack (test.js:136:40)
|
|
(anonymous) (testThenableJobResolvedByPromiseWithStack.js:0:0)
|
|
|
|
|
|
Running test: testLateThenCallback
|
|
foo1 (test.js:9:2)
|
|
-- Promise.then --
|
|
lateThenCallback (test.js:145:12)
|
|
(anonymous) (testLateThenCallback.js:0:0)
|
|
|
|
|
|
Running test: testComplex
|
|
inner1 (test.js:154:6)
|
|
foo1 (test.js:156:4)
|
|
-- Promise.then --
|
|
complex (test.js:202:5)
|
|
(anonymous) (testComplex.js:0:0)
|
|
|
|
(anonymous) (test.js:207:8)
|
|
-- Promise.then --
|
|
(anonymous) (test.js:206:8)
|
|
-- Promise.then --
|
|
(anonymous) (test.js:205:6)
|
|
-- setTimeout --
|
|
complex (test.js:204:2)
|
|
(anonymous) (testComplex.js:0:0)
|
|
|
|
|
|
Running test: testReject
|
|
foo1 (test.js:9:2)
|
|
-- Promise.catch --
|
|
reject (test.js:217:31)
|
|
(anonymous) (testReject.js:0:0)
|
|
|
|
|
|
Running test: testFinally1
|
|
foo1 (test.js:9:2)
|
|
-- Promise.finally --
|
|
finally1 (test.js:221:33)
|
|
(anonymous) (testFinally1.js:0:0)
|
|
|
|
|
|
Running test: testFinally2
|
|
foo1 (test.js:9:2)
|
|
-- Promise.finally --
|
|
finally2 (test.js:225:34)
|
|
(anonymous) (testFinally2.js:0:0)
|
|
|