|
@@ -56,6 +56,7 @@ module.exports = class Computer {
|
|
|
inputFromConsole: options.inputFromConsole ?? false,
|
|
|
outputToConsole: options.outputToConsole ?? false,
|
|
|
inputModeMap: options.inputModeMap ?? [],
|
|
|
+ _initialInputModeMap: options.inputModeMap ?? [],
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -413,6 +414,7 @@ module.exports = class Computer {
|
|
|
this.stack = new Stack(this._initialMemory);
|
|
|
this.outputValues = null;
|
|
|
this.outputComputer = null;
|
|
|
+ this.options.inputModeMap = DeepClone(this.options._initialInputModeMap);
|
|
|
}
|
|
|
|
|
|
/**
|