Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
while (true) {} example
Browse files Browse the repository at this point in the history
  • Loading branch information
fictorial committed Apr 26, 2010
1 parent bd26ed7 commit b8a1987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/while_true.js
Expand Up @@ -6,6 +6,8 @@ var

elJefe.compile(scriptName, "while (true) {}", { maxTime: 5000 } );

sys.error("this will wait up to 5s ...");

elJefe.run(scriptName, {}, function (error, sandboxIn, sandboxOut) {
if (error) {
sys.puts("error = " + error);
Expand Down

0 comments on commit b8a1987

Please sign in to comment.