Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • It is really funny how people are fixated to "eval is evil" and they'll do anything to avoid it, even re-writing the whole eval-functionality.. Commented Sep 12, 2014 at 10:52
  • Is consensus this trick is a safe method turning string into JSON object? I could use this as no additional js imports are needed. Commented Oct 13, 2014 at 10:48
  • 1
    ANY approach using eval or Function is equally vulnerable Commented Jun 3, 2018 at 12:32
  • 1
    undefined; function bye() {...} bye(); Commented Jan 22, 2019 at 12:41