Skip to content
Browse files

Merge pull request #602 from krekoten/proc_allocate

Proc.allocate raises a TypeError
  • Loading branch information
alex committed Apr 11, 2013
2 parents 429a83e + ab842e1 commit c6842193fe26968eb865d79ec66bd7e4ce1cd7e7
Showing with 4 additions and 3 deletions.
  1. +0 −1 spec/tags/core/proc/allocate_tags.txt
  2. +4 −2 topaz/objects/

This file was deleted.

@@ -13,12 +13,14 @@ def __init__(self, space, block, is_lambda):
def get_block(self):
return self.block

def method_allocate(self, space, args_w, block):
def method_new(self, space, args_w, block):
if block is None:
raise space.error(space.w_ArgumentError, "tried to create Proc object without a block")
return W_ProcObject(space, block, False)

method_allocate = classdef.undefine_allocator()

def method_call(self, space, args_w, block):

0 comments on commit c684219

Please sign in to comment.
You can’t perform that action at this time.