1.1 --- a/rsvp.py Fri Jun 12 22:03:56 2009 +0200
1.2 +++ b/rsvp.py Sun Jun 14 01:18:05 2009 +0200
1.3 @@ -291,10 +291,14 @@
1.4
1.5 attr_location = module.location + 1 + attr.position
1.6 context, ref = self.load(attr_location)
1.7 - content = self.load(ref + 1)
1.8 - print label, expected, content
1.9
1.10 - success = success and (int(expected) == content)
1.11 + if ref is not None:
1.12 + content = self.load(ref + 1)
1.13 + print label, expected, content
1.14 + success = success and (int(expected) == content)
1.15 + else:
1.16 + print label, expected, "missing"
1.17 + success = 0
1.18
1.19 return success
1.20 else:
1.21 @@ -901,9 +905,10 @@
1.22 def builtins_list_new(self):
1.23 frame = self.local_sp_stack[-1]
1.24
1.25 + # The first parameter should be empty.
1.26 # NOTE: Specific copying of tuples/lists.
1.27
1.28 - args_context, args = self.frame_stack[frame]
1.29 + args_context, args = self.frame_stack[frame + 1]
1.30 header = self.load(args)
1.31
1.32 list = self._MakeObject(header.size, self.list_instance)