This commit is contained in:
Tony Garnock-Jones 2016-08-07 21:44:38 -04:00
parent 5dc1d99a3b
commit 31ee867964
1 changed files with 3 additions and 3 deletions

View File

@ -137,14 +137,14 @@ Dataspace.prototype.debugName = function (pid) {
Dataspace.prototype.asChild = function (pid, f, omitLivenessCheck) { Dataspace.prototype.asChild = function (pid, f, omitLivenessCheck) {
var self = this; var self = this;
var p = this.processTable.get(pid, null); var p = self.processTable.get(pid, null);
if (!omitLivenessCheck && (p === null)) { if (!omitLivenessCheck && (p === null)) {
console.warn("Dataspace.asChild eliding invocation of dead process", this.debugName(pid)); console.warn("Dataspace.asChild eliding invocation of dead process", self.debugName(pid));
return; return;
} }
var result = Dataspace.withDataspaceStack( var result = Dataspace.withDataspaceStack(
Dataspace.stack.push({ dataspace: this, activePid: pid }), Dataspace.stack.push({ dataspace: self, activePid: pid }),
function () { function () {
try { try {
return f(p); return f(p);