|
@@ -1271,6 +1271,30 @@ return self;
|
|
|
}; }),
|
|
|
$globals.CodeGeneratorTest);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "testNilPerform",
|
|
|
+protocol: "tests",
|
|
|
+
|
|
|
+args: [],
|
|
|
+source: "testNilPerform\x0a\x09self should: 'foo ^ nil perform: #yourself' return: nil",
|
|
|
+referencedClasses: [],
|
|
|
+
|
|
|
+pragmas: [],
|
|
|
+messageSends: ["should:return:"]
|
|
|
+}, function ($methodClass){ return function (){
|
|
|
+var self=this,$self=this;
|
|
|
+
|
|
|
+return $core.withContext(function($ctx1) {
|
|
|
+
|
|
|
+$self._should_return_("foo ^ nil perform: #yourself",nil);
|
|
|
+return self;
|
|
|
+
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"testNilPerform",{})});
|
|
|
+
|
|
|
+}; }),
|
|
|
+$globals.CodeGeneratorTest);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testNonLocalReturn",
|