|
@@ -147,7 +147,6 @@ function Smalltalk(){
|
|
|
var that = setupClass(meta.instanceClass, spec);
|
|
|
that.className = spec.className;
|
|
|
meta.className = spec.className + ' class';
|
|
|
- that.organization = new SmalltalkOrganizer();
|
|
|
if(spec.superclass) {
|
|
|
that.superclass = spec.superclass;
|
|
|
meta.superclass = spec.superclass.klass;
|
|
@@ -157,7 +156,6 @@ function Smalltalk(){
|
|
|
|
|
|
function metaclass() {
|
|
|
var meta = setupClass(new SmalltalkMetaclass(), {})
|
|
|
- meta.organization = new SmalltalkOrganizer();
|
|
|
meta.instanceClass = new meta.fn;
|
|
|
return meta;
|
|
|
}
|
|
@@ -169,6 +167,7 @@ function Smalltalk(){
|
|
|
value: function() { return 'Smalltalk ' + this.className; },
|
|
|
configurable: true
|
|
|
});
|
|
|
+ that.organization = new SmalltalkOrganizer();
|
|
|
that.pkg = spec.pkg;
|
|
|
Object.defineProperties(that.fn.prototype, {
|
|
|
methods: { value: {}, enumerable: false, configurable: true, writable: true },
|
|
@@ -581,12 +580,6 @@ function SmalltalkMethodContext(receiver, selector, method, temps, home) {
|
|
|
this.method = method;
|
|
|
this.temps = temps || {};
|
|
|
this.homeContext = home;
|
|
|
-
|
|
|
- this.resume = function() {
|
|
|
-
|
|
|
- smalltalk.thisContext = this;
|
|
|
- return this.method.apply(receiver, temps);
|
|
|
- };
|
|
|
};
|
|
|
|
|
|
SmalltalkMethodContext.prototype.copy = function() {
|
|
@@ -601,6 +594,12 @@ SmalltalkMethodContext.prototype.copy = function() {
|
|
|
);
|
|
|
};
|
|
|
|
|
|
+SmalltalkMethodContext.prototype.resume = function() {
|
|
|
+
|
|
|
+ smalltalk.thisContext = this;
|
|
|
+ return this.method.apply(receiver, temps);
|
|
|
+};
|
|
|
+
|
|
|
|
|
|
|
|
|
var nil = new SmalltalkNil();
|