Skip to content

No-Eval

Documentation Index

Fetch the complete documentation index at: https://docs.sourcery.ai/llms.txt

Use this file to discover all available pages before exploring further.

Never use eval()

eval("throw 1")

Using eval opens your code up to serious security risks - it executes code with the privileges of the caller, leading to all sorts of possible attacks.

It can also cause performance issues, preventing javascript minifiers and interpreters from making many efficiency gains.