Skip to content

Commit

Permalink
🚑️ fix potential sandbox escape
Browse files Browse the repository at this point in the history
DEV-389
  • Loading branch information
o4kapuk committed Nov 30, 2023
1 parent 24f086a commit 6696d79
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/game/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@
getHeapStatistics: getHeapStatistics ? function() {
return getHeapStatistics();
} : undefined,
halt: cpuHalt ? function() {
cpuHalt.applySync();
throw new Error("No one should ever see this message.");
} : undefined,
halt: cpuHalt,
},
map: {},
gcl: {
Expand Down

0 comments on commit 6696d79

Please # to comment.