Now child processes have no ability to open files.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3206 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2016-04-16 21:30:52 +00:00
parent 74af1d361c
commit 6410b13ece
10 changed files with 89 additions and 56 deletions

View File

@ -6,7 +6,7 @@ task.onExit = function() {
print("child exited");
};
task.activate();
task.execute("child.js").then(function() {
task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
print("child started");
});
EOF

View File

@ -3,7 +3,7 @@
cat > test.js << EOF
var task = new Task();
task.activate();
task.execute("child.js").then(function() {
task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
task.getExports().then(function(exports) {
return exports.add(1, 1);
}).then(function(sum) {

View File

@ -3,7 +3,7 @@
cat > test.js << EOF
var task = new Task();
task.activate();
task.execute("child.js").then(function() {
task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
task.getExports().then(function(exports) {
return exports.add(1, 1);
}).then(function(sum) {

View File

@ -3,7 +3,7 @@
cat > test.js << EOF
var task = new Task();
task.activate();
task.execute("child.js").then(function() {
task.execute({name: "child.js", source: File.readFile("child.js")}).then(function() {
task.getExports().then(function(exports) {
return exports.add(1, 1);
}).then(function(sum) {