81835bf03d
This reverts commit 21c0d77e15
.
Reason for revert: Compile failure in bootstrapper.cc
Original change's description:
> [async] Optimize await and AsyncFromSyncIterator
>
> Simplify the promise wrapping in await and
> %AsyncFromSyncIteratorPrototype%.next/return/throw to reuse the PromiseResolve
> primitive. Now await takes 1 tick instead of 3 on the microtask queue.
>
> Change-Id: I7e99b8689eb8fcb09c48915b11c1e06684dc0f1a
> Reviewed-on: https://chromium-review.googlesource.com/1090272
> Commit-Queue: Maya Lekova <mslekova@chromium.org>
> Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
> Reviewed-by: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
> Reviewed-by: Mathias Bynens <mathias@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#53853}
TBR=kozyatinskiy@chromium.org,littledan@chromium.org,gsathya@chromium.org,bmeurer@chromium.org,domenic@chromium.org,mathias@chromium.org,mslekova@chromium.org
Change-Id: Ia631acdfcd5c1f9c28c1540c8da16cdf076abf87
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/1106566
Reviewed-by: Bill Budge <bbudge@chromium.org>
Commit-Queue: Bill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53855}
171 lines
4.2 KiB
Plaintext
171 lines
4.2 KiB
Plaintext
Tests breakable locations in variable initializations.
|
|
|
|
Running test: testBreakLocations
|
|
|
|
Running test: testStepInto
|
|
|
|
function testFunction() {
|
|
var obj1 = |_|{a : 1};
|
|
var arr1 = |_|[1];
|
|
var promise = |_|Promise.|C|resolve(1).|C|then(x => x |_|* 2|R|).|C|then(x => x |_|/ 2|R|);
|
|
|_|Promise.|C|resolve(1).|C|then(x => x |_|* 2|R|).|C|then(x => x |_|/ 2|R|);
|
|
|_|promise = Promise.|C|resolve(1).|C|then(x => x |_|* 2|R|).|C|then(x => x |_|/ 2|R|);
|
|
var a = |_|1;
|
|
const x = |_|(a = 20);
|
|
var y = |_|(a = 100);
|
|
var z = |_|x + (a = 1) + (a = 2) + (a = 3) + |C|f();
|
|
function f() {
|
|
for (let { x, y } = |_|{ x: 0, y: 1 }; y |_|> 0; --|_|y) { let z = |_|x + y; }
|
|
|R|}
|
|
var b = obj1.|_|a;
|
|
|_|(async function asyncF() {
|
|
let r = |_|await Promise.|C|resolve(42);
|
|
|_|return r;
|
|
|R|})|C|();
|
|
|_|return promise;|R|
|
|
}
|
|
|
|
(anonymous) (expr.js:0:0)
|
|
|
|
|
|
testFunction (test.js:2:13)
|
|
(anonymous) (expr.js:0:0)
|
|
function testFunction() {
|
|
var obj1 = #{a : 1};
|
|
var arr1 = [1];
|
|
|
|
testFunction (test.js:3:13)
|
|
(anonymous) (expr.js:0:0)
|
|
var obj1 = {a : 1};
|
|
var arr1 = #[1];
|
|
var promise = Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
|
|
testFunction (test.js:4:16)
|
|
(anonymous) (expr.js:0:0)
|
|
var arr1 = [1];
|
|
var promise = #Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
|
|
testFunction (test.js:5:2)
|
|
(anonymous) (expr.js:0:0)
|
|
var promise = Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
#Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
promise = Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
|
|
testFunction (test.js:6:2)
|
|
(anonymous) (expr.js:0:0)
|
|
Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
#promise = Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
var a = 1;
|
|
|
|
testFunction (test.js:7:10)
|
|
(anonymous) (expr.js:0:0)
|
|
promise = Promise.resolve(1).then(x => x * 2).then(x => x / 2);
|
|
var a = #1;
|
|
const x = (a = 20);
|
|
|
|
testFunction (test.js:8:12)
|
|
(anonymous) (expr.js:0:0)
|
|
var a = 1;
|
|
const x = #(a = 20);
|
|
var y = (a = 100);
|
|
|
|
testFunction (test.js:9:10)
|
|
(anonymous) (expr.js:0:0)
|
|
const x = (a = 20);
|
|
var y = #(a = 100);
|
|
var z = x + (a = 1) + (a = 2) + (a = 3) + f();
|
|
|
|
testFunction (test.js:10:10)
|
|
(anonymous) (expr.js:0:0)
|
|
var y = (a = 100);
|
|
var z = #x + (a = 1) + (a = 2) + (a = 3) + f();
|
|
function f() {
|
|
|
|
f (test.js:12:24)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = #{ x: 0, y: 1 }; y > 0; --y) { let z = x + y; }
|
|
}
|
|
|
|
f (test.js:12:42)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = { x: 0, y: 1 }; y #> 0; --y) { let z = x + y; }
|
|
}
|
|
|
|
f (test.js:12:62)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = { x: 0, y: 1 }; y > 0; --y) { let z = #x + y; }
|
|
}
|
|
|
|
f (test.js:12:49)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = { x: 0, y: 1 }; y > 0; --#y) { let z = x + y; }
|
|
}
|
|
|
|
f (test.js:12:42)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = { x: 0, y: 1 }; y #> 0; --y) { let z = x + y; }
|
|
}
|
|
|
|
f (test.js:13:2)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
for (let { x, y } = { x: 0, y: 1 }; y > 0; --y) { let z = x + y; }
|
|
#}
|
|
var b = obj1.a;
|
|
|
|
testFunction (test.js:14:15)
|
|
(anonymous) (expr.js:0:0)
|
|
}
|
|
var b = obj1.#a;
|
|
(async function asyncF() {
|
|
|
|
testFunction (test.js:15:2)
|
|
(anonymous) (expr.js:0:0)
|
|
var b = obj1.a;
|
|
#(async function asyncF() {
|
|
let r = await Promise.resolve(42);
|
|
|
|
asyncF (test.js:16:12)
|
|
testFunction (test.js:18:4)
|
|
(anonymous) (expr.js:0:0)
|
|
(async function asyncF() {
|
|
let r = #await Promise.resolve(42);
|
|
return r;
|
|
|
|
asyncF (test.js:17:4)
|
|
let r = await Promise.resolve(42);
|
|
#return r;
|
|
})();
|
|
|
|
asyncF (test.js:18:2)
|
|
return r;
|
|
#})();
|
|
return promise;
|
|
|
|
|
|
Running test: testStepIntoAfterBreakpoint
|
|
testFunction (test.js:10:10)
|
|
(anonymous) (expr.js:0:0)
|
|
var y = (a = 100);
|
|
var z = #x + (a = 1) + (a = 2) + (a = 3) + f();
|
|
function f() {
|
|
|
|
f (test.js:12:24)
|
|
testFunction (test.js:10:44)
|
|
(anonymous) (expr.js:0:0)
|
|
function f() {
|
|
for (let { x, y } = #{ x: 0, y: 1 }; y > 0; --y) { let z = x + y; }
|
|
}
|
|
|