Page MenuHomePhorge

test_debug_await.cjs
No OneTemporary

Size
392 B
Referenced Files
None
Subscribers
None

test_debug_await.cjs

async function test() {
console.log("1: Before await");
const x = await new Promise(resolve => setTimeout(() => {
console.log("2: Timer callback");
resolve("VALUE");
}, 10));
console.log("3: x assigned, x =", x);
console.log("4: About to return");
return x;
}
console.log("A: Calling test");
test().then(r => console.log("Final:", r));
console.log("B: After test call");

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 9:55 AM (3 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
523620
Default Alt Text
test_debug_await.cjs (392 B)

Event Timeline