We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9ce0c commit 8ae3a63Copy full SHA for 8ae3a63
vm.primitives.js
@@ -1914,11 +1914,11 @@ Object.subclass('Squeak.Primitives',
1914
this.semaphoresToSignal.push(semaIndex);
1915
},
1916
signalExternalSemaphores: function() {
1917
- var semaphores = this.vm.specialObjects[Squeak.splOb_ExternalObjectsArray].pointers,
+ var semaphores = this.vm.specialObjects[Squeak.splOb_ExternalObjectsArray].pointers || [],
1918
semaClass = this.vm.specialObjects[Squeak.splOb_ClassSemaphore];
1919
while (this.semaphoresToSignal.length) {
1920
var semaIndex = this.semaphoresToSignal.shift(),
1921
- sema = semaphores[semaIndex - 1];
+ sema = semaphores[semaIndex - 1] || this.vm.nilObj;
1922
if (sema.sqClass == semaClass)
1923
this.synchronousSignal(sema);
1924
}
0 commit comments