1
0
Просмотр исходного кода

Fixes Spaces with JSObjectProxy not understanding #isNil

Nicolas Petton 10 лет назад
Родитель
Сommit
ad80300573
2 измененных файлов с 4 добавлено и 4 удалено
  1. 3 3
      src/Spaces.js
  2. 1 1
      src/Spaces.st

+ 3 - 3
src/Spaces.js

@@ -282,13 +282,13 @@ protocol: 'tests',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-self._assert_(_st(_st(self["@space"])._frame())._notNil());
+self._assert_(_st(_st(self["@space"])._frame()).__tild_eq(nil));
 $ctx1.sendIdx["assert:"]=1;
 self._assert_(_st(self["@space"])._isConnected());
 return self}, function($ctx1) {$ctx1.fill(self,"testCreate",{},globals.ObjectSpaceTest)})},
 args: [],
-source: "testCreate\x0a\x0a\x09self assert: space frame notNil.\x0a\x09self assert: space isConnected",
-messageSends: ["assert:", "notNil", "frame", "isConnected"],
+source: "testCreate\x0a\x0a\x09self assert: space frame ~= nil.\x0a\x09self assert: space isConnected",
+messageSends: ["assert:", "~=", "frame", "isConnected"],
 referencedClasses: []
 }),
 globals.ObjectSpaceTest);

+ 1 - 1
src/Spaces.st

@@ -116,7 +116,7 @@ testConnection
 
 testCreate
 
-	self assert: space frame notNil.
+	self assert: space frame ~= nil.
 	self assert: space isConnected
 !