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

while hang up #2

Open
iuzhao opened this issue Dec 22, 2023 · 1 comment
Open

while hang up #2

iuzhao opened this issue Dec 22, 2023 · 1 comment

Comments

@iuzhao
Copy link

iuzhao commented Dec 22, 2023

I use the latest akamai 2.0 script to execute this program

while (nodes.length !== 0) { const node = nodes.shift() if (node.type === 'ReturnStatement') { entry = node continue } try { vm.runInContext(generate(node).code, ctx) } catch (e) { console.log('e:', e) nodes.push(node) } }

In this code, When a catch error occurs, while will enter a deadlock because nodes. push (node) has been executed

@manudeobs
Copy link
Owner

As I don't update this repo every time they switch their script, you'll have to fix and adapt it yourself.

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