Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a unknown question #90

Open
ddqweqrqwrwqr opened this issue Nov 26, 2023 · 1 comment
Open

a unknown question #90

ddqweqrqwrwqr opened this issue Nov 26, 2023 · 1 comment

Comments

@ddqweqrqwrwqr
Copy link

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
Copy link

  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());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants