You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 without quoteless.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
The text was updated successfully, but these errors were encountered:
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!
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
The text was updated successfully, but these errors were encountered: