mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-02 07:06:16 +00:00
Fixed: Forgot to commit the files for the new test case
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
@implementation MyClass
|
||||
|
||||
- (id)mySelector {
|
||||
[self init];
|
||||
self = nil;
|
||||
[self init];
|
||||
}
|
||||
|
||||
- (id)mySelector2 {
|
||||
[self init];
|
||||
eval("self = null;");
|
||||
[self init];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,11 @@
|
||||
var the_class=objj_allocateClassPair(Nil,"MyClass"),meta_class=the_class.isa;
|
||||
objj_registerClassPair(the_class);
|
||||
class_addMethods(the_class,[new objj_method(sel_getUid("mySelector"),function $MyClass__mySelector(_1,_2){
|
||||
_1.isa.objj_msgSend0(_1,"init");
|
||||
_1=nil;
|
||||
(_1==null?null:_1.isa.objj_msgSend0(_1,"init"));
|
||||
},["id"]),new objj_method(sel_getUid("mySelector2"),function $MyClass__mySelector2(_3,_4){
|
||||
_3.isa.objj_msgSend0(_3,"init");
|
||||
eval("self = null;");
|
||||
(_3==null?null:_3.isa.objj_msgSend0(_3,"init"));
|
||||
},["id"])]);
|
||||
Reference in New Issue
Block a user