Skip to content

Commit

Permalink
update from main
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Nov 27, 2023
1 parent b4d0041 commit ac93f79
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions squeak.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"version", {
// system attributes
vmVersion: "SqueakJS 1.1.2",
vmDate: "2023-11-24", // Maybe replace at build time?
vmDate: "2023-11-27", // Maybe replace at build time?
vmBuild: "unknown", // or replace at runtime by last-modified?
vmPath: "unknown", // Replace at runtime
vmFile: "vm.js",
Expand Down Expand Up @@ -7007,6 +7007,7 @@
oldProc.dirty = true;
this.vm.newActiveContext(newProc.pointers[Squeak.Proc_suspendedContext]);
newProc.pointers[Squeak.Proc_suspendedContext] = this.vm.nilObj;
if (!this.oldPrims) newProc.pointers[Squeak.Proc_myList] = this.vm.nilObj;
this.vm.reclaimableContextCount = 0;
if (this.vm.breakOnContextChanged) {
this.vm.breakOnContextChanged = false;
Expand Down Expand Up @@ -7070,7 +7071,10 @@
} else {
var temp = first;
while (true) {
if (temp.isNil) return this.success = false;
if (temp.isNil) {
if (this.oldPrims) this.success = false;
return;
}
next = temp.pointers[Squeak.Link_nextLink];
if (next === process) break;
temp = next;
Expand Down Expand Up @@ -54753,9 +54757,7 @@
function recordKeyboardEvent(key, timestamp, display) {
if (!display.vm) return;
var code = (display.buttons >> 3) << 8 | key;
if (code === display.vm.interruptKeycode) {
display.vm.interruptPending = true;
} else if (display.eventQueue) {
if (display.eventQueue) {
display.eventQueue.push([
Squeak.EventTypeKeyboard,
timestamp, // converted to Squeak time in makeSqueakEvent()
Expand All @@ -54770,6 +54772,8 @@
// and polling primitives. To make those work, keep the
// last key event
display.keys[0] = code;
} else if (code === display.vm.interruptKeycode) {
display.vm.interruptPending = true;
} else {
// no event queue, queue keys the old-fashioned way
display.keys.push(code);
Expand Down

0 comments on commit ac93f79

Please sign in to comment.