Skip to content

Commit

Permalink
set context on method refs
Browse files Browse the repository at this point in the history
  • Loading branch information
pmh committed Sep 9, 2012
1 parent c575f74 commit 01d9a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/object.es
Expand Up @@ -8,7 +8,7 @@ Object each: iterator := {

Object get: slot := {
slot = lookup: slot
`if ($elf.slot.type === "Method") { $elf.slot.type = "Lambda" ; $elf.slot.__context = this }`
`if ($elf.slot && $elf.slot.type === "Method") { $elf.slot.type = "Lambda" ; $elf.slot.__context = this }`
slot
}

Expand Down

0 comments on commit 01d9a3c

Please sign in to comment.