Open tj-commits opened 3 months ago
I want to puke 💀. Take my upvote, lol.
Now that I think about it, the with (proxy)
pattern has so much potential for obfuscation! JS is Turing-Complete and has access to runtime APIs, so a Proxy
could be non-deterministic!
@Rudxain wow
This outputs "This is black magic" to the console. The way this works is that when a property is accessed then it just gets the name of the property that was accessed. Using
with (quoteless)
makes all the properties be accessible withoutquoteless.property
. The way we access console.log is by checking if the key is a magic word, such as__global
, to access the globalThis. My explanation is terrible, don't use it in the real repository lol