Skip to content

Commit

Permalink
Fixed: array visualization issue; thesis
Browse files Browse the repository at this point in the history
  • Loading branch information
chaser92 committed Jun 11, 2015
1 parent 85eedf6 commit b48fbe4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 49 deletions.
4 changes: 3 additions & 1 deletion src/backend/process/Memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ define(["eventEmitter", "./ValueTypes", "./coerceValue"], function(EventEmitter,
throw new Error("Attempted to fetch a nonexistent location " + loc);
}
var bo = this.getBaseAndOffset(loc);
this.emitter.emitEvent("fetch", [bo.base, bo.offset]);
if (!Array.isArray(this.cells[loc].value)) {
this.emitter.emitEvent("fetch", [bo.base, bo.offset]);
}
return this.cells[loc].value;
};

Expand Down
Loading

0 comments on commit b48fbe4

Please sign in to comment.