Skip to content

Instantly share code, notes, and snippets.

View thomascwo's full-sized avatar

Thomas Cheung thomascwo

View GitHub Profile
@thomascwo
thomascwo / debugger.js
Created February 12, 2025 16:08 — forked from kamoshi/debugger.js
JS debugger loop hack
function H(n) {
function e(t) {
if ("string" == typeof t) return function(t){}.constructor("while (true) {}").apply("counter");
(t % 20 == 0)
? function() { return !0 }.constructor("debugger").call("action")
: function() { return !1 }.constructor("debugger").apply("stateObject"),
e(++t)
}