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

migration from v7 to mjs: v7_interrupt #45

Closed
ozlb opened this issue Sep 26, 2017 · 3 comments
Closed

migration from v7 to mjs: v7_interrupt #45

ozlb opened this issue Sep 26, 2017 · 3 comments
Assignees

Comments

@ozlb
Copy link

ozlb commented Sep 26, 2017

In old v7 versions there was v7_interrupt in order to
"It sets a flag that will cause the interpreter to throw an InterruptedError"
is this available in mjs or the only way is to invoke internal die()?

@cpq cpq self-assigned this Sep 26, 2017
@cpq
Copy link
Member

cpq commented Sep 26, 2017

Not available. Could you elaborate on the use case please?

@ozlb
Copy link
Author

ozlb commented Sep 26, 2017

the concept is to avoid infinite loop in scripts and as per old v7_interrupt cause interruption of code execution.

@cpq
Copy link
Member

cpq commented Sep 28, 2017

That's not going to happen.
We treat JS code just like C code.
If the C developer created a busy loop - that's it, it'll brick the device.
The solution is to write a better code.

@cpq cpq closed this as completed Sep 28, 2017
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