Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modified the semantics of slot lookup to fix the bug in Sec. 5.3 in o…

…ur ECOOP'11 paper -- thanks to Aran Lunzer for spotting this problem! (BTW, the new version of the paper on the VPRI website has the new and improved semantics in Sec. 5.3
  • Loading branch information...
commit 2c9fb6a9f13025af40b89edbf3f2e243085a5f00 1 parent 9edb4da
@alexwarth alexwarth authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Worlds2_Library.js
View
2  Worlds2_Library.js
@@ -129,7 +129,7 @@ baseWorld = thisWorld = (function() {
if (typeof r === "string" && (typeof p === "number" || p === "length"))
return r[p]
var id = getTag(r), ans = this._get(r, p)
- if (!reads.hasOwnProperty(id)) {
+ if (!reads.hasOwnProperty(id) && !(writes.hasOwnProperty(id) && writes[id].hasOwnProperty(p))) {
reads[id] = {}
if (!reads[id].hasOwnProperty(p))
reads[id][p] = ans
Please sign in to comment.
Something went wrong with that request. Please try again.