Skip to content

Commit

Permalink
Mark one-line eval as ok.
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Mar 28, 2020
1 parent 3a8deec commit 086259a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resolve/Resolve.tsx
Expand Up @@ -22,6 +22,7 @@ export interface ResolveState {
function toFunctionRef(func: string) {
let ref: any;
try {
/* eslint-disable-next-line no-eval */
ref = eval(`(${func})`);
} catch (e) {
alert(`unable to compile transform due to ${e}`);
Expand Down

0 comments on commit 086259a

Please sign in to comment.