Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thom_nic
· 10y ago · 0 comments
Allowing user-defined rules comes to mind. AFAIK `eval()`-ing user input is can't be done in a safe way. Probably OK on browser but not on the server.
Comments
[–]
flushot
10y ago
I don't see why a language like JS couldn't be used for evaluating rules when sandboxed. Looks like there's a project that does just that:
https://developers.google.com/caja/
[–]
catnaroek
10y ago
> Probably OK on browser but not on the server.
Probably OK on someone else's machine but not mine? :-p