frida / frida-node

Frida Node.js bindings
279 stars 65 forks source link

a unknown question #90

Open ddqweqrqwrwqr opened 10 months ago

ddqweqrqwrwqr commented 10 months ago

console.log("Hello World!")

function sleep(time) { return new Promise(resolve =>{ setTimeout(resolve, time) }) }

async function run() { console.log("Hello World!2") await sleep(1000) console.log("Hello World!3") }

run()


results Hello World! Hello World!1

the third console.log cannot run! help me

lorenzodifuccia commented 2 weeks ago
  1. This question is not related to Frida/frida-node.
  2. Use ChatGPT
  3. You're not waiting the async run function to complete. The run (if not awaited) will return a Promise. Try: run().then(() => process.exit());