Browse Source

direct use of undefined changed to void 0

Herbert Vojčík 10 years ago
parent
commit
166f7c95c4
2 changed files with 6 additions and 6 deletions
  1. 4 4
      js/Kernel-Tests.js
  2. 2 2
      st/Kernel-Tests.st

+ 4 - 4
js/Kernel-Tests.js

@@ -2589,10 +2589,10 @@ category: 'accessing',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': undefined};
+return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0};
 return self}, function($ctx1) {$ctx1.fill(self,"jsObject",{},smalltalk.JSObjectProxyTest)})},
 args: [],
-source: "jsObject\x0a\x09<return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': undefined}>",
+source: "jsObject\x0a\x09<return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0}>",
 messageSends: [],
 referencedClasses: []
 }),
@@ -4054,10 +4054,10 @@ category: 'tests',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-return undefined;;
+return void 0;;
 return self}, function($ctx1) {$ctx1.fill(self,"notDefined",{},smalltalk.ObjectTest)})},
 args: [],
-source: "notDefined\x0a\x09<return undefined;>",
+source: "notDefined\x0a\x09<return void 0;>",
 messageSends: [],
 referencedClasses: []
 }),

+ 2 - 2
st/Kernel-Tests.st

@@ -999,7 +999,7 @@ TestCase subclass: #JSObjectProxyTest
 !JSObjectProxyTest methodsFor: 'accessing'!
 
 jsObject
-	<return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': undefined}>
+	<return jsObject = {a: 1, b: function() {return 2;}, c: function(object) {return object;}, d: '', 'e': null, 'f': void 0}>
 ! !
 
 !JSObjectProxyTest methodsFor: 'tests'!
@@ -1521,7 +1521,7 @@ TestCase subclass: #ObjectTest
 !ObjectTest methodsFor: 'tests'!
 
 notDefined
-	<return undefined;>
+	<return void 0;>
 !
 
 testBasicAccess