r/badcode • u/Flyspeck101 Now where's that function declaration • Oct 05 '21
js No functions in JSON? No problem
87
Upvotes
r/badcode • u/Flyspeck101 Now where's that function declaration • Oct 05 '21
33
u/[deleted] Oct 06 '21
Please tell they dont use eval
10
u/ShowMeYourCodePorn Oct 06 '21
Mmmmm eval
10
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Oct 06 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
4
u/0xFFD843H Oct 06 '21
Code execution wet dream.
2
u/metalovingien Oct 06 '21
Antiquoted strings part of JSON's standard ? Or you did this on purpose to help us read ?
0
u/DaveMcLee Oct 06 '21
Click here and learn how to cut your egress costs by 50%!
-AWS Advisors hate this trick.