Revision 8d51fbb0
| b/webodf/lib/runtime.js | ||
|---|---|---|
| 587 | 587 |
} |
| 588 | 588 |
runtime.setCurrentDirectory(path); |
| 589 | 589 |
function run() {
|
| 590 |
var script, path, paths, args, argv; // hide variables |
|
| 590 |
var script, path, paths, args, argv, result; // hide variables
|
|
| 591 | 591 |
// execute script and make arguments available via argv |
| 592 |
runtime.exit(eval(code)); |
|
| 592 |
result = eval(code); |
|
| 593 |
if (result) {
|
|
| 594 |
runtime.exit(result); |
|
| 595 |
} |
|
| 596 |
return; |
|
| 593 | 597 |
} |
| 594 | 598 |
if (err) {
|
| 595 | 599 |
runtime.log(err); |
Also available in: Unified diff