pharo-vm icon indicating copy to clipboard operation
pharo-vm copied to clipboard

Instance of FakeStdinStream did not understand #stream

Open hernanmd opened this issue 2 years ago • 0 comments

Trying to simulate the VM both in Pharo 11 and Pharo 12 with this script:

| options stackInterpreterSimulator |

VMStackPages  initialize.
options := {
    #ObjectMemory -> #Spur64BitCoMemoryManager.
    #BytesPerWord -> 8
} asDictionary.

stackInterpreterSimulator := StackInterpreterSimulator newWithOptions: options.
stackInterpreterSimulator openOn: Smalltalk imagePath extraMemory: 100000.
stackInterpreterSimulator run.

Produces the following exception:

Debugger

A simple fix would be to answer ^ self in a new FakeStdinStream>>stream method.

hernanmd avatar Aug 21 '23 10:08 hernanmd