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.
Sourcery rule id: no-eval
Section titled “Sourcery rule id: no-eval”Description
Section titled “Description”Never use eval()
eval("throw 1")Explanation
Section titled “Explanation”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.