Index: test/inspector/debugger/step-into-expected.txt |
diff --git a/test/inspector/debugger/step-into-expected.txt b/test/inspector/debugger/step-into-expected.txt |
index 6b08296ccb7e2103b039a79eef9612a9a05c9f99..1d7888aa50498168555b8dbf3e596d47bb05b9f9 100644 |
--- a/test/inspector/debugger/step-into-expected.txt |
+++ b/test/inspector/debugger/step-into-expected.txt |
@@ -960,3 +960,130 @@ break at: |
#await p; |
} |
+ |
+Running test: testPromiseComplex |
+break at: |
+ var nextTest; |
+ var testPromise = #new Promise(resolve => nextTest = resolve); |
+ async function main() { |
+ |
+break at: |
+ var nextTest; |
+ var testPromise = new Promise(resolve => nextTest #= resolve); |
+ async function main() { |
+ |
+break at: |
+ var nextTest; |
+ var testPromise = new Promise(resolve => nextTest = resolve#); |
+ async function main() { |
+ |
+break at: |
+ } |
+ #main(); |
+ return testPromise; |
+ |
+break at: |
+ } |
+ var x = #1; |
+ var y = 2; |
+ |
+break at: |
+ var x = 1; |
+ var y = #2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await foo((a => 2 *a)(5)); |
+ |
+break at: |
+ var y = 2; |
+ #returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+ |
+function emptyFunction() {#} |
+ |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, #returnCall())().a = await foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+function returnCall() { |
+ #return return42(); |
+} |
+ |
+break at: |
+function return42() { |
+ #return 42; |
+} |
+ |
+break at: |
+ return 42; |
+#} |
+ |
+ |
+break at: |
+ return return42(); |
+#} |
+ |
+ |
+break at: |
+ var y = 2; |
+ #returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+function returnFunction() { |
+ #return returnObject; |
+} |
+ |
+break at: |
+ return returnObject; |
+#} |
+ |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())#().a = await foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+function returnObject() { |
+ #return ({ foo: () => 42 }); |
+} |
+ |
+break at: |
+ return ({ foo: () => 42 }); |
+#} |
+ |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await #foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await foo((a => 2 #*a)(5)); |
+ nextTest(); |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await foo((a => 2 *a#)(5)); |
+ nextTest(); |
+ |
+break at: |
+ var y = 2; |
+ returnFunction(emptyFunction(), x++, --y, x => 2 * x, returnCall())().a = await #foo((a => 2 *a)(5)); |
+ nextTest(); |
+ |
+break at: |
+ async function foo() { |
+ await Promise.#resolve(); |
+ return 42; |
+ |
+break at: |
+ async function foo() { |
+ #await Promise.resolve(); |
+ return 42; |
+ |