@powerlang/egg-js
Version:
A Smalltalk VM that runs on top of JavaScript
35 lines (25 loc) • 620 B
JavaScript
import EggSlotObject from './EggSlotObject.js';
let EggBehaviorObject = class extends EggSlotObject {
constructor() {
super();
this._runtime = nil;
}
classInstSize() {
let _class;
_class = this._runtime.behaviorClass_(this);
return this._runtime.speciesInstanceSize_(_class);
}
localClassName() {
let _class;
_class = this._runtime.behaviorClass_(this);
return this._runtime.speciesLocalName_(_class);
}
runtime() {
return this._runtime;
}
runtime_(anEggRuntime) {
this._runtime = anEggRuntime;
return this;
}
}
export default EggBehaviorObject