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:
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user