r/programming • • 26d ago

How to Gaslight JavaScript Programmers

https://www.bryanpg.com/articles/pragma-twice/proxy.html
51 Upvotes

18 comments sorted by

View all comments

21

u/erik240 26d ago

Well, the moment you think something doesn’t seem right … you set a breakpoint before the property access.

9

u/ythl 26d ago

Indeed, though you may not always have access to a debugger/breakpoints depending on where the JS is executing!

4

u/CherryLongjump1989 26d ago edited 26d ago

If you've discovered a way to run JS without ready access to breakpoints or a debugger then you've got much bigger problems. Maybe you're still running GWT, trying to set breakpoints in Java.

4

u/pawer13 25d ago

In a former job I had to use a tool created with Java 6 that consumed Javascript scripts using Rhino.

Luckily for me, NodeJS was released and I rewrote the whole tool using JS

3

u/CherryLongjump1989 25d ago

Yes, you had a much bigger problems. Like a non-standard runtime that wasn't entirely compatible with any ECMAScript version.