09674b9283
This is a reland of part of https://chromium-review.googlesource.com/c/v8/v8/+/1397664. It drops the explicit fni_.Infer() call after parsing arrow functions. We'll want to avoid inferring if the arrow function is an argument to a function call. It also avoids adding the single argument of "name => " to the inferred name. Bug: chromium:916975 Change-Id: I96a934408113483d73eba14073fe21e8cfe2ada6 Reviewed-on: https://chromium-review.googlesource.com/c/1397665 Commit-Queue: Toon Verwaest <verwaest@chromium.org> Reviewed-by: Maya Lekova <mslekova@chromium.org> Cr-Commit-Position: refs/heads/master@{#58613}
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)
|
|
|