r/javascript • u/DrAdalbbert • 12h ago
I've proven that you don't need quotes or parentheses in JavaScript
blog.ikaes.deYou can overwrite the prepareStackTrace property of the Error object by String prototype's functions and invoke them without parentheses. Then by overwriting the Error and Array prototype it is possible to control the arguments. Combining this behavior, together with some JSFuck-inspired tricks, it is possible to generate arbitrary JavaScript strings and run arbitrary JavaScript with only letters + - = and ,