Skip to content

Use of eval() #71

@karladler

Description

@karladler

When building my app I see the following warning:

 WARN  [EVAL] Warning: Use of direct eval function is strongly discouraged as it poses security risks and may cause issues with minification.                                                             9:10:18 PM
      ╭─[ ...../node_modules/eml-parse-js/dist/index.es.js:1863:17 ]
      │
 1863 │         retV += eval(s.charAt(i)) * Math.pow(2, 3 - i);
      │                 ──┬─
      │                   ╰─── Use of direct eval here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

Looking at the source code I see usage of eval here - according to chatGpt this whole function might be replaced by modern TextDecoder ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions